mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Fix ValueChanged events being called out of order
This commit is contained in:
@ -53,7 +53,13 @@ namespace osu.Game.Graphics.Containers
|
|||||||
|
|
||||||
samplePopIn = audio.Samples.Get(@"UI/overlay-pop-in");
|
samplePopIn = audio.Samples.Get(@"UI/overlay-pop-in");
|
||||||
samplePopOut = audio.Samples.Get(@"UI/overlay-pop-out");
|
samplePopOut = audio.Samples.Get(@"UI/overlay-pop-out");
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
|
|
||||||
|
// This must be added after the base LoadComplete. The overlay may need to be hidden immediately if its disabled.
|
||||||
State.ValueChanged += onStateChanged;
|
State.ValueChanged += onStateChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user