Start implementing new tooltip bits. Test tooltips added for buttons and production palette.
This commit is contained in:
@@ -24,7 +24,6 @@ Container@INGAME_ROOT:
|
||||
Width:140
|
||||
Height:35
|
||||
Text:Cheats
|
||||
WorldTooltip:
|
||||
ChatDisplay@CHAT_DISPLAY:
|
||||
Id:CHAT_DISPLAY
|
||||
X:250
|
||||
@@ -180,40 +179,55 @@ Container@INGAME_ROOT:
|
||||
Width:170
|
||||
Height:30
|
||||
Children:
|
||||
Button@BUILDING:
|
||||
TooltipButton@BUILDING:
|
||||
Id:BUILDING
|
||||
Width:30
|
||||
Height:30
|
||||
Text: B
|
||||
Key: y
|
||||
Button@DEFENSE:
|
||||
TooltipText: Buildings
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
TooltipTemplate: BUTTON_TOOLTIP
|
||||
TooltipButton@DEFENSE:
|
||||
Id:DEFENSE
|
||||
X:35
|
||||
Width:30
|
||||
Height:30
|
||||
Text: D
|
||||
Key: u
|
||||
Button@INFANTRY:
|
||||
TooltipText: Defense
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
TooltipTemplate: BUTTON_TOOLTIP
|
||||
TooltipButton@INFANTRY:
|
||||
Id:INFANTRY
|
||||
X:70
|
||||
Width:30
|
||||
Height:30
|
||||
Text: I
|
||||
Key: i
|
||||
Button@VEHICLE:
|
||||
TooltipText: Infantry
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
TooltipTemplate: BUTTON_TOOLTIP
|
||||
TooltipButton@VEHICLE:
|
||||
Id:VEHICLE
|
||||
X:105
|
||||
Width:30
|
||||
Height:30
|
||||
Text: V
|
||||
Key: o
|
||||
Button@AIRCRAFT:
|
||||
TooltipText: Vehicles
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
TooltipTemplate: BUTTON_TOOLTIP
|
||||
TooltipButton@AIRCRAFT:
|
||||
Id:AIRCRAFT
|
||||
X:140
|
||||
Width:30
|
||||
Height:30
|
||||
Text: H
|
||||
Key: p
|
||||
TooltipText: Aircraft
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
TooltipTemplate: BUTTON_TOOLTIP
|
||||
ProductionTabs:
|
||||
Id:PRODUCTION_TABS
|
||||
PaletteWidget:PRODUCTION_PALETTE
|
||||
@@ -226,6 +240,11 @@ Container@INGAME_ROOT:
|
||||
X:WINDOW_RIGHT - 204
|
||||
Y:287
|
||||
TabClick: button.aud
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
TooltipTemplate: PRODUCTION_TOOLTIP
|
||||
TooltipContainer:
|
||||
Id:TOOLTIP_CONTAINER
|
||||
|
||||
Background@FMVPLAYER:
|
||||
Id:FMVPLAYER
|
||||
Width:WINDOW_RIGHT
|
||||
|
||||
36
mods/cnc/chrome/tooltips.yaml
Normal file
36
mods/cnc/chrome/tooltips.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
Background@PRODUCTION_TOOLTIP:
|
||||
Id:PRODUCTION_TOOLTIP
|
||||
Logic:ProductionTooltipLogic
|
||||
Background:panel-black
|
||||
Width:100
|
||||
Height:30
|
||||
Children:
|
||||
Label@NAME:
|
||||
Id:NAME
|
||||
X:5
|
||||
Y:5
|
||||
Width:PARENT_RIGHT-10
|
||||
Height:PARENT_BOTTOM-10
|
||||
Font:Bold
|
||||
Background@BUTTON_TOOLTIP:
|
||||
Id:BUTTON_TOOLTIP
|
||||
Logic:ButtonTooltipLogic
|
||||
Background:panel-black
|
||||
Width:100
|
||||
Height:30
|
||||
Children:
|
||||
Label@LABEL:
|
||||
Id:LABEL
|
||||
X:5
|
||||
Y:5
|
||||
Width:PARENT_RIGHT-10
|
||||
Height:PARENT_BOTTOM-10
|
||||
Font:Bold
|
||||
Label@HOTKEY:
|
||||
Id:HOTKEY
|
||||
X:PARENT_RIGHT-15
|
||||
Y:5
|
||||
Color:255,255,0
|
||||
Width:PARENT_RIGHT-10
|
||||
Height:PARENT_BOTTOM-10
|
||||
Font:Bold
|
||||
@@ -80,6 +80,7 @@ ChromeLayout:
|
||||
mods/cnc/chrome/cheats.yaml
|
||||
mods/cnc/chrome/dropdowns.yaml
|
||||
mods/cnc/chrome/objectives.yaml
|
||||
mods/cnc/chrome/tooltips.yaml
|
||||
|
||||
Weapons:
|
||||
mods/cnc/weapons.yaml
|
||||
|
||||
Reference in New Issue
Block a user