osu/osu.Game
Bartłomiej Dach 25e38560ce
Fix placeholder drawables on beatmap listing not always hiding correctly
`BeatmapListingOverlay.addContentToPlaceholder()`, in order to make
transitions between different beatmap listing content (whether it is
actual cards, or placeholders for no beatmaps found/supporter-specific
filters chosen), would set `BypassAutoSizeAxes = Y` on content as it is
fading out, to make the transition smoother. The property in question
was supposed to be getting restored to `None` on the next show.

In testing scenarios, it sometimes turned out that this wasn't the case,
therefore making the placeholders effectively not show - while they
were present and fully opaque, they would be the only child of
an auto-sized container with `BypassAutoSizeAxes = Y`, so the parent
auto-sized to a zero height, which logically follows from the premise,
but is not what was desired.

This in turn was caused by the fact that the `BypassAutoSizeAxes = Y`
set was scheduled, and sometimes it would be scheduled in such a way
that the drawable would cease to be present on the next frame due to its
alpha being past the cutoff point of 0.0001. Therefore the scheduled set
would not execute until the *next* time the placeholder was shown,
therefore causing the bug.

Fix by ensuring that the placeholder drawables are always present if
their schedulers have any tasks enqueued, on top of the usual checks of
alpha and scale performed via the base implementation.
2021-12-22 15:05:23 +01:00
..
Audio
Beatmaps Rename BeatmapCard{Base => } 2021-12-21 08:26:25 +01:00
Collections
Configuration Do not reset last hover sound playback time on inactivity 2021-12-21 08:47:41 +01:00
Database Fix online lookup cache not clearing completed task on early return 2021-12-21 11:13:41 +01:00
Extensions
Graphics Merge branch 'master' into master 2021-12-16 16:58:24 +03:00
Input
IO
IPC
Localisation
Migrations
Models
Online Add and use separate extensions for historical and upcoming playlist items 2021-12-21 08:01:04 +01:00
Overlays Fix placeholder drawables on beatmap listing not always hiding correctly 2021-12-22 15:05:23 +01:00
Performance
Properties
Replays
Rulesets Remove using 2021-12-21 13:44:20 +03:00
Scoring Create PerformanceAttributes 2021-12-21 13:08:31 +03:00
Screens Merge pull request #16135 from stanriders/refactor-diffcalc 2021-12-22 19:44:02 +09:00
Skinning Fix null reference in some tests due to missing realm context factory 2021-12-15 11:16:37 +09:00
Stores
Storyboards
Tests Fix ImportCollectionsTest.TestSaveAndReload not cleaning up before/after run 2021-12-22 13:38:20 +09:00
Updater
Users Add test for ranked/unranked user display 2021-12-19 13:40:22 +01:00
Utils
.editorconfig
osu!.res
osu.Game.csproj Update framework 2021-12-21 16:38:03 +09:00
OsuGame.cs Rename method and simplify SetDefault calling code 2021-12-21 15:34:32 +09:00
OsuGameBase_Importing.cs
OsuGameBase.cs
PerformFromMenuRunner.cs