Files
OpenRA/mods/cnc/chrome/lobby.yaml
Paul Chote 4f172d7ed8 Make bots first-class players.
- Bots have their own Clients, with unique ClientIDs
 - Hosts can set bot team/color in the lobby
 - Bots are kicked when switching to a smaller map without enough slots
 - Order validator assumes that only client 0 has permission to issue bot orders
2011-06-20 22:50:29 +12:00

441 lines
8.3 KiB
YAML

Container@SERVER_LOBBY:
Id:SERVER_LOBBY
Logic:CncLobbyLogic
X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - 500)/2
Width:740
Height:535
Children:
Label@TITLE:
Id:TITLE
Width:740
Y:0-25
Font:BigBold
Contrast:true
Align:Center
Background@bg:
Width:740
Height:500
Background:panel-black
Children:
Background@MAP_BG:
X:PARENT_RIGHT-15-WIDTH
Y:30
Width:194
Height:194
Background:panel-gray
Children:
MapPreview@MAP_PREVIEW:
Id:MAP_PREVIEW
X:1
Y:1
Width:192
Height:192
Checkbox@LOCKTEAMS_CHECKBOX:
Id:LOCKTEAMS_CHECKBOX
X:PARENT_RIGHT-209
Y:230
Width:130
Height:20
Text: Lock Teams
Checkbox@ALLOWCHEATS_CHECKBOX:
Id:ALLOWCHEATS_CHECKBOX
X:PARENT_RIGHT-209
Y:255
Width:130
Height:20
Text: Allow Cheats
ScrollPanel@PLAYERS:
Id:PLAYERS
X:15
Y:30
Width:504
ItemSpacing:5
Height:245
Children:
Container@TEMPLATE_LOCAL:
Id:TEMPLATE_LOCAL
X:5
Y:0
Width:475
Height:25
Visible:false
Children:
TextField@NAME:
Id:NAME
Text:Name
Width:150
Height:25
MaxLength:16
Visible:false
DropDownButton@BOT_DROPDOWN:
Id:BOT_DROPDOWN
Text:Name
Width:150
Height:25
Font:Regular
Visible:false
DropDownButton@COLOR:
Id:COLOR
Width:80
Height:25
X:160
Font:Regular
Children:
ColorBlock@COLORBLOCK:
Id:COLORBLOCK
X:5
Y:6
Width:PARENT_RIGHT-35
Height:PARENT_BOTTOM-12
DropDownButton@FACTION:
Id:FACTION
Width:130
Height:25
X:250
Font:Regular
Children:
Image@FACTIONFLAG:
Id:FACTIONFLAG
Width:30
Height:15
X:5
Y:5
Label@FACTIONNAME:
Id:FACTIONNAME
Text:Faction
Width:60
Height:25
X:40
Y:0
DropDownButton@TEAM:
Id:TEAM
Text:Team
Width:48
Height:25
X:390
Font:Regular
Checkbox@STATUS:
Id:STATUS
X:448
Y:2
Width:20
Height:20
Container@TEMPLATE_REMOTE:
Id:TEMPLATE_REMOTE
X:5
Y:0
Width:475
Height:25
Visible:false
Children:
Label@NAME:
Id:NAME
Text:Name
Width:145
Height:25
X:5
Y:0-1
Button@KICK:
Id:KICK
Text:X
Width:25
Height:23
X:125
Y:2
Font:Bold
ColorBlock@COLOR:
Id:COLOR
X:165
Y:6
Width:45
Height:13
Label@FACTION:
Id:FACTION
Width:130
Height:25
X:250
Y:0
Children:
Image@FACTIONFLAG:
Id:FACTIONFLAG
Width:30
Height:15
X:5
Y:5
Label@FACTIONNAME:
Id:FACTIONNAME
Text:Faction
Width:60
Height:25
X:40
Y:0
Label@TEAM:
Id:TEAM
Text:Team
Width:23
Height:25
Align:Center
X:390
Y:0
Checkbox@STATUS:
Id:STATUS
X:448
Y:2
Width:20
Height:20
Container@TEMPLATE_EMPTY:
Id:TEMPLATE_EMPTY
X:5
Y:0
Width:475
Height:25
Visible:false
Children:
DropDownButton@NAME_HOST:
Id:NAME_HOST
Text:Name
Width:150
Height:25
Font:Regular
Visible:false
Label@NAME:
Id:NAME
Text:Name
Width:145
Height:25
X:5
Y:0-1
Visible:false
Button@JOIN:
Id:JOIN
Text:Play in this slot
Font:Regular
Width:278
Height:25
X:160
Y:0
Container@TEMPLATE_LOCAL_SPECTATOR:
Id:TEMPLATE_LOCAL_SPECTATOR
X:5
Y:0
Width:475
Height:25
Visible:false
Children:
TextField@NAME:
Id:NAME
Text:Name
Width:150
Height:25
MaxLength:16
DropDownButton@COLOR:
Id:COLOR
Width:80
Height:25
X:160
Font:Regular
Children:
ColorBlock@COLORBLOCK:
Id:COLORBLOCK
X:5
Y:6
Width:PARENT_RIGHT-35
Height:PARENT_BOTTOM-12
Label@SPECTATOR:
Text:Spectator
Width:198
Height:25
X:240
Y:0
Align:Center
Font:Bold
Checkbox@STATUS:
Id:STATUS
X:448
Y:2
Width:20
Height:20
Container@TEMPLATE_REMOTE_SPECTATOR:
Id:TEMPLATE_REMOTE_SPECTATOR
X:5
Y:0
Width:475
Height:25
Visible:false
Children:
Label@NAME:
Id:NAME
Text:Name
Width:145
Height:25
X:5
Y:0-1
Button@KICK:
Id:KICK
Text:X
Width:25
Height:23
X:125
Y:2
Font:Bold
ColorBlock@COLOR:
Id:COLOR
X:165
Y:6
Width:45
Height:13
Label@SPECTATOR:
Text:Spectator
Width:198
Height:25
X:240
Y:0
Align:Center
Font:Bold
Checkbox@STATUS:
Id:STATUS
X:448
Y:2
Width:20
Height:20
Container@TEMPLATE_NEW_SPECTATOR:
Id:TEMPLATE_NEW_SPECTATOR
X:5
Y:0
Width:475
Height:25
Visible:false
Children:
Button@SPECTATE:
Id:SPECTATE
Text:Spectate
Font:Regular
Width:278
Height:25
X:160
Y:0
Container@LABEL_CONTAINER:
X:25
Y:5
Children:
Label@LABEL_LOBBY_NAME:
Id:LABEL_LOBBY_NAME
Width:150
Height:25
X:0
Y:0
Text:Name
Align:Center
Font:Bold
Label@LABEL_LOBBY_COLOR:
Id:LABEL_LOBBY_COLOR
Width:80
Height:25
X:160
Y:0
Text:Color
Align:Center
Font:Bold
Label@LABEL_LOBBY_FACTION:
Id:LABEL_LOBBY_FACTION
Width:130
Height:25
X:250
Y:0
Text:Faction
Align:Center
Font:Bold
Label@LABEL_LOBBY_TEAM:
Id:LABEL_LOBBY_TEAM
Width:48
Height:25
X:390
Y:0
Text:Team
Align:Center
Font:Bold
Label@LABEL_LOBBY_STATUS:
Id:LABEL_LOBBY_STATUS
X:448
Y:0
Width:20
Height:25
Text:Ready
Align:Left
Font:Bold
ScrollPanel@CHAT_DISPLAY:
Id:CHAT_DISPLAY
X:15
Y:285
Width:PARENT_RIGHT - 30
Height:PARENT_BOTTOM - 324
ItemSpacing:2
Children:
Container@CHAT_TEMPLATE:
Id:CHAT_TEMPLATE
Width:PARENT_RIGHT-27
Height:14
X:2
Y:0
Visible:false
Children:
Label@TIME:
Id:TIME
X:5
Width:50
Height:14
Label@NAME:
Id:NAME
X:55
Width:50
Height:14
Label@TEXT:
Id:TEXT
X:65
Height:14
Width:PARENT_RIGHT - 100 - 10
WordWrap:true
TextField@CHAT_TEXTFIELD:
Id:CHAT_TEXTFIELD
X:15
Y:PARENT_BOTTOM - HEIGHT - 15
Width:PARENT_RIGHT - 30
Height:25
LeftMargin:50
Children:
Label@LABEL_CHATTYPE:
Id:LABEL_CHATTYPE
Y:0-1
Width:45
Height:25
Align:Right
Text:Chat:
Button@DISCONNECT_BUTTON:
Id:DISCONNECT_BUTTON
X:0
Y:499
Width:140
Height:35
Text:Leave Game
Button@MUSIC_BUTTON:
Id:MUSIC_BUTTON
X:300
Y:499
Width:140
Height:35
Text:Music
Button@CHANGEMAP_BUTTON:
Id:CHANGEMAP_BUTTON
X:450
Y:499
Width:140
Height:35
Text:Change Map
Button@START_GAME_BUTTON:
Id:START_GAME_BUTTON
X:600
Y:499
Width:140
Height:35
Text:Start Game