Add unit command bar to TD.

This commit is contained in:
Paul Chote
2017-06-04 12:57:11 +00:00
committed by Curtis Shmyr
parent 52f1ab0969
commit ff9bddbf21
5 changed files with 321 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
Container@CHAT_PANEL:
X: (WINDOW_RIGHT - WIDTH) / 2
Y: WINDOW_BOTTOM - HEIGHT - 15
Y: WINDOW_BOTTOM - HEIGHT - 45
Width: 550
Height: 194
Logic: IngameChatLogic

View File

@@ -68,8 +68,8 @@ Container@PERF_WIDGETS:
Contrast: true
VAlign: Top
Background@GRAPH_BG:
X: 10
Y: WINDOW_BOTTOM - HEIGHT - 10
X: 5
Y: WINDOW_BOTTOM - HEIGHT - 45
Width: 220
Height: 220
Background: panel-black
@@ -238,9 +238,6 @@ Container@PLAYER_WIDGETS:
LogicKeyListener@CONTROLGROUP_KEYHANDLER:
Logic: ControlGroupLogic
LogicTicker@SIDEBAR_TICKER:
UnitCommand:
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM
Container@SUPPORT_POWERS:
Logic: SupportPowerBinLogic
X: 10
@@ -259,6 +256,214 @@ Container@PLAYER_WIDGETS:
TooltipContainer: TOOLTIP_CONTAINER
ReadyText: Ready
HoldText: On Hold
Background@COMMAND_BAR:
Logic: CommandBarLogic
X: 5
Y: WINDOW_BOTTOM - HEIGHT - 5
Background: panel-black
Width: 275
Height: 36
Children:
Button@ATTACK_MOVE:
X: 1
Y: 1
Width: 34
Height: 34
Background: command-button
DisableKeyRepeat: true
TooltipText: Attack Move
TooltipDesc: Selected units will move to the desired location\nand attack any enemies they encounter en route.\n\nLeft-click icon then right-click on target location.
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 5
Y: 5
ImageCollection: command-icons
ImageName: attack-move
Button@FORCE_MOVE:
X: 35
Y: 1
Width: 34
Height: 34
Background: command-button
TooltipText: Force Move
TooltipDesc: Selected units will move to the desired location\n - Default activity for the target is suppressed\n - Vehicles will attempt to crush enemies at the target location\n - Units entering transports will consider nearby alternatives\n\nLeft-click icon then right-click on target.\nHold {(Alt)} to activate temporarily while commanding units.
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: BUTTON_WITH_DESC_HIGHLIGHT_TOOLTIP
Children:
Image@ICON:
X: 5
Y: 5
ImageCollection: command-icons
ImageName: force-move
Button@FORCE_ATTACK:
X: 69
Y: 1
Width: 34
Height: 34
Background: command-button
TooltipText: Force Attack
TooltipDesc: Selected units will attack the targeted unit or location\nignoring their default activity for the target.\n\nLeft-click icon then right-click on target.\nHold {(Ctrl)} to activate temporarily while commanding units.
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: BUTTON_WITH_DESC_HIGHLIGHT_TOOLTIP
Children:
Image@ICON:
X: 5
Y: 5
ImageCollection: command-icons
ImageName: force-attack
Button@GUARD:
X: 104
Y: 1
Width: 35
Height: 35
Background: command-button
DisableKeyRepeat: true
TooltipText: Guard
TooltipDesc: Selected units will follow the targeted unit.\n\nLeft-click icon then right-click on target unit.
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 5
Y: 5
ImageCollection: command-icons
ImageName: guard
Button@DEPLOY:
X: 138
Y: 1
Width: 34
Height: 34
Background: command-button
DisableKeyRepeat: true
TooltipText: Deploy
TooltipDesc: Selected units will perform their default deploy activity\n - MCVs will unpack into a Construction Yard\n - Construction Yards will re-pack into a MCV\n - Transports will unload their passengers\n - Helicopters will return to base\n\nActs immediately on selected units.
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 5
Y: 5
ImageCollection: command-icons
ImageName: deploy
Button@SCATTER:
X: 172
Y: 1
Width: 34
Height: 34
Background: command-button
DisableKeyRepeat: true
TooltipText: Scatter
TooltipDesc: Selected units will stop their current activity\nand move to a nearby location.\n\nActs immediately on selected units.
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 5
Y: 5
ImageCollection: command-icons
ImageName: scatter
Button@STOP:
X: 206
Y: 1
Width: 34
Height: 34
Background: command-button
DisableKeyRepeat: true
TooltipText: Stop
TooltipDesc: Selected units will stop their current activity.\n\nActs immediately on selected units.
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 5
Y: 5
ImageCollection: command-icons
ImageName: stop
Button@QUEUE_ORDERS:
X: 240
Y: 1
Width: 34
Height: 34
Background: command-button
TooltipText: Waypoint Mode
TooltipDesc: Use Waypoint Mode to give multiple linking commands\nto the selected units. Units will execute the commands\nimmediately upon receiving them.\n\nLeft-click icon then give commands in the game world.\nHold {(Shift)} to activate temporarily while commanding units.
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: BUTTON_WITH_DESC_HIGHLIGHT_TOOLTIP
Children:
Image@ICON:
X: 5
Y: 5
ImageCollection: command-icons
ImageName: queue-orders
Background@COMMAND_BAR:
Logic: StanceSelectorLogic
X: 279
Y: WINDOW_BOTTOM - HEIGHT - 5
Background: panel-black
Width: 138
Height: 28
Children:
Button@STANCE_ATTACKANYTHING:
X: 1
Y: 1
Width: 34
Height: 26
Background: stance-button
DisableKeyRepeat: true
TooltipText: Attack Anything Stance
TooltipDesc: Set the selected units to Attack Anything stance:\n - Units will attack enemy units and structures on sight\n - Units will persue attackers across the battlefield
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 9
Y: 5
ImageCollection: stance-icons
ImageName: attack-anything
Button@STANCE_DEFEND:
X: 35
Y: 1
Width: 34
Height: 26
Background: stance-button
DisableKeyRepeat: true
TooltipText: Defend Stance
TooltipDesc: Set the selected units to Defend stance:\n - Units will attack enemy units and structures on sight\n - Units will not move or persue enemies
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 9
Y: 5
ImageCollection: stance-icons
ImageName: defend
Button@STANCE_RETURNFIRE:
X: 69
Y: 1
Width: 34
Height: 26
Background: stance-button
DisableKeyRepeat: true
TooltipText: Return Fire Stance
TooltipDesc: Set the selected units to Return Fire stance:\n - Units will retaliate against enemies that attack them\n - Units will not move or persue enemies
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 9
Y: 5
ImageCollection: stance-icons
ImageName: return-fire
Button@STANCE_HOLDFIRE:
X: 103
Y: 1
Width: 34
Height: 26
Background: stance-button
DisableKeyRepeat: true
TooltipText: Hold Fire Stance
TooltipDesc: Set the selected units to Hold Fire stance:\n - Units will not fire upon enemies\n - Units will not move or persue enemies
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 9
Y: 5
ImageCollection: stance-icons
ImageName: hold-fire
Background@SIDEBAR_BACKGROUND:
Logic: MenuButtonsChromeLogic
X: WINDOW_RIGHT - 204

View File

@@ -26,6 +26,34 @@ Background@BUTTON_TOOLTIP:
TextColor: FFFF00
Height: 23
Font: Bold
Label@DESC:
X: 5
Y: 23
Height: 12
Font: TinyBold
VAlign: Top
Background@BUTTON_WITH_DESC_HIGHLIGHT_TOOLTIP:
Logic: ButtonTooltipWithDescHighlightLogic
Highlight: FFFF00
Background: panel-black
Height: 25
Children:
Label@LABEL:
X: 5
Height: 23
Font: Bold
Label@HOTKEY:
Visible: false
TextColor: FFFF00
Height: 23
Font: Bold
Label@DESC:
X: 5
Y: 23
Height: 12
Font: TinyBold
VAlign: Top
Background@WORLD_TOOLTIP:
Logic: WorldTooltipLogic