17 protected ref SCR_KeyBindingEntry
m_Entry;
55 return super.OnFocus(w, x, y);
69 return super.OnFocusLost(w, x, y);
75 super.HandlerDeattached(w);
102 textBox.ElideText(1, 1.0,
"...");
145 SCR_ModularButtonComponent button = SCR_ModularButtonComponent.FindComponent(
m_wRoot);
153 array<ref Widget> children = {};
155 SCR_ModularButtonComponent comp;
156 foreach (
Widget child : children)
158 comp = SCR_ModularButtonComponent.FindComponent(child);
162 switch (child.GetName())
187 EInputDeviceType device =
GetGame().GetInputManager().GetLastUsedInputDevice();
192 if (device == EInputDeviceType.MOUSE || device == EInputDeviceType.KEYBOARD)
195 else if (device == EInputDeviceType.GAMEPAD)
216 EInputDeviceType.KEYBOARD
250 EInputDeviceType.GAMEPAD
274 if (!comp.GetToggled())
281 if (!comp.GetToggled())
339 if (device == EInputDeviceType.MOUSE)
340 device = EInputDeviceType.KEYBOARD;
361 bool visible =
m_bFocused &&
GetGame().GetInputManager().GetLastUsedInputDevice() == EInputDeviceType.MOUSE;
373 bool isController =
GetGame().GetInputManager().GetLastUsedInputDevice() == EInputDeviceType.GAMEPAD;
374 bool keyboardBindEnabled = !isController && (!
GetGame().IsPlatformGameConsole() ||
GetGame().GetHasKeyboard());
387 bool isController =
GetGame().GetInputManager().GetLastUsedInputDevice() == EInputDeviceType.GAMEPAD;
388 SCR_EActionDisplayState stateKeyboard = SCR_EActionDisplayState.DEFAULT;
389 SCR_EActionDisplayState stateGamepad = SCR_EActionDisplayState.DEFAULT;
392 stateKeyboard = SCR_EActionDisplayState.DISABLED;
394 stateGamepad = SCR_EActionDisplayState.DISABLED;
407 EInputDeviceType device =
GetGame().GetInputManager().GetLastUsedInputDevice();
424 EInputDeviceType device =
GetGame().GetInputManager().GetLastUsedInputDevice();
427 if (device == EInputDeviceType.MOUSE)
428 device = EInputDeviceType.KEYBOARD;
469 EInputDeviceType deviceType =
GetGame().GetInputManager().GetLastUsedInputDevice();
471 if (deviceType == EInputDeviceType.GAMEPAD)
SCR_SettingsManager GetSettingsManager()
bool IsPlatformGameConsole()
ArmaReforgerScripted GetGame()
ScriptInvokerBase< ScriptInvokerVoidMethod > ScriptInvokerVoid
ScriptInvokerBase< ScriptInvokerStringMethod > ScriptInvokerString
ESettingManagerModuleType
static SCR_KeybindActionDisplayRowComponent FindComponentInHierarchy(notnull Widget w)
static SCR_SimpleKeybindDialogUI CreateSimpleKeybindDialog(SCR_KeyBindingEntry entry, string displayName, string actionName, InputBinding binding, EInputDeviceType device, bool showOverrideWarning=true)
const string WIDGET_BIND_CONTROLLER
void UpdateActionDisplayScrolling(bool enable)
static const string BUTTON_RESET
void UpdateInlineButtons()
override event bool OnFocusLost(Widget w, int x, int y)
ScriptInvokerString GetOnInlineButton()
ScriptInvokerVoid GetOnKeyCaptured()
Widget m_wInlineButtonsWrapper
ref ScriptInvokerVoid m_OnKeyCaptured
static const string BUTTON_ADVANCED_KEYBIND
ScriptInvokerScriptedWidgetComponent GetOnFocusLost()
void OnDialogClose(DialogUI dialog)
override void HandlerDeattached(Widget w)
string m_sGamepadAltActionName
static SCR_KeybindRowComponent FindComponent(Widget w)
void UpdateActionDisplays()
string m_sGamepadAltActionPreset
void OnInlineMouseButtonEnter(SCR_ModularButtonComponent comp, bool mouseInput)
SCR_KeybindActionDisplayRowComponent m_ActionDisplayKeyboard
ScriptInvokerScriptedWidgetComponent GetOnFocus()
SCR_ModularButtonComponent m_BindButtonKeyboard
const string WIDGET_BIND_PC
SCR_EActionPrefixType GetActionPrefixType()
SCR_SettingsManagerKeybindModule m_SettingsKeybindModule
override event bool OnFocus(Widget w, int x, int y)
ref ScriptInvokerScriptedWidgetComponent m_OnFocusLost
void OnInputDeviceChange(EInputDeviceType oldDevice, EInputDeviceType newDevice)
SCR_KeyBindingEntry GetEntry()
string m_sActionDisplayName
void OnInlineMouseButtonLeave(SCR_ModularButtonComponent comp, bool mouseInput)
SCR_KeybindActionDisplayRowComponent m_ActionDisplayController
string GetFinalActionPreset()
ref InputBinding m_Binding
ref SCR_KeyBindingEntry m_Entry
SCR_ModularButtonComponent m_BindButtonController
void SetRichTextAction(EInputDeviceType device)
bool m_bOnInlineMouseButton
static const string BUTTON_UNBIND
void OnBindKeyboardClicked(SCR_ModularButtonComponent comp)
void OnBindControllerClicked(SCR_ModularButtonComponent comp)
void OnDialogOpen(DialogUI dialog)
SCR_EActionPrefixType m_eActionPrefixType
ref ScriptInvokerString m_OnInlineButton
const string ACTION_DISPLAY_ROOT
ref ScriptInvokerScriptedWidgetComponent m_OnFocus
void Init(notnull InputBinding binding, SCR_KeyBindingEntry entry)
ScriptInvokerVoid GetOnKeyCaptured()