Remove alt key modifier from build palette hotkeys. Changed some hotkeys for units and buildings.

This commit is contained in:
Curtis Shmyr
2013-04-21 17:28:12 -06:00
parent 406b210958
commit 3b8957a65e
3 changed files with 7 additions and 9 deletions

View File

@@ -153,9 +153,7 @@ namespace OpenRA.Mods.RA.Widgets
TabChange(e.Modifiers.HasModifier(Modifiers.Shift)); TabChange(e.Modifiers.HasModifier(Modifiers.Shift));
return true; return true;
} }
if (e.Modifiers == Modifiers.Alt) return DoBuildingHotkey(e.KeyName, world);
return DoBuildingHotkey(e.KeyName, world);
return false;
} }
public override bool HandleMouseInput(MouseInput mi) public override bool HandleMouseInput(MouseInput mi)
@@ -458,7 +456,7 @@ namespace OpenRA.Mods.RA.Widgets
WidgetUtils.DrawPanel("dialog4", new Rectangle(Game.viewport.Width - 300, pos.Y, 300, longDescSize + 65)); WidgetUtils.DrawPanel("dialog4", new Rectangle(Game.viewport.Width - 300, pos.Y, 300, longDescSize + 65));
Game.Renderer.Fonts["Bold"].DrawText( Game.Renderer.Fonts["Bold"].DrawText(
tooltip.Name + ((buildable.Hotkey != null) ? " (ALT + {0})".F(buildable.Hotkey.ToUpper()) : ""), tooltip.Name + ((buildable.Hotkey != null) ? " ({0})".F(buildable.Hotkey.ToUpper()) : ""),
p.ToInt2() + new int2(5, 5), Color.White); p.ToInt2() + new int2(5, 5), Color.White);
var resources = pl.PlayerActor.Trait<PlayerResources>(); var resources = pl.PlayerActor.Trait<PlayerResources>();

View File

@@ -53,7 +53,7 @@ GAP:
BuildPaletteOrder: 100 BuildPaletteOrder: 100
Prerequisites: atek Prerequisites: atek
Owner: allies Owner: allies
Hotkey: x Hotkey: g
Building: Building:
Power: -60 Power: -60
Footprint: _ x Footprint: _ x
@@ -619,7 +619,7 @@ HBOX.E1:
BuildPaletteOrder: 20 BuildPaletteOrder: 20
Prerequisites: tent Prerequisites: tent
Owner: allies Owner: allies
Hotkey: p Hotkey: l
Tooltip: Tooltip:
Name: Camo Pillbox (Guns) Name: Camo Pillbox (Guns)
Description: Hidden defensive structure.\n Strong vs Infantry, Light Vehicles\n Weak vs Tanks, Aircraft Description: Hidden defensive structure.\n Strong vs Infantry, Light Vehicles\n Weak vs Tanks, Aircraft
@@ -1293,7 +1293,7 @@ FIX:
BuildPaletteOrder: 30 BuildPaletteOrder: 30
Prerequisites: weap Prerequisites: weap
Owner: allies,soviet Owner: allies,soviet
Hotkey: x Hotkey: m
Valued: Valued:
Cost: 1200 Cost: 1200
Tooltip: Tooltip:

View File

@@ -74,7 +74,7 @@ V2RL:
BuildPaletteOrder: 60 BuildPaletteOrder: 60
Prerequisites: fix Prerequisites: fix
Owner: allies Owner: allies
Hotkey: x Hotkey: m
Valued: Valued:
Cost: 850 Cost: 850
Tooltip: Tooltip:
@@ -543,7 +543,7 @@ MRJ:
BuildPaletteOrder: 150 BuildPaletteOrder: 150
Prerequisites: atek Prerequisites: atek
Owner: allies Owner: allies
Hotkey: m Hotkey: k
Health: Health:
HP: 200 HP: 200
Armor: Armor: