3enum EConsoleButtonsControls
60 PPERequesterBank.GetRequester(PPERequesterBank.REQ_MENUEFFECTS).Stop();
65 #ifdef PLATFORM_CONSOLE
76 switch (pInputDeviceType)
86 if (
GetGame().GetInput().IsEnabledMouseAndKeyboard())
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();
195 m_CanvasWidget = CanvasWidget.Cast(layoutRoot.FindAnyWidget(
"CanvasUniversal"));
196 m_Back = ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"back"));
202 PPERequester_MenuEffects requester;
203 Class.
CastTo(requester,PPERequesterBank.GetRequester(PPERequesterBank.REQ_MENUEFFECTS));
204 requester.SetVignetteIntensity(0.6);
278 return (w && w ==
m_Back);
283 if (
GetUApi().GetInputByID(UAUITabLeft).LocalPress())
288 if (
GetUApi().GetInputByID(UAUITabRight).LocalPress())
293 if (
GetUApi().GetInputByID(UAUIBack).LocalPress())
298 if (
GetUApi().GetInputByID(UASwitchPreset).LocalPress())
323 while (w.GetSibling())
341 while (category_widget.GetSibling())
343 category_widget = category_widget.GetSibling();
350 Print(
"PerformSwitchPreset - 1");
367 #ifdef PLATFORM_WINDOWS
405 Widget ret = wid.GetChildren();
408 if (ret.GetUserID() == user_id)
412 ret = ret.GetSibling();
420 Widget child = wid.GetChildren();
423 if (child.GetUserID() == user_id)
425 results.Insert(child);
427 child = child.GetSibling();
429 return (results && results.Count() > 0);
435 for (
int i = 0; i < input.Count(); i++)
439 filtered.Insert(input[i]);
443 return filtered.Count();
451 int color_pnl =
ARGB(255, 0, 0, 0);
452 int color_lbl =
ARGB(255, 255, 0, 0);
454 #ifdef PLATFORM_CONSOLE
455 color_pnl =
ARGB(255, 200, 0, 0);
456 color_lbl =
ARGB(255, 255, 255, 255);
468 int color_pnl =
ARGB(0, 0, 0, 0);
469 int color_lbl =
ARGB(255, 255, 255, 255);
494 Widget panel = w.FindWidget(w.GetName() +
"_panel");
498 panel.SetColor(color);
513 label.SetColor(color);
518 text.SetColor(color);
523 text2.SetColor(color);
534 toolbar_text.SetText(text);
542 bool toolbarShow =
false;
543 #ifdef PLATFORM_CONSOLE
547 layoutRoot.FindAnyWidget(
"toolbar_bg").Show(toolbarShow);
548 layoutRoot.FindAnyWidget(
"play_panel_root").Show(!toolbarShow);
enum map TButtonPairingInfo
@ BUTTON_GROUP_PAD_COMMON
@ BUTTON_GROUP_RIGHT_SIDE_COMMON
proto native UIManager GetUIManager()
proto native WorkspaceWidget GetWorkspace()
proto native Input GetInput()
proto native Mission GetMission()
Super root of all classes in Enforce script.
ScriptInvoker GetOnInputDeviceChanged()
ScriptInvoker GetOnInputPresetChanged()
proto void Invoke(void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
invoke call on all inserted methods with given arguments
proto bool Insert(func fn, int flags=EScriptInvokerInsertFlags.IMMEDIATE)
insert method to list
void ShowUICursor(bool visible)
bool Back()
Close top window on windows stack, returns true when any window is closed.
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
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)