fixed broken build palette hotkeys

support modifiers for build palette hotkeys
This commit is contained in:
Matthias Mailänder
2013-11-09 11:32:21 +01:00
parent 6c11ae36c7
commit a6f06a5dfd
5 changed files with 9 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ namespace OpenRA.Mods.RA.Widgets
public OrderButtonWidget()
{
GetImage = () => Enabled() ? Pressed() ? "pressed" : "normal" : "disabled";
GetDescription = () => Key != Hotkey.Invalid ? "{0} ({1})".F(Description, Key.DisplayString()) : Description;
GetDescription = () => Key.IsValid() ? "{0} ({1})".F(Description, Key.DisplayString()) : Description;
GetLongDesc = () => LongDesc;
}