mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 16:52:54 +08:00
Limit state changes to apply only once.
This commit is contained in:
parent
8d4e7038b3
commit
fbaae94ba4
@ -31,6 +31,7 @@ namespace osu.Game.Beatmaps.Objects
|
||||
|
||||
set
|
||||
{
|
||||
if (state == value) return;
|
||||
state = value;
|
||||
|
||||
UpdateState(state);
|
||||
|
@ -70,6 +70,14 @@ namespace osu.Game.Beatmaps.Objects.Osu.Drawable
|
||||
approachCircle.Texture = game.Textures.Get(@"Play/osu/approachcircle@2x");
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
//force application of the state that was set before we loaded.
|
||||
UpdateState(State);
|
||||
}
|
||||
|
||||
protected override void UpdateState(ArmedState state)
|
||||
{
|
||||
if (!IsLoaded) return;
|
||||
|
Loading…
Reference in New Issue
Block a user