Polish
This commit is contained in:
@@ -57,6 +57,8 @@ namespace OpenRA.Mods.Cnc.Widgets
|
||||
Game.AddChatLine += AddChatLineStub;
|
||||
}
|
||||
|
||||
ingameRoot.GetWidget<CncMenuButtonWidget>("DIPLOMACY_BUTTON").IsDisabled = () => true;
|
||||
|
||||
ingameRoot.GetWidget<CncMenuButtonWidget>("OPTIONS_BUTTON").OnClick = () =>
|
||||
{
|
||||
ingameRoot.IsVisible = () => false;
|
||||
@@ -109,6 +111,9 @@ namespace OpenRA.Mods.Cnc.Widgets
|
||||
surrenderButton.OnClick = () =>
|
||||
PromptConfirmAction("Surrender", "Are you sure you want to surrender?", onSurrender, doNothing);
|
||||
|
||||
menu.GetWidget<CncMenuButtonWidget>("MUSIC_BUTTON").IsDisabled = () => true;
|
||||
menu.GetWidget<CncMenuButtonWidget>("PREFERENCES_BUTTON").IsDisabled = () => true;
|
||||
|
||||
menu.GetWidget<CncMenuButtonWidget>("RESUME_BUTTON").OnClick = () =>
|
||||
{
|
||||
Widget.RootWidget.RemoveChild(menu);
|
||||
|
||||
Reference in New Issue
Block a user