Add faction description tooltips to TD
This commit is contained in:
@@ -30,12 +30,27 @@ ScrollPanel@RACE_DROPDOWN_TEMPLATE:
|
||||
Width: DROPDOWN_WIDTH
|
||||
Background: panel-black
|
||||
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: 4
|
||||
|
||||
@@ -67,6 +67,9 @@ ScrollPanel@LOBBY_PLAYER_BIN:
|
||||
X: 285
|
||||
Font: Regular
|
||||
IgnoreChildMouseOver: true
|
||||
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: 32
|
||||
|
||||
@@ -149,5 +149,6 @@ Container@SERVER_LOBBY:
|
||||
Width: 140
|
||||
Height: 35
|
||||
Text: Music
|
||||
Container@FACTION_DROPDOWN_PANEL_ROOT:
|
||||
TooltipContainer@TOOLTIP_CONTAINER:
|
||||
|
||||
|
||||
@@ -189,3 +189,21 @@ Background@CLIENT_TOOLTIP:
|
||||
Height: 10
|
||||
Font: TinyBold
|
||||
|
||||
Background@FACTION_DESCRIPTION_TOOLTIP:
|
||||
Logic: CountryTooltipLogic
|
||||
Background: panel-black
|
||||
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
|
||||
|
||||
@@ -21,12 +21,15 @@ World:
|
||||
Name: Any
|
||||
Race: Random
|
||||
RandomRaceMembers: gdi, nod
|
||||
Description: Select a random faction.
|
||||
Country@gdi:
|
||||
Name: GDI
|
||||
Race: gdi
|
||||
Description: Global Defense Initiative\nThe GDI is an international military branch of the United Nations tasked\nwith keeping world peace. Commanding the combined forces of the world's\nmost powerful nations, they possess an unmatched arsenal of high-tech weaponry.
|
||||
Country@nod:
|
||||
Name: Nod
|
||||
Race: nod
|
||||
Description: Brotherhood of Nod\nThe Brotherhood is a religious cult centered around their leader Kane\nand the alien substance Tiberium. They utilize stealth technology\nand guerilla tactics to defeat those who oppose them.
|
||||
ProductionQueueFromSelection:
|
||||
ProductionTabsWidget: PRODUCTION_TABS
|
||||
DomainIndex:
|
||||
|
||||
Reference in New Issue
Block a user