Add an order button for beacon placement.

This commit is contained in:
Paul Chote
2014-03-21 11:26:02 +13:00
parent ccbe4f3768
commit 9541686de3
13 changed files with 151 additions and 36 deletions

View File

@@ -388,8 +388,8 @@ music: chrome.png
play: 288,0,16,16
next: 256,16,16,16
prev: 272,16,16,16
fastforward: 400,64,16,16
slowmo: 400,80,16,16
fastforward: 416,64,16,16
slowmo: 416,80,16,16
lobby-bits: chrome.png
spawn-claimed: 256,32,16,16
@@ -427,8 +427,8 @@ strategic: strategic.png
player_owned: 96,0,32,32
sidebar-bits: chrome.png
indicator-left: 400,48,16,8
indicator-right: 400,56,16,8
indicator-left: 416,48,16,8
indicator-right: 416,56,16,8
production-icons: chrome.png
building: 384,0,16,16
@@ -460,3 +460,6 @@ order-icons: chrome.png
repair: 384,48,16,16
repair-disabled: 384,64,16,16
repair-active: 384,80,16,16
beacon: 400,48,16,16
beacon-disabled: 400,64,16,16
beacon-active: 400,80,16,16

View File

@@ -181,7 +181,7 @@ Container@PLAYER_WIDGETS:
Children:
Button@OPTIONS_BUTTON:
Key:escape
X:42
X:22
Y:0-24
Width:30
Height:25
@@ -194,8 +194,21 @@ Container@PLAYER_WIDGETS:
Y:5
ImageCollection:order-icons
ImageName:options
Button@BEACON_BUTTON:
X:62
Y:0-24
Width:30
Height:25
Font:Bold
TooltipText: Place Beacon
TooltipContainer:TOOLTIP_CONTAINER
Children:
Image@ICON:
X:7
Y:5
ImageCollection:order-icons
Button@SELL_BUTTON:
X:82
X:102
Y:0-24
Width:30
Height:25
@@ -208,7 +221,7 @@ Container@PLAYER_WIDGETS:
Y:5
ImageCollection:order-icons
Button@REPAIR_BUTTON:
X:122
X:142
Y:0-24
Width:30
Height:25

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 75 KiB

View File

@@ -247,6 +247,9 @@ order-icons: buttons.png
power: 0,56,34,28
power-disabled: 68,56,34,28
power-active: 34,56,34,28
beacon: 0,56,34,28
beacon-disabled: 68,56,34,28
beacon-active: 34,56,34,28
music: musicplayer.png
pause: 0,0,25,25

View File

@@ -86,6 +86,19 @@ Container@PLAYER_WIDGETS:
Children:
Image@ICON:
ImageCollection:order-icons
Button@BEACON_BUTTON:
X:75
# Hidden offscreen so that the shortcut still works
# while we wait for new button art to be created
Y:0-100
Width:34
Height:28
TooltipText: Place Beacon
TooltipContainer:TOOLTIP_CONTAINER
VisualHeight:0
Children:
Image@ICON:
ImageCollection:order-icons
SupportPowerBin@INGAME_POWERS_BIN:
X:0
Y:25

View File

@@ -191,6 +191,9 @@ order-icons: buttons.png
power: 0,56,34,28
power-disabled: 68,56,34,28
power-active: 34,56,34,28
beacon: 0,56,34,28
beacon-disabled: 68,56,34,28
beacon-active: 34,56,34,28
flags: buttons.png
allies: 30,84,30,15

View File

@@ -86,6 +86,19 @@ Container@PLAYER_WIDGETS:
Children:
Image@ICON:
ImageCollection:order-icons
Button@BEACON_BUTTON:
X:75
# Hidden offscreen so that the shortcut still works
# while we wait for new button art to be created
Y:0-100
Width:34
Height:28
TooltipText: Place Beacon
TooltipContainer:TOOLTIP_CONTAINER
VisualHeight:0
Children:
Image@ICON:
ImageCollection:order-icons
SupportPowerBin@INGAME_POWERS_BIN:
X:0
Y:25

View File

@@ -185,6 +185,9 @@ order-icons: buttons.png
power: 0,56,34,28
power-disabled: 68,56,34,28
power-active: 34,56,34,28
beacon: 0,56,34,28
beacon-disabled: 68,56,34,28
beacon-active: 34,56,34,28
flags: buttons.png
gdi: 30,84,30,15