From 9c40fcec27bffdeb9523d865775c6e3ca24b3ea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Fri, 5 Apr 2013 09:58:42 +0200 Subject: [PATCH 1/2] Hotfix: make the C&C cheat menu not crash --- mods/cnc/chrome/cheats.yaml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/mods/cnc/chrome/cheats.yaml b/mods/cnc/chrome/cheats.yaml index 47c8dadff2..7b4f564c61 100644 --- a/mods/cnc/chrome/cheats.yaml +++ b/mods/cnc/chrome/cheats.yaml @@ -14,7 +14,7 @@ Container@CHEATS_PANEL: Text:Cheats Background@bg: Width:590 - Height:110 + Height:140 Background:panel-black Children: Checkbox@INSTANT_BUILD: @@ -71,28 +71,39 @@ Container@CHEATS_PANEL: Height:20 Width:200 Text:Show A* Cost + Checkbox@DESYNC_ARMED: + X:400 + Y:105 + Width:20 + Height:20 + Button@DESYNC: + X:430 + Y:100 + Width:120 + Height:25 + Text: Force Desync Button@CLOSE: Key:escape X:0 - Y:109 + Y:139 Width:140 Height:35 Text:Close Button@GIVE_CASH: X:150 - Y:109 + Y:139 Width:140 Height:35 Text:Give Cash Button@GIVE_EXPLORATION: X:300 - Y:109 + Y:139 Width:140 Height:35 Text:Give Exploration Button@RESET_EXPLORATION: X:450 - Y:109 + Y:139 Width:140 Height:35 Text:Reset Exploration \ No newline at end of file From 11c5aeec6abdb87b6b5a3681a3ab95813ecc6a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Fri, 5 Apr 2013 10:30:06 +0200 Subject: [PATCH 2/2] more widgets for the C&C lobby - random map - crates on/off - assign teams --- mods/cnc/chrome/lobby.yaml | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/mods/cnc/chrome/lobby.yaml b/mods/cnc/chrome/lobby.yaml index 6d03ed3f06..4a1d70e709 100644 --- a/mods/cnc/chrome/lobby.yaml +++ b/mods/cnc/chrome/lobby.yaml @@ -39,18 +39,12 @@ Container@SERVER_LOBBY: Height:25 Font:Bold Align:Center - Checkbox@ALLOWCHEATS_CHECKBOX: - X:PARENT_RIGHT-209 - Y:255 - Width:130 - Height:20 - Text: Allow Cheats ScrollPanel@PLAYERS: X:15 Y:30 Width:503 ItemSpacing:5 - Height:245 + Height:219 Children: Container@TEMPLATE_EDITABLE_PLAYER: X:5 @@ -333,6 +327,33 @@ Container@SERVER_LOBBY: Text:Ready Align:Left Font:Bold + Checkbox@ALLOWCHEATS_CHECKBOX: + X:15 + Y:255 + Width:130 + Height:20 + Text: Allow Cheats + Checkbox@CRATES_CHECKBOX: + X:160 + Y:255 + Width:80 + Height:20 + Text: Crates + DropDownButton@ASSIGNTEAMS_DROPDOWNBUTTON: + X:399 + Y:255 + Width:120 + Height:25 + Font:Bold + Visible:false + Text:Assign + Button@RANDOMMAP_BUTTON: + X:PARENT_RIGHT-120-15-40 + Y:255 + Width:120 + Height:25 + Text:Random Map + Font:Bold ScrollPanel@CHAT_DISPLAY: X:15 Y:285