Added widget showing the army for players in spec

This commit is contained in:
teinarss
2019-06-18 18:44:28 +02:00
committed by abcdefg30
parent 6ab0ace9e1
commit b81ede2d64
14 changed files with 754 additions and 10 deletions

View File

@@ -267,6 +267,7 @@ Container@OBSERVER_WIDGETS:
StatisticsProductionKey: StatisticsProduction
StatisticsSupportPowersKey: StatisticsSupportPowers
StatisticsCombatKey: StatisticsCombat
StatisticsArmyKey: StatisticsArmy
StatisticsGraphKey: StatisticsGraph
StatisticsArmyGraphKey: StatisticsArmyGraph
X: 5
@@ -542,6 +543,42 @@ Container@OBSERVER_WIDGETS:
Font: Bold
Text: Support Powers
Shadow: True
Container@ARMY_HEADERS:
X: 0
Y: 0
Width: 400
Height: PARENT_BOTTOM
Children:
ColorBlock@HEADER_COLOR:
X: 0
Y: 0
Color: 00000090
Width: PARENT_RIGHT - 200
Height: PARENT_BOTTOM
GradientColorBlock@HEADER_GRADIENT:
X: PARENT_RIGHT - 200
Y: 0
TopLeftColor: 00000090
BottomLeftColor: 00000090
Width: 200
Height: PARENT_BOTTOM
Label@PLAYER_HEADER:
X: 40
Y: 0
Width: 120
Height: PARENT_BOTTOM
Font: Bold
Text: Player
Align: Left
Shadow: True
Label@ARMY_HEADER:
X: 160
Y: 0
Width: 100
Height: PARENT_BOTTOM
Font: Bold
Text: Army
Shadow: True
Container@COMBAT_STATS_HEADERS:
X: 0
Y: 0
@@ -911,6 +948,43 @@ Container@OBSERVER_WIDGETS:
Width: 0
Height: PARENT_BOTTOM
TooltipContainer: TOOLTIP_CONTAINER
ScrollItem@ARMY_PLAYER_TEMPLATE:
X: 0
Y: 0
Width: 400
Height: 24
BaseName: scrollitem-nohover
Children:
ColorBlock@PLAYER_COLOR:
X: 0
Y: 0
Width: PARENT_RIGHT - 200
Height: PARENT_BOTTOM
GradientColorBlock@PLAYER_GRADIENT:
X: PARENT_RIGHT - 200
Y: 0
Width: 200
Height: PARENT_BOTTOM
Image@FLAG:
X: 5
Y: 4
Width: 35
Height: PARENT_BOTTOM - 4
ImageName: random
ImageCollection: flags
Label@PLAYER:
X: 40
Y: 0
Width: 120
Height: PARENT_BOTTOM
Font: Bold
Shadow: True
ObserverArmyIcons@ARMY_ICONS:
X: 160
Y: 0
Width: 0
Height: PARENT_BOTTOM
TooltipContainer: TOOLTIP_CONTAINER
ScrollItem@COMBAT_PLAYER_TEMPLATE:
X: 0
Y: 0

View File

@@ -353,6 +353,24 @@ Background@SUPPORT_POWER_TOOLTIP_FACTIONSUFFIX:
Font: TinyBold
VAlign: Top
Background@ARMY_TOOLTIP:
Logic: ArmyTooltipLogic
Background: panel-black
Width: 200
Height: 65
Children:
Label@NAME:
X: 5
Y: 1
Height: 23
Font: Bold
Label@DESC:
X: 5
Y: 20
Height: 5
Font: TinyBold
VAlign: Top
Background@SPAWN_TOOLTIP:
Logic: SpawnSelectorTooltipLogic
Background: panel-black