hotkey usability
resolve hotkey conflicts, fixes #2883 add/display existing in-game button hotkeys, fixes #2932
This commit is contained in:
@@ -129,20 +129,20 @@ namespace OpenRA.GameRules
|
||||
|
||||
public class KeySettings
|
||||
{
|
||||
public string PauseKey = "f3";
|
||||
|
||||
public string CycleBaseKey = "backspace";
|
||||
public string ToLastEventKey = "space";
|
||||
public string ToSelectionKey = "home";
|
||||
public string SellKey = "v";
|
||||
public string PowerDownKey = "b";
|
||||
public string RepairKey = "n";
|
||||
|
||||
public string PauseKey = "f9";
|
||||
public string SellKey = "f10";
|
||||
public string PowerDownKey = "f11";
|
||||
public string RepairKey = "f12";
|
||||
|
||||
public string AttackMoveKey = "a";
|
||||
public string StopKey = "s";
|
||||
public string ScatterKey = "x";
|
||||
public string StanceCycleKey = "z";
|
||||
public string ScatterKey = "d";
|
||||
public string DeployKey = "f";
|
||||
public string StanceCycleKey = "g";
|
||||
|
||||
public string CycleTabsKey = "tab";
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace OpenRA.Mods.RA.Widgets
|
||||
public OrderButtonWidget()
|
||||
{
|
||||
GetImage = () => Enabled() ? Pressed() ? "pressed" : "normal" : "disabled";
|
||||
GetDescription = () => Description;
|
||||
GetDescription = () => Key != null ? "{0} ({1})".F(Description, Key.ToUpper()) : Description;
|
||||
GetLongDesc = () => LongDesc;
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ Container@INGAME_ROOT:
|
||||
Y:0
|
||||
Width:160
|
||||
Height:25
|
||||
Text:Options
|
||||
Text:Options (ESC)
|
||||
Font:Bold
|
||||
Key: escape
|
||||
Button@INGAME_DIPLOMACY_BUTTON:
|
||||
@@ -76,24 +76,27 @@ Container@INGAME_ROOT:
|
||||
Y:0
|
||||
Width:160
|
||||
Height:25
|
||||
Text:Diplomacy
|
||||
Text:Diplomacy (F1)
|
||||
Font:Bold
|
||||
Key: f1
|
||||
Button@CHEATS_BUTTON:
|
||||
X:324
|
||||
Y:0
|
||||
Width:160
|
||||
Height:25
|
||||
Text:Cheats
|
||||
Text:Cheats (F2)
|
||||
Visible:false
|
||||
Font:Bold
|
||||
Key: f2
|
||||
Button@OBJECTIVES_BUTTON:
|
||||
X:486
|
||||
Y:0
|
||||
Width:160
|
||||
Height:25
|
||||
Text:Objectives
|
||||
Text:Objectives (F3)
|
||||
Visible:false
|
||||
Font:Bold
|
||||
Key: f3
|
||||
RadarBin@INGAME_RADAR_BIN:
|
||||
WorldInteractionController:INTERACTION_CONTROLLER
|
||||
PowerBin@INGAME_POWER_BIN:
|
||||
@@ -278,7 +281,7 @@ Container@OBSERVER_ROOT:
|
||||
Y:0
|
||||
Width:160
|
||||
Height:25
|
||||
Text:Options
|
||||
Text:Options (ESC)
|
||||
Font:Bold
|
||||
Key:escape
|
||||
Button@INGAME_STATS_BUTTON:
|
||||
@@ -286,8 +289,9 @@ Container@OBSERVER_ROOT:
|
||||
Y:0
|
||||
Width:160
|
||||
Height:25
|
||||
Text:Statistics
|
||||
Text:Statistics (F1)
|
||||
Font:Bold
|
||||
Key:f1
|
||||
Background@RADAR_BG:
|
||||
X:WINDOW_RIGHT-255
|
||||
Y:5
|
||||
|
||||
@@ -61,7 +61,7 @@ E2:
|
||||
BuildPaletteOrder: 10
|
||||
Owner: soviet
|
||||
Prerequisites: barr
|
||||
Hotkey: g
|
||||
Hotkey: n
|
||||
Valued:
|
||||
Cost: 160
|
||||
Tooltip:
|
||||
|
||||
@@ -6,7 +6,7 @@ SS:
|
||||
Prerequisites: spen
|
||||
BuiltAt: spen
|
||||
Owner: soviet
|
||||
Hotkey: b
|
||||
Hotkey: u
|
||||
Valued:
|
||||
Cost: 950
|
||||
Tooltip:
|
||||
@@ -238,7 +238,7 @@ PT:
|
||||
Prerequisites: syrd
|
||||
BuiltAt: syrd
|
||||
Owner: allies
|
||||
Hotkey: g
|
||||
Hotkey: b
|
||||
Valued:
|
||||
Cost: 500
|
||||
Tooltip:
|
||||
|
||||
@@ -12,6 +12,7 @@ MSLO:
|
||||
Prerequisites: techcenter
|
||||
Owner: soviet,allies
|
||||
BuildLimit: 1
|
||||
Hotkey: m
|
||||
Building:
|
||||
Power: -100
|
||||
Footprint: xx
|
||||
@@ -52,6 +53,7 @@ GAP:
|
||||
BuildPaletteOrder: 100
|
||||
Prerequisites: atek
|
||||
Owner: allies
|
||||
Hotkey: x
|
||||
Building:
|
||||
Power: -60
|
||||
Footprint: _ x
|
||||
@@ -305,7 +307,7 @@ AGUN:
|
||||
BuildPaletteOrder: 50
|
||||
Prerequisites: dome
|
||||
Owner: allies
|
||||
Hotkey: g
|
||||
Hotkey: y
|
||||
Valued:
|
||||
Cost: 800
|
||||
Tooltip:
|
||||
@@ -1061,7 +1063,7 @@ AFLD:
|
||||
BuildPaletteOrder: 50
|
||||
Prerequisites: dome
|
||||
Owner: soviet
|
||||
Hotkey: g
|
||||
Hotkey: i
|
||||
Valued:
|
||||
Cost: 500
|
||||
Tooltip:
|
||||
@@ -1286,7 +1288,7 @@ FIX:
|
||||
BuildPaletteOrder: 30
|
||||
Prerequisites: weap
|
||||
Owner: allies,soviet
|
||||
Hotkey: d
|
||||
Hotkey: x
|
||||
Valued:
|
||||
Cost: 1200
|
||||
Tooltip:
|
||||
|
||||
@@ -36,7 +36,7 @@ V2RL:
|
||||
Queue: Vehicle
|
||||
BuildPaletteOrder: 40
|
||||
Owner: allies
|
||||
Hotkey: g
|
||||
Hotkey: l
|
||||
Valued:
|
||||
Cost: 700
|
||||
Tooltip:
|
||||
@@ -74,7 +74,7 @@ V2RL:
|
||||
BuildPaletteOrder: 60
|
||||
Prerequisites: fix
|
||||
Owner: allies
|
||||
Hotkey: f
|
||||
Hotkey: x
|
||||
Valued:
|
||||
Cost: 850
|
||||
Tooltip:
|
||||
@@ -487,7 +487,7 @@ MGG:
|
||||
BuildPaletteOrder: 150
|
||||
Prerequisites: atek
|
||||
Owner: allies
|
||||
Hotkey: s
|
||||
Hotkey: y
|
||||
Valued:
|
||||
Cost: 1500
|
||||
Tooltip:
|
||||
@@ -617,7 +617,7 @@ TTNK:
|
||||
BuildPaletteOrder: 130
|
||||
Prerequisites: stek,tsla
|
||||
Owner: soviet
|
||||
Hotkey: l
|
||||
Hotkey: t
|
||||
Valued:
|
||||
Cost: 1350
|
||||
Tooltip:
|
||||
|
||||
Reference in New Issue
Block a user