mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Changed animation to match the one in Comp3 6c(will probably clean later), changed avatar sprite to a toolbar avatar(doesn't load in visual test since there's no OsuGame), removed random test case data, now static
This commit is contained in:
@ -76,7 +76,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
Masking = true;
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
[BackgroundDependencyLoader(permitNulls:true)]
|
||||
private void load(OsuGame game, TextureStore textures)
|
||||
{
|
||||
this.game = game;
|
||||
@ -98,18 +98,21 @@ namespace osu.Game.Overlays.Toolbar
|
||||
|
||||
newSprite.FillMode = FillMode.Fit;
|
||||
|
||||
newSprite.LoadAsync(game, s =>
|
||||
if (game != null)
|
||||
{
|
||||
Sprite?.FadeOut();
|
||||
Sprite?.Expire();
|
||||
Sprite = s;
|
||||
newSprite.LoadAsync(game, s =>
|
||||
{
|
||||
Sprite?.FadeOut();
|
||||
Sprite?.Expire();
|
||||
Sprite = s;
|
||||
|
||||
Add(s);
|
||||
Add(s);
|
||||
|
||||
//todo: fix this... clock dependencies are a pain
|
||||
if (s.Clock != null)
|
||||
s.FadeInFromZero(200);
|
||||
});
|
||||
//todo: fix this... clock dependencies are a pain
|
||||
if (s.Clock != null)
|
||||
s.FadeInFromZero(200);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user