7 [
Attribute(
"1",
desc:
"If enabled, buttons won't show the Text/Image to display the required input")]
10 [
Attribute(
"MenuTabLeft",
desc:
"Name of action from chimeraInputCommon")]
19 [
Attribute(
"2",
desc:
"Amount of keybinds for one action we display to prevent displaying 100 alternatives for one action")]
22 [
Attribute(defvalue:
"32",
desc:
"Define the Height in PX. Wight will be adjusted automatically")]
46 [
Attribute(
"0",
desc:
"If enabled there will be no sound played when the button is pressed")]
49 [
Attribute(
"0",
desc:
"Postion offset when button is not held")]
55 [
Attribute(
"0.1",
desc:
"Time in sec who long the animation takes.")]
58 [
Attribute(
"1",
desc:
"If false the button will never change to its disabled visual state.")]
61 [
Attribute(
"1",
desc:
"If false the Label does not change its color to disabled when button is disabled.")]
73 [
Attribute(
"{B7C8B633428B153D}UI/layouts/WidgetLibrary/Buttons/WLib_InputButtonDisplay.layout")]
76 [
Attribute(
"{983DFCCEB578C1C5}UI/layouts/InputButtons/InputButton_ComboIndicator.layout")]
85 [
Attribute(
desc:
"If enabled Text size is controlled by set size Inside the RichText widget")]
88 [
Attribute(
"-0.05",
desc:
"Time that will the HoldTime will be reduced by to make the Animation the right length. Time in seconds")]
167 super.HandlerAttached(w);
212 EInputDeviceType currentDevice = EInputDeviceType.KEYBOARD;
214 currentDevice = EInputDeviceType.GAMEPAD;
257 super.OnClick(w, x, y, button);
317 protected bool ChangeInputDevice(EInputDeviceType inputDevice,
bool hasFocus,
bool resetOverride =
false)
324 if (inputDevice == EInputDeviceType.MOUSE && hasFocus &&
m_bIsMouseInput)
330 if (inputDevice == EInputDeviceType.GAMEPAD)
336 if (inputDevice == EInputDeviceType.INVALID)
339 array<string> keyStack = {};
345 int index = keyStack.Count() - 1;
358 Print(
string.Format(
"No data found for %1 !! Check 'chimeraMapping.conf' and add data if necessary! Provided Actioname: %2.", keyCode,
m_sActionName),
LogLevel.ERROR);
412 m_bCanBeToggled =
false;
420 switch (filter.GetClassName())
422 case "InputFilterHold":
436 case "InputFilterHoldOnce":
450 case "InputFilterDoubleClick":
460 case "InputFilterPressed":
465 case "InputFilterToggle":
467 m_bCanBeToggled =
true;
470 case "InputFilterValue":
505 if (!comboIndicatorContainer)
514 if (comboIndicator && comboIndicatorShadow)
555 Print(
string.Format(
"%1 has no 'SCR_InputButtonDisplay' component attached!", component),
LogLevel.ERROR);
584 widget.RemoveFromHierarchy();
630 super.OnDoubleClick(w, x, y, button);
638 super.OnMouseEnter(w, x, y);
650 super.OnMouseLeave(w, enterW, x, y);
670 super.OnEnabled(animate);
848 if (!keyStack.IsIndexValid(
index))
852 string key = keyStack[
index];
896 array<BaseContainer> filteredm_aFilterStack = {};
898 for (
int i = count; i >= 0; i--)
901 filteredm_aFilterStack.Insert(m_aFilterStackIndex);
903 if (!m_aFilterStackIndex)
906 if (m_aFilterStackIndex.GetClassName() ==
"InputFilterHold" || m_aFilterStackIndex.GetClassName() ==
"InputFilterHoldOnce")
951 bool SetAction(
string action, EInputDeviceType currentInputDevice = -1,
bool forceUpdate =
false)
959 if (currentInputDevice < 0)
962 currentInputDevice = EInputDeviceType.KEYBOARD;
964 currentInputDevice = EInputDeviceType.GAMEPAD;
1038 EInputDeviceType currentDevice = EInputDeviceType.KEYBOARD;
1040 currentDevice = EInputDeviceType.GAMEPAD;
1165 EInputDeviceType currentDevice = EInputDeviceType.KEYBOARD;
1167 currentDevice = EInputDeviceType.GAMEPAD;
1203 w.SetWidthOverride(
size);
1204 w.SetHeightOverride(
size);
1205 LayoutSlot.SetPadding(w, paddingLeft, 0, paddingRight, 0);
ArmaReforgerScripted GetGame()
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
Get all prefabs that have the spawner data
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
ScriptInvokerBase< ScriptInvokerVoidMethod > ScriptInvokerVoid
Base class for all final Reforger interactive elements.
void PlaySound(string sound)
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
SCR_FieldOfViewSettings Attribute