rewrite the Diplomacy panel

now with scrollbars, fixes #3443
This commit is contained in:
Matthias Mailänder
2013-08-17 12:28:05 +02:00
parent fea8dc11cf
commit 60b3601ffa
6 changed files with 134 additions and 116 deletions

View File

@@ -2,29 +2,94 @@ Container@DIPLOMACY:
Logic:DiplomacyLogic
X:25
Y:50
Width:950
Height:500
Width:540
Height:400
Visible:false
Children:
Background@DIPLOMACY_BG:
X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - HEIGHT)/2
Width:450
Height:400
Width:PARENT_RIGHT
Height:PARENT_BOTTOM
Children:
Label@LABEL_TITLE:
X:(PARENT_RIGHT - WIDTH)/2
Y:20
Y:10
Width:250
Height:25
Text:Diplomacy
Align:Center
Font:Bold
Button@CLOSE_DIPLOMACY:
X:(PARENT_RIGHT - WIDTH)/2
Y:350
Width:160
Height:25
Text:Close
Font:Bold
Key:escape
Container@DIPLOMACY_HEADERS:
X:0
Y:0
Width:PARENT_RIGHT
Height:PARENT_BOTTOM
Children:
Label@PLAYER_HEADER:
X:45
Y:40
Width:160
Height:25
Font:Bold
Text:Player
Label@THEIR_STANCE_HEADER:
X:265
Y:40
Width:80
Height:25
Font:Bold
Text:Their Stance
Label@MY_STANCE_HEADER:
X:385
Y:40
Width:60
Height:25
Font:Bold
Text:My Stance
ScrollPanel@DIPLOMACY_PANEL:
X:25
Y:70
Width:PARENT_RIGHT-50
Height:PARENT_BOTTOM-45-50
ItemSpacing:5
Children:
ScrollItem@TEAM_TEMPLATE:
X:0
Y:0
Width:PARENT_RIGHT-35
Height:25
Children:
Label@TEAM:
X:10
Y:0
Width:PARENT_RIGHT
Height:PARENT_BOTTOM
Font:Bold
ScrollItem@PLAYER_TEMPLATE:
X:0
Y:0
Width:PARENT_RIGHT-35
Height:25
Children:
Image@FLAG:
X:20
Y:5
Width:35
Height:PARENT_BOTTOM-5
ImageName:random
ImageCollection:flags
Label@PLAYER:
X:55
Y:0
Width:160
Height:PARENT_BOTTOM
Font:Bold
Label@THEIR_STANCE:
X:265
Y:0
Width:80
Height:PARENT_BOTTOM
DropDownButton@MY_STANCE:
X:345
Y:0
Width:100
Height:PARENT_BOTTOM

View File

@@ -101,7 +101,7 @@ Background@LOBBY_OPTIONS_BIN:
Y:40
Width:220
Height:20
Text:Team Changes
Text:Diplomacy Changes
Label@STARTINGCASH_DESC:
Y:87
Width:80

View File

@@ -92,6 +92,7 @@ ChromeLayout:
mods/ra/chrome/gameinit.yaml
mods/ra/chrome/ingame.yaml
mods/ra/chrome/ingame-chat.yaml
mods/ra/chrome/ingame-diplomacy.yaml
mods/ra/chrome/ingame-fmvplayer.yaml
mods/ra/chrome/ingame-menu.yaml
mods/ra/chrome/ingame-objectives.yaml