remove type-specific functions for ChromeMetrics.Get; use FieldLoader
This commit is contained in:
@@ -19,7 +19,7 @@ namespace OpenRA.Widgets
|
||||
{
|
||||
public Func<bool> IsChecked = () => false;
|
||||
public int BaseLine = 1;
|
||||
public bool HasPressedState = ChromeMetrics.GetBool("CheckboxPressedState");
|
||||
public bool HasPressedState = ChromeMetrics.Get<bool>("CheckboxPressedState");
|
||||
|
||||
public CheckboxWidget()
|
||||
: base()
|
||||
@@ -56,4 +56,4 @@ namespace OpenRA.Widgets
|
||||
|
||||
public override Widget Clone() { return new CheckboxWidget(this); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user