Files
OpenRA/mods/cnc/chrome/diplomacy.yaml
Paul Chote 81515705ec Add keyboard shortcut support to ButtonWidgets.
Hook up 'escape' and 'return' as appropriate for moving through menus.
2011-05-30 22:15:14 +12:00

89 lines
1.6 KiB
YAML

Container@DIPLOMACY_PANEL:
Id:DIPLOMACY_PANEL
Logic:CncDiplomacyLogic
X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - 400)/2
Width:450
Height:335
Children:
Label@TITLE:
Width:PARENT_RIGHT
Y:0-25
Font:BigBold
Contrast:true
Align:Center
Text:Diplomacy
Background@bg:
Width:450
Height:300
Background:panel-black
Children:
ScrollPanel@PLAYER_LIST:
Id:PLAYER_LIST
X:15
Y:30
Width:420
Height:255
ItemSpacing:5
Children:
Container@PLAYER_TEMPLATE:
Id:PLAYER_TEMPLATE
Width:PARENT_RIGHT-27
Height:25
X:2
Y:0
Children:
Label@NAME:
Id:NAME
X:10
Width:150
Height:25
Image@FACTIONFLAG:
Id:FACTIONFLAG
X:PARENT_RIGHT-210
Y:5
Width:30
Height:15
Label@FACTION:
Id:FACTION
X:PARENT_RIGHT-170
Width:40
Height:25
DropDownButton@STANCE:
Id:STANCE
X:PARENT_RIGHT-110
Width:100
Height:25
Container@LABEL_CONTAINER:
X:17
Y:5
Width:393
Children:
Label@NAME:
X:10
Width:150
Height:25
Text:Player
Align:Center
Font:Bold
Label@RACE:
X:PARENT_RIGHT-220
Width:100
Height:25
Text:Faction
Font:Bold
Align:Center
Label@STANCE:
X:PARENT_RIGHT-110
Width:100
Height:25
Text:Stance
Font:Bold
Align:Center
Button@BACK_BUTTON:
Id:BACK_BUTTON
Key:escape
Y:299
Width:140
Height:35
Text:Back