171{
174
176 {
178 {
179 g_Game.GetMission().AddActiveInputExcludes({
"menu"});
180
181 g_Game.GetMission().GetHud().ShowHudUI(
false);
182 g_Game.GetMission().GetHud().ShowQuickbarUI(
false);
183 }
184 }
185
187 {
189 {
190 g_Game.GetMission().RemoveActiveInputExcludes({
"menu"},
true);
191
192 g_Game.GetMission().GetHud().ShowHudUI(
true);
193 g_Game.GetMission().GetHud().ShowQuickbarUI(
true);
194
197 }
198 }
199
201 {
202 layoutRoot =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/day_z_dropped_items.layout");
203 m_OkButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"bOK"));
204 m_Description = MultilineTextWidget.Cast(layoutRoot.FindAnyWidget(
"txtDescription"));
206
209
211 {
214 }
215
217
218 return layoutRoot;
219 }
220
222 {
223 return "";
224 }
225
227 {
228 super.OnClick(w,
x,
y, button);
229
230 if (w.GetUserID() ==
IDC_OK)
231 {
233 return true;
234 }
235
236 return false;
237 }
238
239 override void Update(
float timeslice)
240 {
241 super.Update(timeslice);
242
243 #ifdef PLATFORM_CONSOLE
244 if (
GetUApi().GetInputByID(UAUISelect).LocalPress())
246 #endif
247 }
248
250 {
251 #ifdef PLATFORM_CONSOLE
253 #endif
254 }
255
257 {
260 }
261
263 {
266
267 toolbarText.SetText(context);
268 }
269
271 {
272 bool toolbarShow = false;
273 #ifdef PLATFORM_CONSOLE
274 toolbarShow = !
g_Game.GetInput().IsEnabledMouseAndKeyboard() ||
g_Game.GetInput().GetCurrentInputDevice() ==
EInputDeviceType.CONTROLLER;
275 #endif
276
277 layoutRoot.FindAnyWidget("BottomConsoleToolbar").Show(toolbarShow);
279 }
280}
281
283{
285 {
286 return "#str_item_drop_notification";
287 }
288}
289
291{
293 {
294 return "#str_position_change_notification";
295 }
296}
void OnInputPresetChanged()
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
string m_Description
class purpose description