Keyboard support for production palette:

y/u/i/o/p map to Buildings/Defense/Infantry/Vehicles/Aircraft.
Tab or successive y/u/i/o/p will switch tabs within a category.
Successive clicks on category icons will also switch tabs.
Shift + keyboard/click cycles tabs in reverse.
This commit is contained in:
Paul Chote
2011-07-03 08:18:29 +12:00
parent c1f7152857
commit a065ba0338
3 changed files with 65 additions and 30 deletions

View File

@@ -185,30 +185,35 @@ Container@INGAME_ROOT:
Width:30
Height:30
Text: B
Key: y
Button@DEFENSE:
Id:DEFENSE
X:35
Width:30
Height:30
Text: D
Key: u
Button@INFANTRY:
Id:INFANTRY
X:70
Width:30
Height:30
Text: I
Key: i
Button@VEHICLE:
Id:VEHICLE
X:105
Width:30
Height:30
Text: V
Key: o
Button@AIRCRAFT:
Id:AIRCRAFT
X:140
Width:30
Height:30
Text: H
Key: p
ProductionTabs:
Id:PRODUCTION_TABS
PaletteWidget:PRODUCTION_PALETTE