3enum EConsoleButtonsControls
60 PPERequesterBank.GetRequester(PPERequesterBank.REQ_MENUEFFECTS).Stop();
65 #ifdef PLATFORM_CONSOLE
73 bool mk =
g_Game.GetInput().IsEnabledMouseAndKeyboard();
74 bool mkServer =
g_Game.GetInput().IsEnabledMouseAndKeyboardEvenOnServer();
76 switch (pInputDeviceType)
81 g_Game.GetUIManager().ShowUICursor(
false);
86 if (
g_Game.GetInput().IsEnabledMouseAndKeyboard())
88 g_Game.GetUIManager().ShowUICursor(
true);
98 g_Game.GetUIManager().Back();
120 while (w.GetParent())
144 typename t = EConsoleButtonsControls;
154 side_idx = wid_side.GetUserID();
155 wid_spacer = wid_side.GetChildren();
161 t.GetVariableValue(null, i, enum_value);
166 button_mapping.Insert(enum_value,items_filtered);
169 m_AreasLR.Insert(side_idx,button_mapping);
171 wid_side = wid_side.GetSibling();
183 layoutRoot =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/xbox/Controls_Screen.layout");
187 #ifdef PLATFORM_MSSTORE
199 m_CanvasWidget = CanvasWidget.Cast(layoutRoot.FindAnyWidget(
"CanvasUniversal"));
200 m_Back = ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"back"));
206 PPERequester_MenuEffects requester;
207 Class.
CastTo(requester,PPERequesterBank.GetRequester(PPERequesterBank.REQ_MENUEFFECTS));
208 requester.SetVignetteIntensity(0.6);
282 return (w && w ==
m_Back);
287 if (
GetUApi().GetInputByID(UAUITabLeft).LocalPress())
292 if (
GetUApi().GetInputByID(UAUITabRight).LocalPress())
297 if (
GetUApi().GetInputByID(UAUIBack).LocalPress())
302 if (
GetUApi().GetInputByID(UASwitchPreset).LocalPress())
327 while (w.GetSibling())
335 #ifdef PLATFORM_MSSTORE
349 while (category_widget.GetSibling())
351 category_widget = category_widget.GetSibling();
358 Print(
"PerformSwitchPreset - 1");
373 g_Game.GetMission().GetOnInputPresetChanged().Invoke();
375 #ifdef PLATFORM_WINDOWS
413 Widget ret = wid.GetChildren();
416 if (ret.GetUserID() == user_id)
420 ret = ret.GetSibling();
428 Widget child = wid.GetChildren();
431 if (child.GetUserID() == user_id)
433 results.Insert(child);
435 child = child.GetSibling();
437 return (results && results.Count() > 0);
443 for (
int i = 0; i < input.Count(); i++)
447 filtered.Insert(input[i]);
451 return filtered.Count();
459 int color_pnl =
ARGB(255, 0, 0, 0);
460 int color_lbl =
ARGB(255, 255, 0, 0);
462 #ifdef PLATFORM_CONSOLE
463 color_pnl =
ARGB(255, 200, 0, 0);
464 color_lbl =
ARGB(255, 255, 255, 255);
476 int color_pnl =
ARGB(0, 0, 0, 0);
477 int color_lbl =
ARGB(255, 255, 255, 255);
502 Widget panel = w.FindWidget(w.GetName() +
"_panel");
506 panel.SetColor(color);
521 label.SetColor(color);
526 text.SetColor(color);
531 text2.SetColor(color);
542 toolbar_text.SetText(text);
547 bool toolbarShow =
false;
548 #ifdef PLATFORM_CONSOLE
549 toolbarShow = !
g_Game.GetInput().IsEnabledMouseAndKeyboardEvenOnServer() ||
g_Game.GetInput().GetCurrentInputDevice() ==
EInputDeviceType.CONTROLLER;
552 layoutRoot.FindAnyWidget(
"toolbar_bg").Show(toolbarShow);
553 layoutRoot.FindAnyWidget(
"play_panel_root").Show(!toolbarShow);
enum map TButtonPairingInfo
@ BUTTON_GROUP_PAD_COMMON
@ BUTTON_GROUP_RIGHT_SIDE_COMMON
Super root of all classes in Enforce script.
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto void Print(void var)
Prints content of variable to console/log.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
int ARGB(int a, int r, int g, int b)