Skip to content

Commit

Permalink
Fix breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
Game4all committed Dec 26, 2023
1 parent 69d290c commit 1038d63
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions osu.Game.Rulesets.Gamebosu/Graphics/GamebosuToolbarIcon.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using osu.Framework.Allocation;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Framework.Screens;
using osu.Game.Overlays.Toolbar;
using osu.Game.Rulesets.Gamebosu.UI.Screens;
Expand All @@ -17,9 +19,13 @@ public GamebosuToolbarIcon(GamebosuRuleset ruleset)
}

[BackgroundDependencyLoader]
private void load(OsuGame game)
private void load(OsuGame game, TextureStore textures)
{
SetIcon("Textures/gamebosu_toolbar.png");
SetIcon(new Sprite
{
Texture = textures.Get("Textures/gamebosu_toolbar.png")
});

Action = () =>
{
if (!game.LocalUserPlaying.Value)
Expand Down

0 comments on commit 1038d63

Please sign in to comment.