Skip to content

Commit f868355

Browse files
committed
UI Refactor
1 parent 85b73aa commit f868355

2 files changed

Lines changed: 86 additions & 54 deletions

File tree

ClientFiles/Resources/GameLobbyBase.ini

Lines changed: 84 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
BasedOn=GenericWindow.ini
33

44
[GameLobbyBase]
5-
PlayerOptionLocationX=12 ; def=25
5+
PlayerOptionLocationX=20;12 ; def=25
66
PlayerOptionLocationY=25 ; def=24
77
PlayerOptionVerticalMargin=9 ; def=12
88
PlayerOptionHorizontalMargin=5 ; def=3
99
PlayerOptionCaptionLocationY=6 ; def=6
10-
PlayerNameWidth=127 ; def=136
10+
PlayerNameWidth=100 ; def=136
1111
SideWidth=120 ; def=91
12-
ColorWidth=80 ; def=79
13-
StartWidth=50 ; def=49
14-
TeamWidth=50 ; def=46
12+
ColorWidth=85;80 ; def=79
13+
StartWidth=35;50 ; def=49
14+
TeamWidth=35;50 ; def=46
1515

1616
; controls
1717
$CC00=btnLaunchGame:GameLaunchButton
@@ -128,7 +128,7 @@ $X=getRight(lbMapList) - getWidth($Self)
128128
$Y=getY(lbMapList) - getHeight($Self) - EMPTY_SPACE_TOP
129129

130130
[lblGameModeSelect]
131-
Text=Game mode:
131+
Text=GAME MODE:
132132
$X=getX(ddGameMode) - getWidth($Self) - LABEL_SPACING
133133
$Y=getY(ddGameMode) + 1
134134

@@ -203,8 +203,8 @@ $CC00=btnPlayerExtraOptionsOpen:XNAClientButton
203203
[PlayerExtraOptionsPanel]
204204
$Width=238
205205
$Height=247
206-
$X=getRight(PlayerOptionsPanel) - getWidth($Self)
207-
$Y=getY(PlayerOptionsPanel)
206+
$X=getX(PlayerOptionsPanel) + 10;getRight(PlayerOptionsPanel) - getWidth($Self)
207+
$Y=getY(PlayerOptionsPanel) + 10
208208

209209
[PlayerExtraOptionsPanel_btnClose]
210210
Location=220,0
@@ -244,13 +244,13 @@ Location=12,189
244244
[btnPlayerExtraOptionsOpen]
245245
$Width=OPEN_BUTTON_WIDTH
246246
$Height=OPEN_BUTTON_HEIGHT
247-
$X=getWidth($ParentControl) - getWidth($Self)
247+
$X=0;getWidth($ParentControl) - getWidth($Self)
248248
$Y=0
249249
IdleTexture=optionsButton.png
250250
HoverTexture=optionsButton_c.png
251251

252252
[GameOptionsPanel]
253-
$Width=330
253+
$Width=380
254254
$Height=270
255255
$X=getWidth($ParentControl) - getWidth($Self) - LOBBY_EMPTY_SPACE_SIDES
256256
$Y=EMPTY_SPACE_TOP
@@ -259,18 +259,23 @@ SolidColorBackgroundTexture=0,0,0,128
259259
; Left column checkboxes
260260
$CC-GO01=chkShortGame:GameLobbyCheckBox
261261
$CC-GO02=chkRedeplMCV:GameLobbyCheckBox
262-
$CC-GO03=chkSuperWeapons:GameLobbyCheckBox
263-
$CC-GO04=chkCrates:GameLobbyCheckBox
264-
$CC-GO05=chkBuildOffAlly:GameLobbyCheckBox
265-
$CC-GO06=chkMultiEngineer:GameLobbyCheckBox
262+
$CC-GO04=chkSuperWeapons:GameLobbyCheckBox
263+
$CC-GO05=chkCrates:GameLobbyCheckBox
264+
$CC-GO06=chkBuildOffAlly:GameLobbyCheckBox
265+
266+
; Middle column checkboxes
267+
;$CC-GO07=chkMultiEngineer:GameLobbyCheckBox
268+
;$CC-GO08=chkIngameAllying:GameLobbyCheckBox
269+
;$CC-GO09=chkDestroyableBridges:GameLobbyCheckBox
270+
;$CC-GO10=chkRA2Mode:GameLobbyCheckBox
271+
;$CC-GO11=chkNoSpawnPreview:GameLobbyCheckBox
266272

