109 const string RADIAL_TEXT =
"RadialText";
110 const string GESTURE_TEXT =
"GestureNameText";
111 const string INPUT_TEXT =
"InputActionText";
112 const string CATEGORY_NAME =
"CategoryName";
139 GetGame().GetMission().RemoveActiveInputExcludes({
"radialmenu"},
false);
154 instance.OnMenuRelease();
156 GetGame().GetUIManager().Back();
163#ifdef PLATFORM_CONSOLE
173 m_CurrentCategory = -1;
175 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/radial_menu/radial_gestures/day_z_gestures.layout");
176 m_GestureItemCardPanel = layoutRoot.FindAnyWidget(
RadialMenu.RADIAL_ITEM_CARD_CONTAINER);
182 RadialMenu.GetInstance().SetWidgetInitialized(
false);
185 RadialMenu.GetInstance().SetWidgetProperties(
"gui/layouts/radial_menu/radial_gestures/day_z_gesture_delimiter.layout");
190 m_ToolbarPanel = layoutRoot.FindAnyWidget(
"toolbar_bg");
191 m_ToolbarPanel.Show(
true);
194 UpdateCategoryName(
"");
208 hud.ShowQuickbarUI(
false);
212 m_IsMenuClosing =
false;
224 hud.ShowQuickbarUI(
true);
227 m_IsMenuClosing =
true;
266 for (
int i = 0;
i < m_GestureItems.Count();
i++)
267 UpdateQuickbarItemCard(m_GestureItems[
i]);
274 if (
player && m_CurrentCategory != -1)
295 m_CurrentCategory = -1;
296 instance.m_IsCategorySelected =
false;
299 CreateGestureContent();
377 DeleteGestureItems();
379 for (
int i = 0;
i < m_GestureItems.Count(); ++
i)
395 if (m_GestureItems.Count() > 0)
441 child = m_GestureItemCardPanel.GetChildren();
456 if (!m_CategoryNameText)
457 m_CategoryNameText =
TextWidget.Cast(layoutRoot.FindAnyWidget(CATEGORY_NAME));
459 m_CategoryNameText.SetText(
name);
488 if (instance.m_IsCategorySelected)
489 ExecuteSelectedItem();
491 ExecuteSelectedCategory(
w);
517 if (instance.m_IsCategorySelected)
518 ExecuteSelectedItem();
520 ExecuteSelectedCategory(
w);
531 instance.m_SelectedItem =
w;
552 instance.m_SelectedItem =
NULL;
583 instance.m_IsCategorySelected =
true;
587 CreateGestureContent();
602 if (instance.m_IsCategorySelected && instance.m_SelectedItem)
604 if (!
GetGame().IsDedicatedServer())
613 if (
player.GetEmoteManager())
624 UpdateCategoryName(
"");
629 return m_IsMenuClosing;
634 m_IsMenuClosing =
state;
void OnInputPresetChanged()
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
int GetID()
Get the ID registered in SEffectManager.
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Super root of all classes in Enforce script.
string GetInputActionName()
proto native CGame GetGame()
const int ID_EMOTE_LOOKATME
const int ID_EMOTE_TIMEOUT
const int ID_EMOTE_CAMPFIRE
const int ID_EMOTE_SURRENDER
const int ID_EMOTE_FACEPALM
const int ID_EMOTE_SILENT
const int ID_EMOTE_POINTSELF
const int ID_EMOTE_LISTENING
const int ID_EMOTE_WATCHING
const int ID_EMOTE_GREETING
const int ID_EMOTE_THROAT
const int ID_EMOTE_SUICIDE
const int ID_EMOTE_TAUNTTHINK
const int ID_EMOTE_SALUTE
const int ID_EMOTE_LYINGDOWN
const int ID_EMOTE_TAUNTKISS
const int ID_EMOTE_THUMBDOWN
const int ID_EMOTE_TAUNTELBOW
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
string m_Category
folder structure eg. StaticEntities/Walls
int ARGB(int a, int r, int g, int b)