Added tooltip to support powers in spec ui

This commit is contained in:
teinarss
2019-05-23 18:27:50 +02:00
committed by Paul Chote
parent 12484caf04
commit c89f4b7a76
8 changed files with 113 additions and 6 deletions

View File

@@ -982,6 +982,7 @@ Container@OBSERVER_WIDGETS:
Y: 0
Width: 0
Height: PARENT_BOTTOM
TooltipContainer: TOOLTIP_CONTAINER
ScrollItem@COMBAT_PLAYER_TEMPLATE:
X: 0
Y: 0
@@ -1155,6 +1156,7 @@ Container@PLAYER_WIDGETS:
X: 1
Y: 1
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SUPPORT_POWER_TOOLTIP_FACTIONSUFFIX
ReadyText: Ready
HoldText: On Hold
HotkeyPrefix: SupportPower

View File

@@ -287,6 +287,31 @@ Background@PRODUCTION_TOOLTIP_FACTIONSUFFIX:
Font: Bold
Background@SUPPORT_POWER_TOOLTIP:
Logic: SupportPowerTooltipLogic
Background: panel-black
Width: 200
Height: 25
Children:
Label@NAME:
X: 5
Height: 20
Font: Bold
Label@HOTKEY:
Visible: false
Height: 20
TextColor: FFFF00
Font: Bold
Label@TIME:
Y: 6
Font: TinyBold
VAlign: Top
Label@DESC:
X: 5
Y: 20
Font: TinyBold
VAlign: Top
Background@SUPPORT_POWER_TOOLTIP_FACTIONSUFFIX:
Logic: SupportPowerTooltipLogic, AddFactionSuffixLogic
Background: panel-black
Width: 200