267273
; Right column checkboxes
268-
$CC-GO07=chkIngameAllying:GameLobbyCheckBox
269-
$CC-GO08=chkStolenTech:GameLobbyCheckBox
270-
$CC-GO09=chkNavalCombat:GameLobbyCheckBox
271-
$CC-GO10=chkDestroyableBridges:GameLobbyCheckBox
272-
$CC-GO11=chkBrutalAI:GameLobbyCheckBox
273-
$CC-GO12=chkNoSpawnPreview:GameLobbyCheckBox
274+
;$CC-GO12=chkNoYuri:GameLobbyCheckBox
275+
;$CC-GO13=chkNoFrance:GameLobbyCheckBox
276+
;$CC-GO14=chkNoSpy:GameLobbyCheckBox
277+
;$CC-GO15=chkNoDogEngiEat:GameLobbyCheckBox
278+
;$CC-GO16=chkStolenTech:GameLobbyCheckBox
274279

275280
; Dropdowns
276281
$CC-GODD01=cmbCredits:GameLobbyDropDown
@@ -322,7 +327,7 @@ $X=getX(chkShortGame)
322327
$Y=getBottom(chkRedeplMCV) + GAME_OPTION_ROW_SPACING
323328
324329
[chkCrates]
325-
Text=Crates Appear
330+
Text=Crates
326331
SpawnIniOption=Crates
327332
Checked=False
328333
ToolTip=Random power-up crates will appear.
@@ -337,6 +342,10 @@ ToolTip=Allow players to build near their allies' Construction Yards.
337342
$X=getX(chkShortGame)
338343
$Y=getBottom(chkCrates) + GAME_OPTION_ROW_SPACING
339344

345+
;============================
346+
; MIDDLE Column Checkboxes
347+
;============================
348+
340349
[chkMultiEngineer]
341350
Text=Multi Engineer
342351
SpawnIniOption=MultiEngineer
@@ -345,10 +354,6 @@ ToolTip=Capturing structures requires 3 Engineers instead of 1.
345354
$X=getX(chkShortGame)
346355
$Y=getBottom(chkBuildOffAlly) + GAME_OPTION_ROW_SPACING
347356

348-
;============================
349-
; Right Column Checkboxes
350-
;============================
351-
352357
[chkIngameAllying]
353358
Text=Ingame Allying
354359
SpawnIniOption=AlliesAllowed
@@ -358,42 +363,23 @@ ToolTip=Players can form and break alliances in game.
358363
$X=getX(chkShortGame) + GAME_OPTION_COLUMN_SPACING
359364
$Y=getY(chkShortGame)
360365

361-
[chkStolenTech]
362-
Text=Stolen Tech
363-
CustomIniPath=INI/Game Options/StolenTech.ini
364-
Checked=True
365-
ToolTip=Allow infiltration of battle labs for stolen tech infantry.
366-
Reversed=yes
367-
$X=getX(chkIngameAllying)
368-
$Y=getBottom(chkIngameAllying) + GAME_OPTION_ROW_SPACING
369-
370-
[chkNavalCombat]
371-
Text=Naval Combat
372-
CustomIniPath=INI/Game Options/NavalCombat.ini
373-
Checked=True
374-
ToolTip=Allow shipyards and naval units to be built.
375-
Reversed=yes
376-
$X=getX(chkIngameAllying)
377-
$Y=getBottom(chkStolenTech) + GAME_OPTION_ROW_SPACING
378-
379366
[chkDestroyableBridges]
380367
Text=Destroyable Bridges
381-
CustomIniPath=INI/Game Options/DestroyableBridges.ini
368+
SpawnIniOption=BridgeDestroy
382369
Checked=True
383370
Location=1038,86
384371
ToolTip=Allow bridges to be destroyed by conventional weapons & force firing.
385-
Reversed=yes
386372
$X=getX(chkIngameAllying)
387373
$Y=getBottom(chkNavalCombat) + GAME_OPTION_ROW_SPACING
388374

