207{
210
212 {
214 {
215 g_Game.GetMission().AddActiveInputExcludes({
"menu"});
216
217 g_Game.GetMission().GetHud().ShowHudUI(
false);
218 g_Game.GetMission().GetHud().ShowQuickbarUI(
false);
219 }
220 }
221
223 {
225 {
226 g_Game.GetMission().RemoveActiveInputExcludes({
"menu"},
true);
227
228 g_Game.GetMission().GetHud().ShowHudUI(
true);
229 g_Game.GetMission().GetHud().ShowQuickbarUI(
true);
230
233 }
234 }
235
237 {
238 layoutRoot =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/day_z_dropped_items.layout");
239 m_OkButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"bOK"));
240 m_Description = MultilineTextWidget.Cast(layoutRoot.FindAnyWidget(
"txtDescription"));
242
245
247 {
250 }
251
253
254 return layoutRoot;
255 }
256
258 {
259 return "";
260 }
261
263 {
264 super.OnClick(w,
x,
y, button);
265
266 if (w.GetUserID() ==
IDC_OK)
267 {
269 return true;
270 }
271
272 return false;
273 }
274
275 override void Update(
float timeslice)
276 {
277 super.Update(timeslice);
278
279 #ifdef PLATFORM_CONSOLE
280 if (
GetUApi().GetInputByID(UAUISelect).LocalPress())
282 #endif
283 }
284
286 {
287 #ifdef PLATFORM_CONSOLE
289 #endif
290 }
291
293 {
296 }
297
299 {
302
303 toolbarText.SetText(context);
304 }
305
307 {
308 bool toolbarShow = false;
309 #ifdef PLATFORM_CONSOLE
310 toolbarShow = !
g_Game.GetInput().IsEnabledMouseAndKeyboard() ||
g_Game.GetInput().GetCurrentInputDevice() ==
EInputDeviceType.CONTROLLER;
311 #endif
312
313 layoutRoot.FindAnyWidget("BottomConsoleToolbar").Show(toolbarShow);
315 }
316}
317
319{
321 {
322 return "#str_item_drop_notification";
323 }
324}
325
327{
329 {
330 return "#str_position_change_notification";
331 }
332}
void OnInputPresetChanged()
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
string m_Description
class purpose description