4 protected ref ScriptInvoker m_OnMapIconClick;
7 ScriptInvoker GetOnMapIconClick()
10 m_OnMapIconClick =
new ScriptInvoker();
12 return m_OnMapIconClick;
16 override bool OnClick(Widget w,
int x,
int y,
int button)
22 m_OnMapIconClick.Invoke();
28 override bool OnMouseEnter(Widget w,
int x,
int y)
30 Widget frame = Widget.Cast(m_MapUiTask.GetMapWidget().FindAnyWidget(
"Border"));
34 frame.SetEnabled(
true);
38 GetGame().GetInputManager().AddActionListener(
"MenuSelect", EActionTrigger.DOWN, ButtonPressed);
46 m_OnMapIconClick.Invoke();
49 override bool OnMouseLeave(Widget w, Widget enterW,
int x,
int y)
51 Widget frame = Widget.Cast(m_MapUiTask.GetMapWidget().FindAnyWidget(
"Border"));
55 frame.SetEnabled(
false);
59 GetGame().GetInputManager().RemoveActionListener(
"MenuSelect", EActionTrigger.DOWN, ButtonPressed);
66 m_MapUiTask = mapUiTask;