Change color of labels that correspond to disabled inputs
- Add a new widget type for input and extend it from other input widgets - Add a new label type that can be linked to an input widget - Change the label color when the input's disabled state changes
This commit is contained in:
committed by
abcdefg30
parent
0203476da9
commit
eadc8ad689
@@ -16,7 +16,7 @@ using OpenRA.Widgets;
|
||||
|
||||
namespace OpenRA.Mods.Common.Widgets
|
||||
{
|
||||
public class HotkeyEntryWidget : Widget
|
||||
public class HotkeyEntryWidget : InputWidget
|
||||
{
|
||||
public Hotkey Key;
|
||||
|
||||
@@ -27,7 +27,6 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
public Action<KeyInput> OnEscKey = _ => { };
|
||||
public Action OnLoseFocus = () => { };
|
||||
|
||||
public Func<bool> IsDisabled = () => false;
|
||||
public Func<bool> IsValid = () => false;
|
||||
public string Font = ChromeMetrics.Get<string>("HotkeyFont");
|
||||
public Color TextColor = ChromeMetrics.Get<Color>("HotkeyColor");
|
||||
|
||||
Reference in New Issue
Block a user