215{
218
220 {
222 {
223 g_Game.GetMission().AddActiveInputExcludes({
"menu"});
224
225 g_Game.GetMission().GetHud().ShowHudUI(
false);
226 g_Game.GetMission().GetHud().ShowQuickbarUI(
false);
227 }
228 }
229
231 {
233 {
234 g_Game.GetMission().RemoveActiveInputExcludes({
"menu"},
true);
235
236 g_Game.GetMission().GetHud().ShowHudUI(
true);
237 g_Game.GetMission().GetHud().ShowQuickbarUI(
true);
238
241 }
242 }
243
245 {
246 layoutRoot =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/day_z_dropped_items.layout");
247 m_OkButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"bOK"));
248 m_Description = MultilineTextWidget.Cast(layoutRoot.FindAnyWidget(
"txtDescription"));
250
253
255 {
258 }
259
261
262 return layoutRoot;
263 }
264
266 {
267 return "";
268 }
269
271 {
272 super.OnClick(w,
x,
y, button);
273
274 if (w.GetUserID() ==
IDC_OK)
275 {
277 return true;
278 }
279
280 return false;
281 }
282
283 override void Update(
float timeslice)
284 {
285 super.Update(timeslice);
286
287 #ifdef PLATFORM_CONSOLE
288 if (
GetUApi().GetInputByID(UAUISelect).LocalPress())
290 #endif
291 }
292
294 {
295 #ifdef PLATFORM_CONSOLE
297 #endif
298 }
299
301 {
304 }
305
307 {
310
311 toolbarText.SetText(context);
312 }
313
315 {
316 bool toolbarShow = false;
317 #ifdef PLATFORM_CONSOLE
318 toolbarShow = !
g_Game.GetInput().IsEnabledMouseAndKeyboard() ||
g_Game.GetInput().GetCurrentInputDevice() ==
EInputDeviceType.CONTROLLER;
319 #endif
320
321 layoutRoot.FindAnyWidget("BottomConsoleToolbar").Show(toolbarShow);
323 }
324}
325
327{
329 {
330 return "#str_item_drop_notification";
331 }
332}
333
335{
337 {
338 return "#str_position_change_notification";
339 }
340}
void OnInputPresetChanged()
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
string m_Description
class purpose description