Bartłomiej Dach
|
81f54507dd
|
Fix potential index accounting mistake when creating spectator list with spectators already present
Noticed by accident, but if the `BindCollectionChanged()` callback fires
immediately in `LoadComplete()` when set up and there are spectators
present already, then `NewStartingIndex` in the related event is -1:
b03f83de36/src/libraries/System.ObjectModel/src/System/Collections/Specialized/NotifyCollectionChangedEventArgs.cs (L84-L92)
which kinda breaks the math introducing off-by-ones and in result causes
11 items to be displayed together rather than 10.
|
2025-01-16 14:29:41 +01:00 |
|
Dean Herbert
|
e47244989a
|
Adjust animations a bit
Removed autosize duration stuff because it looks weird when the list is
shown from scratch where users are already fully populated in it.
|
2025-01-16 19:23:54 +09:00 |
|
Dean Herbert
|
32906aefde
|
Add gradient on final spectator if more than list capacity are displayed
|
2025-01-16 19:05:19 +09:00 |
|
Dean Herbert
|
996798d2df
|
Avoid list width changing when spectator count changes
|
2025-01-16 19:02:14 +09:00 |
|
Bartłomiej Dach
|
582c5180b9
|
Implement spectator list display
- First step for https://github.com/ppy/osu/issues/22087
- Supersedes / closes https://github.com/ppy/osu/pull/22795
Roughly uses design shown in
https://github.com/ppy/osu/pull/22795#issuecomment-1579936284 with some
modifications to better fit everything else, and some customisation
options so it can fit better on other skins.
|
2025-01-15 14:17:53 +01:00 |
|