Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TaskListFocusUIComponent.c
Go to the documentation of this file.
2{
4
5 //------------------------------------------------------------------------------------------------
6 override void HandlerAttached(Widget w)
7 {
8 super.HandlerAttached(w);
9
10 m_Workspace = GetGame().GetWorkspace();
11 }
12
13 //------------------------------------------------------------------------------------------------
14 override bool OnMouseEnter(Widget w, int x, int y)
15 {
16 super.OnMouseEnter(w, x, y);
17
18 if (m_Workspace)
19 m_Workspace.SetFocusedWidget(m_wRoot);
20
21 return false;
22 }
23
24 //------------------------------------------------------------------------------------------------
25 override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
26 {
27 super.OnMouseEnter(w, enterW, x, y);
28
29 if (m_Workspace)
30 m_Workspace.SetFocusedWidget(null);
31
32 return false;
33 }
34}
ArmaReforgerScripted GetGame()
Definition game.c:1398
override bool OnMouseEnter(Widget w, int x, int y)
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)