Skip to content

Commit b83f1ef

Browse files
committed
0.8.3604
- changes in cncnet lobby gui
1 parent 31a5260 commit b83f1ef

File tree

2 files changed

+42
-46
lines changed

2 files changed

+42
-46
lines changed

Resources/GameLobbyBase.ini

Lines changed: 38 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
; mbnq00@gmail.com
2121
; https://www.mbnq.pl/
2222
;
23-
; .ini Version: 0.8.3501
24-
; mod Version: 0.8.3501
23+
; .ini Version: 0.8.3604
24+
; mod Version: 0.8.3604
2525
;_____________________________________________________________________________________
2626

2727
[INISystem]
@@ -42,14 +42,17 @@ TeamWidth=32 ; def=46
4242
; controls
4343
$CC00=btnLaunchGame:GameLaunchButton
4444
$CC01=btnLeaveGame:XNAClientButton
45-
$CC03=MapPreviewBox:MapPreviewBox
46-
$CC04=GameOptionsPanel:XNAPanel
47-
$CC05=PlayerOptionsPanel:XNAPanel
45+
$CC02=lbMapList:XNAMultiColumnListBox
46+
47+
$CC03=GameOptionsPanel:XNAPanel
48+
$CC04=PlayerOptionsPanel:XNAPanel
49+
$CC05=MapPreviewBox:MapPreviewBox
50+
51+
4852
;$CC06=lblMapName:XNALabel
4953
;$CC07=lblMapAuthor:XNALabel
5054
;$CC08=lblGameMode:XNALabel
5155
;$CC09=lblMapSize:XNALabel
52-
$CC12=lbMapList:XNAMultiColumnListBox
5356
$CC13=ddGameMode:XNAClientDropDown
5457
$CC14=lblGameModeSelect:XNALabel
5558
$CC15=btnPickRandomMap:XNAClientButton
@@ -144,8 +147,29 @@ $BaseSection=ddPlayerStartBase
144147
[lbMapList]
145148
$X=LOBBY_EMPTY_SPACE_SIDES
146149
$Y=EMPTY_SPACE_TOP + 33
147-
$Width=getWidth($ParentControl) - (getX($Self) + (getWidth(MapPreviewBox) + LOBBY_EMPTY_SPACE_SIDES + LOBBY_PANEL_SPACING)
148-
$Height=getBottom(MapPreviewBox) - getY($Self)
150+
$Width=380
151+
$Height=getBottom($ParentControl) - getY($Self) - EMPTY_SPACE_TOP - EMPTY_SPACE_BOTTOM - 80
152+
SolidColorBackgroundTexture=0,0,0,128
153+
154+
[PlayerOptionsPanel]
155+
$X=getWidth(lbMapList) + LOBBY_EMPTY_SPACE_SIDES + LOBBY_EMPTY_SPACE_SIDES - 3
156+
$Y=EMPTY_SPACE_TOP
157+
$Width=getWidth($ParentControl) - (getX($Self) + (getWidth(GameOptionsPanel) + DEFAULT_CONTROL_HEIGHT)
158+
$Height=270
159+
SolidColorBackgroundTexture=0,0,0,128
160+
$CC00=btnPlayerExtraOptionsOpen:XNAClientButton
161+
162+
[PlayerExtraOptionsPanel]
163+
$Width=238
164+
$Height=247
165+
$X=getRight(PlayerOptionsPanel)
166+
$Y=getY(PlayerOptionsPanel)
167+
168+
[MapPreviewBox]
169+
$Width=getWidth(PlayerOptionsPanel)
170+
$Height=getBottom(GameOptionsPanel) - getBottom(PlayerOptionsPanel) - LOBBY_PANEL_SPACING
171+
$X=getX(PlayerOptionsPanel)
172+
$Y=getBottom(PlayerOptionsPanel) + LOBBY_PANEL_SPACING
149173
SolidColorBackgroundTexture=0,0,0,128
150174

151175
[ddGameMode]
@@ -181,33 +205,24 @@ $Y=getY(btnLaunchGame) - getHeight($Self) - LOBBY_PANEL_SPACING
181205
[tbMapSearch]
182206
Suggestion=Search map...
183207
$Width=getRight(lbMapList) - getRight(btnPickRandomMap) - LOBBY_PANEL_SPACING
184-
$Height=DEFAULT_BUTTON_HEIGHT ;DEFAULT_CONTROL_HEIGHT
208+
$Height=DEFAULT_BUTTON_HEIGHT
185209
$X=getRight(btnPickRandomMap) + LOBBY_PANEL_SPACING
186-
$Y=getY(btnPickRandomMap) ; + 1
210+
$Y=getY(btnPickRandomMap)
187211
BackColor=255,255,255
188212
;SolidColorBackgroundTexture=0,0,0,128
189213
;Visible=false
190214
;Enabled=false
191215

192-
[MapPreviewBox]
193-
$Width=812
194-
$Height=380
195-
$X=getWidth($ParentControl) - getWidth($Self) - LOBBY_EMPTY_SPACE_SIDES
196-
$Y=292
197-
SolidColorBackgroundTexture=0,0,0,128
198-
199216
[lblBFTIP0]
200-
Text=TIP: Yuri is meant to be main AI opponent in Brute Force.
201-
; Location=450,300
217+
Text=TIP: Yuri is meant to be main AI opponent in BF.
202218
FontIndex=3
203-
$X=getWidth(MapPreviewBox)
219+
$X=getX(GameOptionsPanel)
204220
$Y=getBottom(MapPreviewBox) + LABEL_SPACING
205221

206222
[lblBFTIP1]
207223
Text=Yuri is not a playable side.
208-
; Location=450,300
209224
FontIndex=3
210-
$X=getWidth(MapPreviewBox) + 33
225+
$X=getX(GameOptionsPanel)
211226
$Y=getBottom(lblBFTIP0) + 2
212227

213228
[lblGameMode]
@@ -220,7 +235,6 @@ FontIndex=3
220235
$Height=DEFAULT_LBL_HEIGHT
221236
$X=getX(MapPreviewBox)
222237
$Y=getBottom(lblGameMode) + LABEL_SPACING
223-
;$Y=getY(MapPreviewBox) + LABEL_SPACING
224238

225239
[lblMapAuthor]
226240
FontIndex=3
@@ -243,20 +257,6 @@ $Height=DEFAULT_BUTTON_HEIGHT
243257
$X=getWidth($ParentControl) - getWidth($Self) - LOBBY_EMPTY_SPACE_SIDES
244258
$Y=getY(btnLaunchGame)
245259

246-
[PlayerOptionsPanel]
247-
$X=getX(MapPreviewBox)
248-
$Y=EMPTY_SPACE_TOP
249-
$Width=getWidth($ParentControl) - (getX($Self) + (getWidth(GameOptionsPanel) + LOBBY_EMPTY_SPACE_SIDES + LOBBY_PANEL_SPACING)
250-
$Height=getHeight(GameOptionsPanel)
251-
SolidColorBackgroundTexture=0,0,0,128
252-
$CC00=btnPlayerExtraOptionsOpen:XNAClientButton
253-
254-
[PlayerExtraOptionsPanel]
255-
$Width=238
256-
$Height=247
257-
$X=getRight(PlayerOptionsPanel) ;+ getWidth($Self)
258-
$Y=getY(PlayerOptionsPanel)
259-
260260
[PlayerExtraOptionsPanel_btnClose]
261261
Location=220,0
262262
Size=18,18
@@ -302,7 +302,7 @@ HoverTexture=optionsButton_c.png
302302

303303
[GameOptionsPanel]
304304
$Width=330
305-
$Height=270
305+
$Height=getBottom($ParentControl) - getY($Self) - 116
306306
$X=getWidth($ParentControl) - getWidth($Self) - LOBBY_EMPTY_SPACE_SIDES
307307
$Y=EMPTY_SPACE_TOP
308308
SolidColorBackgroundTexture=0,0,0,128
@@ -345,7 +345,6 @@ $CC01=BtnSaveLoadGameOptions:XNAClientButton
345345
$CCBF10=lblXPMult:XNALabel
346346
$CCBF11=lblDebugBF:XNALabel
347347

348-
349348
[BtnSaveLoadGameOptions]
350349
$Width=OPEN_BUTTON_WIDTH
351350
$Height=OPEN_BUTTON_HEIGHT
@@ -399,8 +398,6 @@ Checked=False
399398
Location=1038,86
400399
ToolTip=Allow bridges to be destroyed by conventional weapons & force firing.
401400
Reversed=yes
402-
; $X=getX(chkIngameAllying)
403-
; $Y=getBottom(chkNavalCombat) + GAME_OPTION_ROW_SPACING
404401
$X=getX(chkShortGame)
405402
$Y=getBottom(chkSuperWeapons) + GAME_OPTION_ROW_SPACING
406403
@@ -639,7 +636,6 @@ $Y=getY(cmbDebugBF) - LABEL_SPACING - DEFAULT_LBL_HEIGHT
639636
Enabled=yes
640637
Visible=yes
641638
642-
643639
; Window Border Sides
644640
645641
[panelBorderTop]

Resources/MultiplayerGameLobby.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
; mbnq00@gmail.com
2121
; https://www.mbnq.pl/
2222
;
23-
; .ini Version: 0.8.3408
24-
; mod Version: 0.8.3408
23+
; .ini Version: 0.8.3604
24+
; mod Version: 0.8.3604
2525
;_____________________________________________________________________________________
2626

2727
[INISystem]
@@ -48,10 +48,10 @@ $CCMP01=chkAutoReady:XNAClientCheckBox
4848
;$CCMP06=chkAutoSave:GameLobbyCheckBox ; for future usage
4949

5050
[lbMapList]
51-
$Height=291
51+
$Height=getBottom($ParentControl) - getY($Self) - EMPTY_SPACE_TOP - EMPTY_SPACE_BOTTOM - 400
5252

5353
[btnPickRandomMap]
54-
$Y=getBottom(lbMapList) + LOBBY_PANEL_SPACING
54+
$Y=getBottom(lbMapList) + LOBBY_PANEL_SPACING + LOBBY_PANEL_SPACING
5555

5656
[tbMapSearch]
5757
$X=getRight(btnPickRandomMap) + LOBBY_PANEL_SPACING

0 commit comments

Comments
 (0)