File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
OpenRA.Mods.RA/Widgets/Logic Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,7 @@ public IngameChromeLogic(World world)
31
31
r . GetWidget < ButtonWidget > ( "INGAME_OPTIONS_BUTTON" ) . OnClick = ( ) =>
32
32
optionsBG . Visible = ! optionsBG . Visible ;
33
33
34
- optionsBG . GetWidget < ButtonWidget > ( "DISCONNECT" ) . OnClick = ( ) =>
35
- {
36
- optionsBG . Visible = false ;
37
- Game . Disconnect ( ) ;
38
- Game . LoadShellMap ( ) ;
39
- Widget . CloseWindow ( ) ;
40
- Widget . OpenWindow ( "MAINMENU_BG" ) ;
41
- } ;
34
+ optionsBG . GetWidget < ButtonWidget > ( "DISCONNECT" ) . OnClick = ( ) => LeaveGame ( optionsBG ) ;
42
35
43
36
optionsBG . GetWidget < ButtonWidget > ( "SETTINGS" ) . OnClick = ( ) => Widget . OpenWindow ( "SETTINGS_MENU" ) ;
44
37
optionsBG . GetWidget < ButtonWidget > ( "MUSIC" ) . OnClick = ( ) => Widget . OpenWindow ( "MUSIC_MENU" ) ;
You can’t perform that action at this time.
0 commit comments