Make UI cursors configurable.
This commit is contained in:
committed by
Paul Chote
parent
96c4554644
commit
e7cfd2765c
@@ -68,6 +68,8 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
public Action OnDoubleClick = () => { };
|
||||
public Action<KeyInput> OnKeyPress = _ => { };
|
||||
|
||||
public string Cursor = ChromeMetrics.Get<string>("ButtonCursor");
|
||||
|
||||
protected readonly Ruleset ModRules;
|
||||
|
||||
[ObjectCreator.UseCtor]
|
||||
@@ -221,6 +223,8 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
tooltipContainer.Value.RemoveTooltip();
|
||||
}
|
||||
|
||||
public override string GetCursor(int2 pos) { return Cursor; }
|
||||
|
||||
public override int2 ChildOrigin
|
||||
{
|
||||
get
|
||||
|
||||
Reference in New Issue
Block a user