Add a spawnpoint selector for bots (selector logic unimplemented)
This commit is contained in:
@@ -151,7 +151,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
|
|||||||
|
|
||||||
CountryNames = Rules.Info["world"].Traits.WithInterface<OpenRA.Traits.CountryInfo>()
|
CountryNames = Rules.Info["world"].Traits.WithInterface<OpenRA.Traits.CountryInfo>()
|
||||||
.ToDictionary(a => a.Race, a => a.Name);
|
.ToDictionary(a => a.Race, a => a.Name);
|
||||||
CountryNames.Add("random", "Random");
|
CountryNames.Add("random", "Any");
|
||||||
|
|
||||||
var mapButton = lobby.GetWidget<ButtonWidget>("CHANGEMAP_BUTTON");
|
var mapButton = lobby.GetWidget<ButtonWidget>("CHANGEMAP_BUTTON");
|
||||||
mapButton.OnClick = () =>
|
mapButton.OnClick = () =>
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ Container@SERVER_LOBBY:
|
|||||||
Id:PLAYERS
|
Id:PLAYERS
|
||||||
X:15
|
X:15
|
||||||
Y:30
|
Y:30
|
||||||
Width:504
|
Width:503
|
||||||
ItemSpacing:5
|
ItemSpacing:5
|
||||||
Height:245
|
Height:245
|
||||||
Children:
|
Children:
|
||||||
@@ -77,9 +77,9 @@ Container@SERVER_LOBBY:
|
|||||||
Visible:false
|
Visible:false
|
||||||
DropDownButton@COLOR:
|
DropDownButton@COLOR:
|
||||||
Id:COLOR
|
Id:COLOR
|
||||||
Width:80
|
Width:70
|
||||||
Height:25
|
Height:25
|
||||||
X:160
|
X:155
|
||||||
Font:Regular
|
Font:Regular
|
||||||
Children:
|
Children:
|
||||||
ColorBlock@COLORBLOCK:
|
ColorBlock@COLORBLOCK:
|
||||||
@@ -90,9 +90,9 @@ Container@SERVER_LOBBY:
|
|||||||
Height:PARENT_BOTTOM-12
|
Height:PARENT_BOTTOM-12
|
||||||
DropDownButton@FACTION:
|
DropDownButton@FACTION:
|
||||||
Id:FACTION
|
Id:FACTION
|
||||||
Width:130
|
Width:100
|
||||||
Height:25
|
Height:25
|
||||||
X:250
|
X:230
|
||||||
Font:Regular
|
Font:Regular
|
||||||
Children:
|
Children:
|
||||||
Image@FACTIONFLAG:
|
Image@FACTIONFLAG:
|
||||||
@@ -110,8 +110,13 @@ Container@SERVER_LOBBY:
|
|||||||
Y:0
|
Y:0
|
||||||
DropDownButton@TEAM:
|
DropDownButton@TEAM:
|
||||||
Id:TEAM
|
Id:TEAM
|
||||||
Text:Team
|
Width:50
|
||||||
Width:48
|
Height:25
|
||||||
|
X:335
|
||||||
|
Font:Regular
|
||||||
|
DropDownButton@SPAWN:
|
||||||
|
Id:SPAWN
|
||||||
|
Width:50
|
||||||
Height:25
|
Height:25
|
||||||
X:390
|
X:390
|
||||||
Font:Regular
|
Font:Regular
|
||||||
@@ -156,15 +161,15 @@ Container@SERVER_LOBBY:
|
|||||||
Font:Bold
|
Font:Bold
|
||||||
ColorBlock@COLOR:
|
ColorBlock@COLOR:
|
||||||
Id:COLOR
|
Id:COLOR
|
||||||
X:165
|
X:160
|
||||||
Y:6
|
Y:6
|
||||||
Width:45
|
Width:35
|
||||||
Height:13
|
Height:13
|
||||||
Label@FACTION:
|
Label@FACTION:
|
||||||
Id:FACTION
|
Id:FACTION
|
||||||
Width:130
|
Width:100
|
||||||
Height:25
|
Height:25
|
||||||
X:250
|
X:230
|
||||||
Y:0
|
Y:0
|
||||||
Children:
|
Children:
|
||||||
Image@FACTIONFLAG:
|
Image@FACTIONFLAG:
|
||||||
@@ -182,10 +187,16 @@ Container@SERVER_LOBBY:
|
|||||||
Y:0
|
Y:0
|
||||||
Label@TEAM:
|
Label@TEAM:
|
||||||
Id:TEAM
|
Id:TEAM
|
||||||
Text:Team
|
|
||||||
Width:23
|
|
||||||
Height:25
|
|
||||||
Align:Center
|
Align:Center
|
||||||
|
Width:25
|
||||||
|
Height:25
|
||||||
|
X:335
|
||||||
|
Y:0
|
||||||
|
Label@SPAWN:
|
||||||
|
Id:SPAWN
|
||||||
|
Align:Center
|
||||||
|
Width:25
|
||||||
|
Height:25
|
||||||
X:390
|
X:390
|
||||||
Y:0
|
Y:0
|
||||||
Image@STATUS_IMAGE:
|
Image@STATUS_IMAGE:
|
||||||
@@ -231,9 +242,9 @@ Container@SERVER_LOBBY:
|
|||||||
Id:JOIN
|
Id:JOIN
|
||||||
Text:Play in this slot
|
Text:Play in this slot
|
||||||
Font:Regular
|
Font:Regular
|
||||||
Width:278
|
Width:315
|
||||||
Height:25
|
Height:25
|
||||||
X:160
|
X:155
|
||||||
Y:0
|
Y:0
|
||||||
Container@TEMPLATE_EDITABLE_SPECTATOR:
|
Container@TEMPLATE_EDITABLE_SPECTATOR:
|
||||||
Id:TEMPLATE_EDITABLE_SPECTATOR
|
Id:TEMPLATE_EDITABLE_SPECTATOR
|
||||||
@@ -251,9 +262,9 @@ Container@SERVER_LOBBY:
|
|||||||
MaxLength:16
|
MaxLength:16
|
||||||
DropDownButton@COLOR:
|
DropDownButton@COLOR:
|
||||||
Id:COLOR
|
Id:COLOR
|
||||||
Width:80
|
Width:70
|
||||||
Height:25
|
Height:25
|
||||||
X:160
|
X:155
|
||||||
Font:Regular
|
Font:Regular
|
||||||
Children:
|
Children:
|
||||||
ColorBlock@COLORBLOCK:
|
ColorBlock@COLORBLOCK:
|
||||||
@@ -264,9 +275,9 @@ Container@SERVER_LOBBY:
|
|||||||
Height:PARENT_BOTTOM-12
|
Height:PARENT_BOTTOM-12
|
||||||
Label@SPECTATOR:
|
Label@SPECTATOR:
|
||||||
Text:Spectator
|
Text:Spectator
|
||||||
Width:198
|
Width:220
|
||||||
Height:25
|
Height:25
|
||||||
X:240
|
X:225
|
||||||
Y:0
|
Y:0
|
||||||
Align:Center
|
Align:Center
|
||||||
Font:Bold
|
Font:Bold
|
||||||
@@ -301,15 +312,15 @@ Container@SERVER_LOBBY:
|
|||||||
Font:Bold
|
Font:Bold
|
||||||
ColorBlock@COLOR:
|
ColorBlock@COLOR:
|
||||||
Id:COLOR
|
Id:COLOR
|
||||||
X:165
|
X:160
|
||||||
Y:6
|
Y:6
|
||||||
Width:45
|
Width:35
|
||||||
Height:13
|
Height:13
|
||||||
Label@SPECTATOR:
|
Label@SPECTATOR:
|
||||||
Text:Spectator
|
Text:Spectator
|
||||||
Width:198
|
Width:220
|
||||||
Height:25
|
Height:25
|
||||||
X:240
|
X:225
|
||||||
Y:0
|
Y:0
|
||||||
Align:Center
|
Align:Center
|
||||||
Font:Bold
|
Font:Bold
|
||||||
@@ -341,54 +352,50 @@ Container@SERVER_LOBBY:
|
|||||||
Id:SPECTATE
|
Id:SPECTATE
|
||||||
Text:Spectate
|
Text:Spectate
|
||||||
Font:Regular
|
Font:Regular
|
||||||
Width:278
|
Width:470
|
||||||
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
|
Height:25
|
||||||
X:0
|
X:0
|
||||||
Y:0
|
Y:0
|
||||||
|
Container@LABEL_CONTAINER:
|
||||||
|
X:20
|
||||||
|
Y:5
|
||||||
|
Children:
|
||||||
|
Label@NAME:
|
||||||
|
Width:150
|
||||||
|
Height:25
|
||||||
Text:Player
|
Text:Player
|
||||||
Align:Center
|
Align:Center
|
||||||
Font:Bold
|
Font:Bold
|
||||||
Label@LABEL_LOBBY_COLOR:
|
Label@COLOR:
|
||||||
Id:LABEL_LOBBY_COLOR
|
Width:70
|
||||||
Width:80
|
|
||||||
Height:25
|
Height:25
|
||||||
X:160
|
X:155
|
||||||
Y:0
|
|
||||||
Text:Color
|
Text:Color
|
||||||
Align:Center
|
Align:Center
|
||||||
Font:Bold
|
Font:Bold
|
||||||
Label@LABEL_LOBBY_FACTION:
|
Label@FACTION:
|
||||||
Id:LABEL_LOBBY_FACTION
|
Width:100
|
||||||
Width:130
|
|
||||||
Height:25
|
Height:25
|
||||||
X:250
|
X:230
|
||||||
Y:0
|
|
||||||
Text:Faction
|
Text:Faction
|
||||||
Align:Center
|
Align:Center
|
||||||
Font:Bold
|
Font:Bold
|
||||||
Label@LABEL_LOBBY_TEAM:
|
Label@TEAM:
|
||||||
Id:LABEL_LOBBY_TEAM
|
Width:50
|
||||||
Width:48
|
|
||||||
Height:25
|
Height:25
|
||||||
X:390
|
X:335
|
||||||
Y:0
|
|
||||||
Text:Team
|
Text:Team
|
||||||
Align:Center
|
Align:Center
|
||||||
Font:Bold
|
Font:Bold
|
||||||
Label@LABEL_LOBBY_STATUS:
|
Label@SPAWN:
|
||||||
Id:LABEL_LOBBY_STATUS
|
Width:50
|
||||||
|
Height:25
|
||||||
|
X:390
|
||||||
|
Text:Spawn
|
||||||
|
Align:Center
|
||||||
|
Font:Bold
|
||||||
|
Label@STATUS:
|
||||||
X:448
|
X:448
|
||||||
Y:0
|
|
||||||
Width:20
|
Width:20
|
||||||
Height:25
|
Height:25
|
||||||
Text:Ready
|
Text:Ready
|
||||||
|
|||||||
Reference in New Issue
Block a user