Cheats menu

This commit is contained in:
Paul Chote
2011-05-15 19:34:06 +12:00
parent 0b0fac3c4b
commit 810953ea94
6 changed files with 180 additions and 5 deletions

View File

@@ -65,6 +65,10 @@ namespace OpenRA.Mods.Cnc.Widgets
});
};
var cheatsButton = ingameRoot.GetWidget<CncMenuButtonWidget>("CHEATS_BUTTON");
cheatsButton.OnClick = () => Game.OpenWindow("CHEATS_PANEL", new WidgetArgs());
cheatsButton.IsVisible = () => world.LobbyInfo.GlobalSettings.AllowCheats;
var postgameBG = ingameRoot.GetWidget("POSTGAME_BG");
postgameBG.IsVisible = () =>
{