389-
[chkBrutalAI]
390-
Text=Brutal AI
391-
CustomIniPath=INI/Game Options/BrutalAI.ini
392-
Checked=False
393-
Location=1038,107
394-
ToolTip=Makes the AI harder across all levels.
375+
[chkRA2Mode]
376+
SpawnIniOption=Ra2Mode
377+
DefaultValue=False
378+
ToolTip=Red Alert 2 Classic Mode will turn gameplay into Red Alert 2.
379+
Text=Red Alert 2
380+
DisallowedSideIndex=9
395381
$X=getX(chkIngameAllying)
396-
$Y=getBottom(chkDestroyableBridges) + GAME_OPTION_ROW_SPACING
382+
$Y=getBottom(chkNavalCombat) + GAME_OPTION_ROW_SPACING
397383

398384
[chkNoSpawnPreview]
399385
Text=No Spawn Previews
@@ -404,6 +390,52 @@ ToolTip=Do not display players' starting locations in loading screen map preview
404390
$X=getX(chkIngameAllying)
405391
$Y=getBottom(chkBrutalAI) + GAME_OPTION_ROW_SPACING
406392
393+
;============================
394+
; Right Column Checkboxes
395+
;============================
396+
397+
[chkNoYuri]
398+
Text=No Yuri
399+
CustomIniPath=INI/Game Options/NoYuri.ini
400+
ToolTip=Yuri is disabled
401+
DefaultValue=False
402+
DisallowedSideIndices=9
403+
$X=getX(chkIngameAllying)
404+
$Y=getBottom(chkIngameAllying) + GAME_OPTION_ROW_SPACING
405+
406+
[chkNoFrance]
407+
Text=No France
408+
CustomIniPath=INI/Game Options/NoFrance.ini
409+
ToolTip=France is disabled
410+
DefaultValue=False
411+
DisallowedSideIndices=2
412+
$X=getX(chkIngameAllying)
413+
$Y=getBottom(chkIngameAllying) + GAME_OPTION_ROW_SPACING
414+
415+
[chkNoSpy]
416+
Text=No Spy
417+
CustomIniPath=INI/Game Options/NoSpy.ini
418+
DefaultValue=False
419+
ToolTip=Spies are disabled
420+
$X=getX(chkIngameAllying)
421+
$Y=getBottom(chkIngameAllying) + GAME_OPTION_ROW_SPACING
422+
423+
[chkNoDogEngiEat]
424+
Text=No Dog Engineer Kills
425+
CustomIniPath=INI/Game Options/NoDogEngiEat.ini
426+
Checked=False
427+
ToolTip=Dogs will be unable to kill Engineers.
428+
$X=getX(chkIngameAllying)
429+
$Y=getBottom(chkIngameAllying) + GAME_OPTION_ROW_SPACING
430+
431+
[chkStolenTech]
432+
Text=Stolen Tech
433+
CustomIniPath=INI/Game Options/StolenTech.ini
434+
Checked=True
435+
ToolTip=Allow infiltration of battle labs for stolen tech infantry.
436+
Reversed=yes
437+
$X=getX(chkIngameAllying)
438+
$Y=getBottom(chkIngameAllying) + GAME_OPTION_ROW_SPACING
407439
408440
;============================
409441
; Dropdowns

ClientFiles/Resources/MultiplayerGameLobby.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ PlayerOptionHorizontalMargin=5 ; def=3
1010
PlayerOptionCaptionLocationY=6 ; def=6
1111
PlayerStatusIndicatorX=8
1212
PlayerStatusIndicatorY=0
13-
PlayerNameWidth=135 ; def=136
13+
PlayerNameWidth=100;135 ; def=136
1414
SideWidth=110 ; def=91
1515
ColorWidth=80 ; def=79
16-
StartWidth=45 ; def=49
16+
StartWidth=35 ; def=49
1717
TeamWidth=35 ; def=46
1818

1919
; controls

0 commit comments

Comments
 (0)