fixed remove/hide main-menu when sub-menus are closed

This commit is contained in:
Matthias Mailänder
2013-04-25 18:01:16 +02:00
committed by Scott_NZ
parent 3ce68d2f7d
commit 4470d67617
3 changed files with 43 additions and 9 deletions

View File

@@ -21,7 +21,8 @@ namespace OpenRA.Mods.RA.Widgets.Logic
{
Widget bg;
public SettingsMenuLogic()
[ObjectCreator.UseCtor]
public SettingsMenuLogic(Action onExit)
{
bg = Ui.Root.Get<BackgroundWidget>("SETTINGS_MENU");
var tabs = bg.Get<ContainerWidget>("TAB_CONTAINER");
@@ -247,6 +248,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
int.TryParse(maxFrameRate.Text, out gs.MaxFramerate);
Game.Settings.Save();
Ui.CloseWindow();
onExit();
};
}