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