Add a player list to the MP server browser.
This commit is contained in:
@@ -118,6 +118,7 @@ Container@MULTIPLAYER_PANEL:
|
||||
Y: 1
|
||||
Width: PARENT_RIGHT - 2
|
||||
Height: PARENT_BOTTOM - 2
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
Label@SELECTED_MAP:
|
||||
Y: 172
|
||||
Width: PARENT_RIGHT
|
||||
@@ -148,6 +149,10 @@ Container@MULTIPLAYER_PANEL:
|
||||
Height: 25
|
||||
Font: TinyBold
|
||||
Align: Center
|
||||
Container@CLIENT_LIST_CONTAINER:
|
||||
Y: 240
|
||||
Width: PARENT_RIGHT
|
||||
Height: 230
|
||||
Button@JOIN_BUTTON:
|
||||
Key: return
|
||||
Y: 255
|
||||
@@ -185,49 +190,4 @@ Container@MULTIPLAYER_PANEL:
|
||||
Width: 140
|
||||
Height: 35
|
||||
Text: Back
|
||||
TooltipContainer@TOOLTIP_CONTAINER:
|
||||
|
||||
ScrollPanel@MULTIPLAYER_FILTER_PANEL:
|
||||
Width: 147
|
||||
Height: 130
|
||||
Background: panel-black
|
||||
Children:
|
||||
Checkbox@WAITING_FOR_PLAYERS:
|
||||
X: 5
|
||||
Y: 5
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Waiting
|
||||
TextColor: 32CD32
|
||||
Font: Regular
|
||||
Checkbox@EMPTY:
|
||||
X: 5
|
||||
Y: 30
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Empty
|
||||
Font: Regular
|
||||
Checkbox@PASSWORD_PROTECTED:
|
||||
X: 5
|
||||
Y: 55
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Protected
|
||||
TextColor: FF0000
|
||||
Font: Regular
|
||||
Checkbox@ALREADY_STARTED:
|
||||
X: 5
|
||||
Y: 80
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Started
|
||||
TextColor: FFA500
|
||||
Font: Regular
|
||||
Checkbox@INCOMPATIBLE_VERSION:
|
||||
X: 5
|
||||
Y: 105
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Incompatible
|
||||
TextColor: BEBEBE
|
||||
Font: Regular
|
||||
TooltipContainer@TOOLTIP_CONTAINER:
|
||||
85
mods/cnc/chrome/multiplayer-browserpanels.yaml
Normal file
85
mods/cnc/chrome/multiplayer-browserpanels.yaml
Normal file
@@ -0,0 +1,85 @@
|
||||
ScrollPanel@MULTIPLAYER_CLIENT_LIST:
|
||||
Width: PARENT_RIGHT
|
||||
Height: 225
|
||||
IgnoreChildMouseOver: true
|
||||
Children:
|
||||
ScrollItem@HEADER:
|
||||
Width: PARENT_RIGHT - 27
|
||||
Height: 13
|
||||
X: 2
|
||||
Y: 0
|
||||
Visible: false
|
||||
Children:
|
||||
Label@LABEL:
|
||||
Font: TinyBold
|
||||
Width: PARENT_RIGHT
|
||||
Height: 10
|
||||
Align: Center
|
||||
ScrollItem@TEMPLATE:
|
||||
Width: PARENT_RIGHT - 27
|
||||
Height: 25
|
||||
X: 2
|
||||
Y: 0
|
||||
Visible: false
|
||||
Children:
|
||||
Image@FLAG:
|
||||
X: 4
|
||||
Y: 5
|
||||
Width: 32
|
||||
Height: 16
|
||||
Visible: False
|
||||
Label@LABEL:
|
||||
X: 40
|
||||
Width: PARENT_RIGHT - 50
|
||||
Height: 23
|
||||
Shadow: True
|
||||
Label@NOFLAG_LABEL:
|
||||
X: 5
|
||||
Width: PARENT_RIGHT
|
||||
Height: 23
|
||||
Shadow: True
|
||||
|
||||
ScrollPanel@MULTIPLAYER_FILTER_PANEL:
|
||||
Width: 147
|
||||
Height: 130
|
||||
Background: panel-black
|
||||
Children:
|
||||
Checkbox@WAITING_FOR_PLAYERS:
|
||||
X: 5
|
||||
Y: 5
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Waiting
|
||||
TextColor: 32CD32
|
||||
Font: Regular
|
||||
Checkbox@EMPTY:
|
||||
X: 5
|
||||
Y: 30
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Empty
|
||||
Font: Regular
|
||||
Checkbox@PASSWORD_PROTECTED:
|
||||
X: 5
|
||||
Y: 55
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Protected
|
||||
TextColor: FF0000
|
||||
Font: Regular
|
||||
Checkbox@ALREADY_STARTED:
|
||||
X: 5
|
||||
Y: 80
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Started
|
||||
TextColor: FFA500
|
||||
Font: Regular
|
||||
Checkbox@INCOMPATIBLE_VERSION:
|
||||
X: 5
|
||||
Y: 105
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Incompatible
|
||||
TextColor: BEBEBE
|
||||
Font: Regular
|
||||
@@ -90,6 +90,7 @@ Assemblies:
|
||||
ChromeLayout:
|
||||
cnc|chrome/mainmenu.yaml
|
||||
cnc|chrome/multiplayer-browser.yaml
|
||||
cnc|chrome/multiplayer-browserpanels.yaml
|
||||
cnc|chrome/multiplayer-createserver.yaml
|
||||
cnc|chrome/multiplayer-directconnect.yaml
|
||||
cnc|chrome/lobby.yaml
|
||||
|
||||
@@ -3,7 +3,7 @@ Background@MULTIPLAYER_PANEL:
|
||||
X: (WINDOW_RIGHT - WIDTH) / 2
|
||||
Y: (WINDOW_BOTTOM - HEIGHT) / 2
|
||||
Width: 808
|
||||
Height: 600
|
||||
Height: 550
|
||||
Children:
|
||||
Label@TITLE:
|
||||
Y: 15
|
||||
@@ -114,6 +114,7 @@ Background@MULTIPLAYER_PANEL:
|
||||
Y: 1
|
||||
Width: PARENT_RIGHT - 2
|
||||
Height: PARENT_BOTTOM - 2
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
Label@SELECTED_MAP:
|
||||
Y: 172
|
||||
Width: PARENT_RIGHT
|
||||
@@ -144,6 +145,10 @@ Background@MULTIPLAYER_PANEL:
|
||||
Height: 25
|
||||
Font: TinyBold
|
||||
Align: Center
|
||||
Container@CLIENT_LIST_CONTAINER:
|
||||
Y: 240
|
||||
Width: PARENT_RIGHT
|
||||
Height: 166
|
||||
Button@JOIN_BUTTON:
|
||||
Key: return
|
||||
Y: 255
|
||||
@@ -187,48 +192,4 @@ Background@MULTIPLAYER_PANEL:
|
||||
Height: 25
|
||||
Text: Back
|
||||
Font: Bold
|
||||
TooltipContainer@TOOLTIP_CONTAINER:
|
||||
|
||||
ScrollPanel@MULTIPLAYER_FILTER_PANEL:
|
||||
Width: 158
|
||||
Height: 130
|
||||
Children:
|
||||
Checkbox@WAITING_FOR_PLAYERS:
|
||||
X: 5
|
||||
Y: 5
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Waiting
|
||||
TextColor: 32CD32
|
||||
Font: Regular
|
||||
Checkbox@EMPTY:
|
||||
X: 5
|
||||
Y: 30
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Empty
|
||||
Font: Regular
|
||||
Checkbox@PASSWORD_PROTECTED:
|
||||
X: 5
|
||||
Y: 55
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Protected
|
||||
TextColor: FF0000
|
||||
Font: Regular
|
||||
Checkbox@ALREADY_STARTED:
|
||||
X: 5
|
||||
Y: 80
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Started
|
||||
TextColor: FFA500
|
||||
Font: Regular
|
||||
Checkbox@INCOMPATIBLE_VERSION:
|
||||
X: 5
|
||||
Y: 105
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Incompatible
|
||||
TextColor: BEBEBE
|
||||
Font: Regular
|
||||
TooltipContainer@TOOLTIP_CONTAINER:
|
||||
85
mods/common/chrome/multiplayer-browserpanels.yaml
Normal file
85
mods/common/chrome/multiplayer-browserpanels.yaml
Normal file
@@ -0,0 +1,85 @@
|
||||
ScrollPanel@MULTIPLAYER_CLIENT_LIST:
|
||||
Width: PARENT_RIGHT
|
||||
Height: 159
|
||||
IgnoreChildMouseOver: true
|
||||
Children:
|
||||
ScrollItem@HEADER:
|
||||
BaseName: scrollheader
|
||||
Width: PARENT_RIGHT - 27
|
||||
Height: 13
|
||||
X: 2
|
||||
Y: 0
|
||||
Visible: false
|
||||
Children:
|
||||
Label@LABEL:
|
||||
Font: TinyBold
|
||||
Width: PARENT_RIGHT
|
||||
Height: 10
|
||||
Align: Center
|
||||
ScrollItem@TEMPLATE:
|
||||
Width: PARENT_RIGHT - 27
|
||||
Height: 25
|
||||
X: 2
|
||||
Y: 0
|
||||
Visible: false
|
||||
Children:
|
||||
Image@FLAG:
|
||||
X: 4
|
||||
Y: 6
|
||||
Width: 32
|
||||
Height: 16
|
||||
Visible: False
|
||||
Label@LABEL:
|
||||
X: 40
|
||||
Width: PARENT_RIGHT - 50
|
||||
Height: 23
|
||||
Shadow: True
|
||||
Label@NOFLAG_LABEL:
|
||||
X: 5
|
||||
Width: PARENT_RIGHT
|
||||
Height: 23
|
||||
Shadow: True
|
||||
|
||||
ScrollPanel@MULTIPLAYER_FILTER_PANEL:
|
||||
Width: 158
|
||||
Height: 130
|
||||
Children:
|
||||
Checkbox@WAITING_FOR_PLAYERS:
|
||||
X: 5
|
||||
Y: 5
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Waiting
|
||||
TextColor: 32CD32
|
||||
Font: Regular
|
||||
Checkbox@EMPTY:
|
||||
X: 5
|
||||
Y: 30
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Empty
|
||||
Font: Regular
|
||||
Checkbox@PASSWORD_PROTECTED:
|
||||
X: 5
|
||||
Y: 55
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Protected
|
||||
TextColor: FF0000
|
||||
Font: Regular
|
||||
Checkbox@ALREADY_STARTED:
|
||||
X: 5
|
||||
Y: 80
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Started
|
||||
TextColor: FFA500
|
||||
Font: Regular
|
||||
Checkbox@INCOMPATIBLE_VERSION:
|
||||
X: 5
|
||||
Y: 105
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Incompatible
|
||||
TextColor: BEBEBE
|
||||
Font: Regular
|
||||
84
mods/d2k/chrome/multiplayer-browserpanels.yaml
Normal file
84
mods/d2k/chrome/multiplayer-browserpanels.yaml
Normal file
@@ -0,0 +1,84 @@
|
||||
ScrollPanel@MULTIPLAYER_CLIENT_LIST:
|
||||
Width: PARENT_RIGHT
|
||||
Height: 159
|
||||
IgnoreChildMouseOver: true
|
||||
Children:
|
||||
ScrollItem@HEADER:
|
||||
BaseName: scrollheader
|
||||
Width: PARENT_RIGHT - 27
|
||||
Height: 13
|
||||
X: 2
|
||||
Y: 0
|
||||
Visible: false
|
||||
Children:
|
||||
Label@LABEL:
|
||||
Font: TinyBold
|
||||
Width: PARENT_RIGHT
|
||||
Height: 10
|
||||
Align: Center
|
||||
ScrollItem@TEMPLATE:
|
||||
Width: PARENT_RIGHT - 27
|
||||
Height: 25
|
||||
X: 2
|
||||
Y: 0
|
||||
Visible: false
|
||||
Children:
|
||||
Image@FLAG:
|
||||
X: 4
|
||||
Y: 2
|
||||
Width: 32
|
||||
Height: 16
|
||||
Visible: False
|
||||
Label@LABEL:
|
||||
X: 35
|
||||
Width: PARENT_RIGHT - 45
|
||||
Height: 23
|
||||
Shadow: True
|
||||
Label@NOFLAG_LABEL:
|
||||
X: 5
|
||||
Width: PARENT_RIGHT
|
||||
Height: 23
|
||||
|
||||
ScrollPanel@MULTIPLAYER_FILTER_PANEL:
|
||||
Width: 158
|
||||
Height: 130
|
||||
Children:
|
||||
Checkbox@WAITING_FOR_PLAYERS:
|
||||
X: 5
|
||||
Y: 5
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Waiting
|
||||
TextColor: 32CD32
|
||||
Font: Regular
|
||||
Checkbox@EMPTY:
|
||||
X: 5
|
||||
Y: 30
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Empty
|
||||
Font: Regular
|
||||
Checkbox@PASSWORD_PROTECTED:
|
||||
X: 5
|
||||
Y: 55
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Protected
|
||||
TextColor: FF0000
|
||||
Font: Regular
|
||||
Checkbox@ALREADY_STARTED:
|
||||
X: 5
|
||||
Y: 80
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Started
|
||||
TextColor: FFA500
|
||||
Font: Regular
|
||||
Checkbox@INCOMPATIBLE_VERSION:
|
||||
X: 5
|
||||
Y: 105
|
||||
Width: PARENT_RIGHT - 29
|
||||
Height: 20
|
||||
Text: Incompatible
|
||||
TextColor: BEBEBE
|
||||
Font: Regular
|
||||
@@ -91,6 +91,7 @@ ChromeLayout:
|
||||
common|chrome/color-picker.yaml
|
||||
common|chrome/map-chooser.yaml
|
||||
common|chrome/multiplayer-browser.yaml
|
||||
d2k|chrome/multiplayer-browserpanels.yaml
|
||||
common|chrome/multiplayer-createserver.yaml
|
||||
common|chrome/multiplayer-directconnect.yaml
|
||||
common|chrome/connection.yaml
|
||||
|
||||
@@ -106,6 +106,7 @@ ChromeLayout:
|
||||
common|chrome/color-picker.yaml
|
||||
common|chrome/map-chooser.yaml
|
||||
common|chrome/multiplayer-browser.yaml
|
||||
common|chrome/multiplayer-browserpanels.yaml
|
||||
common|chrome/multiplayer-createserver.yaml
|
||||
common|chrome/multiplayer-directconnect.yaml
|
||||
common|chrome/connection.yaml
|
||||
|
||||
@@ -154,6 +154,7 @@ ChromeLayout:
|
||||
ts|chrome/color-picker.yaml
|
||||
common|chrome/map-chooser.yaml
|
||||
common|chrome/multiplayer-browser.yaml
|
||||
common|chrome/multiplayer-browserpanels.yaml
|
||||
common|chrome/multiplayer-createserver.yaml
|
||||
common|chrome/multiplayer-directconnect.yaml
|
||||
common|chrome/connection.yaml
|
||||
|
||||
Reference in New Issue
Block a user