Overhaul the lobby faction dropdown for ra

This commit is contained in:
ScottNZ
2014-11-23 19:58:57 +13:00
parent ac090b3acd
commit 4f4c67735d
12 changed files with 185 additions and 40 deletions

View File

@@ -61,6 +61,9 @@ ScrollPanel@LOBBY_PLAYER_BIN:
X: 280
Width: 130
Height: 25
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: FACTION_DESCRIPTION_TOOLTIP
PanelRoot: FACTION_DROPDOWN_PANEL_ROOT # ensure that tooltips for the options are on top of the dropdown panel
Children:
Image@FACTIONFLAG:
Width: 30
@@ -326,12 +329,27 @@ ScrollPanel@LOBBY_PLAYER_BIN:
ScrollPanel@RACE_DROPDOWN_TEMPLATE:
Width: DROPDOWN_WIDTH
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
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: FACTION_DESCRIPTION_TOOLTIP
Children:
Image@FLAG:
X: 5
@@ -341,5 +359,4 @@ ScrollPanel@RACE_DROPDOWN_TEMPLATE:
Label@LABEL:
X: 40
Width: 60
Height: 25
Height: 25

View File

@@ -141,5 +141,5 @@ Background@SERVER_LOBBY:
Text: Disconnect
Font: Bold
Key: escape
Container@FACTION_DROPDOWN_PANEL_ROOT:
TooltipContainer@TOOLTIP_CONTAINER:

View File

@@ -185,4 +185,23 @@ Background@SUPPORT_POWER_TOOLTIP:
X: 7
Y: 22
Font: TinyBold
VAlign: Top
Background@FACTION_DESCRIPTION_TOOLTIP:
Logic: CountryTooltipLogic
Background: dialog4
Children:
Label@HEADER:
X: 7
Y: 6
Width: 8
Height: 12
Font: Bold
VAlign: Top
Label@DESCRIPTION:
X: 14
Y: 0
Width: 15
Height: 14
Font: TinyBold
VAlign: Top

View File

@@ -95,24 +95,38 @@ World:
Country@0:
Name: Allies
Race: allies
Side: Allies
Description: Allies: Deception\nSpecial Ability: Can build fake structures
Country@1:
Name: England
Race: england
Side: Allies
Description: England: Espionage\nSpecial Unit: British Spy\nSpecial Unit: Phase Transport
Country@2:
Name: France
Race: france
Side: Allies
Description: France: Concealment\nSpecial Structure: Advanced Gap Generator\nSpecial Unit: Mobile Gap Generator
Country@3:
Name: Germany
Race: germany
Side: Allies
Description: Germany: Technology\nSpecial Structure: Advanced Chronosphere\nSpecial Unit: Chrono Tank
Country@4:
Name: Soviet
Race: soviet
Side: Soviet
Description: Soviet: Infantry\nSpecial Ability: Paradrop\nSpecial Ability: Spy Plane
Country@5:
Name: Russia
Race: russia
Side: Soviet
Description: Russia: Tanks\nSpecial Ability: Armor Airdrop\nSpecial Unit: MAD Tank
Country@6:
Name: Ukraine
Race: ukraine
Side: Soviet
Description: Ukraine: Demolitions\nSpecial Ability: Parabombs\nSpecial Unit: Demolition Truck
DomainIndex:
SmudgeLayer@SCORCH:
Type: Scorch