Fix some events not firing correctly.

This commit is contained in:
Dean Herbert 2016-11-04 12:27:43 +09:00
parent a586e5a5ba
commit f3d461e318
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ namespace osu.Game.GameModes.Menu
Spacing = new Vector2(-wedge_width, 0),
Children = new[]
{
settingsButton = new Button(@"settings", @"options", FontAwesome.gear, new Color4(85, 85, 85, 255), OnSettings, -wedge_width, Key.O),
settingsButton = new Button(@"settings", @"options", FontAwesome.gear, new Color4(85, 85, 85, 255), () => OnSettings?.Invoke(), -wedge_width, Key.O),
backButton = new Button(@"back", @"back", FontAwesome.fa_osu_left_o, new Color4(51, 58, 94, 255), onBack, -wedge_width, Key.Escape),
iconFacade = new Container //need a container to make the osu! icon flow properly.
{

View File

@ -61,14 +61,14 @@ namespace osu.Game.Overlays
Icon = FontAwesome.gear,
TooltipMain = "Settings",
TooltipSub = "Change your settings",
Action = OnSettings
Action = () => OnSettings?.Invoke()
},
new ToolbarButton
{
Icon = FontAwesome.home,
TooltipMain = "Home",
TooltipSub = "Return to the main menu",
Action = OnHome
Action = () => OnHome?.Invoke()
},
modeSelector = new ToolbarModeSelector
{