11 [
Attribute(
"", UIWidgets.Object,
"Description",
"")]
12 ref array<ref SCR_KeyBindingCategory> m_KeyBindingCategories;
14 [
Attribute(
"", UIWidgets.Object,
"Input filters available",
"")]
15 ref array<ref SCR_KeyBindingFilter> m_aInputFilters;
17 [
Attribute(
"", UIWidgets.Object,
"Addition binds able to be manually bound",
"")]
18 ref array<ref SCR_KeyBindingBind> m_aInputBinds;
20 [
Attribute(
"", UIWidgets.Object,
"Keys that are available to be bound as combos i.e.: Ctrl, Shift",
"")]
21 ref array<ref SCR_KeyBindingCombo> m_aComboKeys;
27 override bool _WB_GetCustomTitle(BaseContainer source, out
string title)
30 int index = source.GetVarIndex(
"m_sActionName");
35 source.Get(
"m_sActionName", title);
36 if (title ==
"separator")
40 source.Get(
"m_sDisplayName", name);
45 title =
" - " + title;
49 source.Get(
"m_sPreset", preset);
52 if (!preset.IsEmpty())
53 title +=
" (" + preset +
")";
60 class SCR_KeyBindingEntry
62 [
Attribute(
"", UIWidgets.EditBox,
"Action name as defined in the ActionManager config")]
65 [
Attribute(
"", UIWidgets.EditBox,
"Name of gamepad action to be used instead of main one, for instance Aim has separate action for controller")]
66 string m_sActionNameGamepadOptional;
68 [
Attribute(
"", UIWidgets.LocaleEditBox,
"Visible name of the action, long texts are not supported, name shouldn't be over 15 characters ")]
71 [
Attribute(
"", UIWidgets.EditBox,
"Show only Action sources with this preset.\nUsed for example when multiple directions are mapped to one action, like moving forward with value +1 and backward with value -1.")]
74 [
Attribute(
"", UIWidgets.EditBox,
"Same as the Preset above, but this one should be filled only if it differs for the gamepad optional action.")]
75 string m_sPresetGamepadOptional;
77 [
Attribute(
SCR_Enum.GetDefault(SCR_EActionPrefixType.NON_CONTINUOUS), UIWidgets.ComboBox,
"Type of prefix that can be applied to this action",
"", ParamEnumArray.FromEnum(SCR_EActionPrefixType))]
78 SCR_EActionPrefixType m_ePrefixType;
84 [
Attribute(
"", UIWidgets.EditBox,
"Technical name of the category")]
87 [
Attribute(
"", UIWidgets.LocaleEditBox,
"Visible name of the category")]
90 [
Attribute(
"", UIWidgets.Object,
"Description",
"")]
91 ref array<ref SCR_KeyBindingEntry> m_KeyBindingEntries;
97 [
Attribute(
"", UIWidgets.Auto,
"Name of the filter use the same name as defined in enfusion",
"")]
98 string m_sFilterString;
100 [
Attribute(
"", UIWidgets.Auto,
"Display name of filter",
"")]
101 string m_sFilterDisplayName;
103 [
Attribute(
"0", UIWidgets.ComboBox,
"PrefixType",
"", ParamEnumArray.FromEnum(SCR_EActionPrefixType))]
104 SCR_EActionPrefixType m_eFilterType;
107 SCR_EActionPrefixType GetFilterType()
114 class SCR_KeyBindingBind
116 [
Attribute(
"", UIWidgets.Auto,
"Name of the bind use the same name as defined in enfusion",
"")]
117 string m_sBindString;
119 [
Attribute(
"", UIWidgets.Auto,
"Display name of bind",
"")]
120 string m_sBindDisplayName;
126 [
Attribute(
"", UIWidgets.Auto,
"Name of the combo bind, for instance keyboard:KC_LCONTROL",
"")]
127 string m_sComboString;
129 [
Attribute(
"", UIWidgets.Auto,
"Display name of combo",
"")]
130 string m_sComboDisplayName;
133 enum SCR_EActionPrefixType