8 protected int m_CurrentSettingKeyIndex = -1;
9 protected int m_CurrentSettingAlternateKeyIndex = -1;
38 return "gui/layouts/new_ui/options/keybindings_selectors/keybinding_group.layout";
50 m_KBDropdown.m_OnSelectItem.Insert(OnSelectKBPreset);
52 for (
int i = 0;
i <
input.GetProfilesCount();
i++)
87 Widget subgroup =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/options/keybindings_selectors/keybinding_subgroup.layout", parent);
108 if (m_KeyWidgets.Contains(
index))
109 m_KeyWidgets.Get(
index).Reload();
114 return (m_CurrentSettingKeyIndex != -1 || m_CurrentSettingAlternateKeyIndex != -1);
129 m_CurrentSettingAlternateKeyIndex = -1;
136 if (m_CurrentSettingKeyIndex != -1)
138 m_KeyWidgets.Get(m_CurrentSettingKeyIndex).CancelEnteringKeybind();
139 m_CurrentSettingKeyIndex = -1;
145 m_CurrentSettingKeyIndex = -1;
146 m_CurrentSettingAlternateKeyIndex =
key_index;
152 if (m_CurrentSettingAlternateKeyIndex != -1)
154 m_KeyWidgets.Get(m_CurrentSettingAlternateKeyIndex).CancelEnteringAlternateKeybind();
155 m_CurrentSettingAlternateKeyIndex = -1;
199 if (
element.IsAlternateChanged())
203 if (
input.AlternativeCount() == 0)
204 input.AddAlternative();
245 if (m_CurrentSettingKeyIndex != -1 || m_CurrentSettingAlternateKeyIndex != -1)
248 if (
ua_api.DeterminePressedButton() != 0)
257 for (
int i = 0;
i <
ua_api.DeterminedCount(); ++
i)
266 if (m_CurrentSettingKeyIndex != -1)
269 m_KeyWidgets.Get(m_CurrentSettingKeyIndex).Reload(
new_keybinds,
false);
270 m_CurrentSettingKeyIndex = -1;
272 else if (m_CurrentSettingAlternateKeyIndex != -1)
275 m_KeyWidgets.Get(m_CurrentSettingAlternateKeyIndex).Reload(
new_keybinds,
true);
276 m_CurrentSettingAlternateKeyIndex = -1;
285 m_KBDropdown.Close();
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
ServerBrowserMenuNew m_Menu
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()