Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
Temporary hotfix for EOnPostSimulate/EOnFrame methods not beeing called on static objects
145{
148
150 {
152 {
153 g_Game.GetMission().AddActiveInputExcludes({
"menu"});
154
155 g_Game.GetMission().GetHud().ShowHudUI(
false);
156 g_Game.GetMission().GetHud().ShowQuickbarUI(
false);
157 }
158 }
159
161 {
163 {
164 g_Game.GetMission().RemoveActiveInputExcludes({
"menu"},
true);
165
166 g_Game.GetMission().GetHud().ShowHudUI(
true);
167 g_Game.GetMission().GetHud().ShowQuickbarUI(
true);
168
171 }
172 }
173
175 {
176 layoutRoot =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/day_z_dropped_items.layout");
177 m_OkButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"bOK"));
178 m_Description = MultilineTextWidget.Cast(layoutRoot.FindAnyWidget(
"txtDescription"));
180
183
185 {
188 }
189
191
192 return layoutRoot;
193 }
194
196 {
197 return "";
198 }
199
201 {
202 super.OnClick(w,
x,
y, button);
203
204 if (w.GetUserID() ==
IDC_OK)
205 {
207 return true;
208 }
209
210 return false;
211 }
212
213 override void Update(
float timeslice)
214 {
215 super.Update(timeslice);
216
217 #ifdef PLATFORM_CONSOLE
218 if (
GetUApi().GetInputByID(UAUISelect).LocalPress())
220 #endif
221 }
222
224 {
225 #ifdef PLATFORM_CONSOLE
227 #endif
228 }
229
231 {
234 }
235
237 {
240
241 toolbarText.SetText(context);
242 }
243
245 {
246 bool toolbarShow = false;
247 #ifdef PLATFORM_CONSOLE
248 toolbarShow = !
g_Game.GetInput().IsEnabledMouseAndKeyboard() ||
g_Game.GetInput().GetCurrentInputDevice() ==
EInputDeviceType.CONTROLLER;
249 #endif
250
251 layoutRoot.FindAnyWidget("BottomConsoleToolbar").Show(toolbarShow);
253 }
254}
255
257{
259 {
260 return "#str_item_drop_notification";
261 }
262}
263
265{
267 {
268 return "#str_position_change_notification";
269 }
270}
void OnInputPresetChanged()
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
string m_Description
class purpose description