DayZ 1.24
Loading...
Searching...
No Matches
UIScriptedWindow.c
Go to the documentation of this file.
2{
4 int m_Id;
5
6 //---MOVE TO UIMANAGER WHEN FIXED
8
16
17 static void RemoveFromActiveWindows(int id)
18 {
20 m_ActiveWindows.Remove(id);
21 }
22
24 {
26 return m_ActiveWindows.Get(id);
27
28 return NULL;
29 }
30
35 //---
36
37
38 void UIScriptedWindow(int id)
39 {
40 m_Id = id;
41 }
42
44 {
45 GetWidgetRoot().Show(false);
46 delete GetWidgetRoot();
47 }
48
50 {
51 return m_WgtRoot;
52 }
53
55 {
56 }
57
59 {
60 GetWidgetRoot().Show(true);
61 }
62
64 {
65 GetWidgetRoot().Show(false);
66 }
67
69 {
70 GetGame().GetUIManager().CloseWindow(m_Id);
71 }
72
73 //--- EVENTS
74 bool OnClick(Widget w, int x, int y, int button)
75 {
76 return false;
77 }
78
79 bool OnModalResult(Widget w, int x, int y, int code, int result)
80 {
81 return false;
82 }
83
84 bool OnDoubleClick(Widget w, int x, int y, int button)
85 {
86 return false;
87 }
88
89 bool OnSelect(Widget w, int x, int y)
90 {
91 return false;
92 }
93
94 bool OnItemSelected(Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
95 {
96 return false;
97 }
98
99 bool OnFocus(Widget w, int x, int y)
100 {
101 return false;
102 }
103
104 bool OnFocusLost(Widget w, int x, int y)
105 {
106 return false;
107 }
108
109 bool OnMouseEnter(Widget w, int x, int y)
110 {
111 return false;
112 }
113
115 {
116 return false;
117 }
118
119 bool OnMouseButtonDown(Widget w, int x, int y, int button)
120 {
121 return false;
122 }
123
124 bool OnMouseButtonUp(Widget w, int x, int y, int button)
125 {
126 return false;
127 }
128
129 bool OnMouseWheel(Widget w, int x, int y, int wheel)
130 {
131 return false;
132 }
133
135 {
136 return false;
137 }
138
139 bool OnKeyDown(Widget w, int x, int y, int key)
140 {
141 return false;
142 }
143
144 bool OnKeyUp(Widget w, int x, int y, int key)
145 {
146 return false;
147 }
148
149 bool OnKeyPress(Widget w, int x, int y, int key)
150 {
151 return false;
152 }
153
154 bool OnChange(Widget w, int x, int y, bool finished)
155 {
156 return false;
157 }
158
159 bool OnDrag(Widget w, int x, int y)
160 {
161 return false;
162 }
163
165 {
166 return false;
167 }
168
170 {
171 return false;
172 }
173
174 bool OnDrop(Widget w, int x, int y, Widget reciever)
175 {
176 return false;
177 }
178
180 {
181 return false;
182 }
183
185 {
186 return false;
187 }
188
189
190}
Icon x
Icon y
void UIScriptedWindow(int id)
bool OnFocusLost(Widget w, int x, int y)
bool OnKeyUp(Widget w, int x, int y, int key)
bool OnChange(Widget w, int x, int y, bool finished)
bool OnClick(Widget w, int x, int y, int button)
bool OnMouseWheel(Widget w, int x, int y, int wheel)
bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
bool OnMouseButtonUp(Widget w, int x, int y, int button)
bool OnSelect(Widget w, int x, int y)
bool OnMouseButtonDown(Widget w, int x, int y, int button)
bool OnDropReceived(Widget w, int x, int y, Widget reciever)
bool OnDrag(Widget w, int x, int y)
bool OnDrop(Widget w, int x, int y, Widget reciever)
bool OnKeyPress(Widget w, int x, int y, int key)
static void RemoveFromActiveWindows(int id)
bool OnItemSelected(Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
bool OnController(Widget w, int control, int value)
bool OnKeyDown(Widget w, int x, int y, int key)
bool OnDoubleClick(Widget w, int x, int y, int button)
bool OnMouseEnter(Widget w, int x, int y)
bool OnModalResult(Widget w, int x, int y, int code, int result)
bool OnDraggingOver(Widget w, int x, int y, Widget reciever)
static UIScriptedWindow GetWindow(int id)
bool OnEvent(EventType eventType, Widget target, int parameter0, int parameter1)
static void AddToActiveWindows(int id, UIScriptedWindow window)
bool OnDragging(Widget w, int x, int y, Widget reciever)
static ref map< int, UIScriptedWindow > m_ActiveWindows
bool OnFocus(Widget w, int x, int y)
static map< int, UIScriptedWindow > GetActiveWindows()
proto native CGame GetGame()