97 const string TEXT_ITEM_NAME =
"ItemName";
98 const string TEXT_ITEM_TITLE =
"ItemTitle";
124 GetGame().GetMission().RemoveActiveInputExcludes({
"radialmenu"},
false);
130 m_ItemToAssign =
item;
135 return m_ItemToAssign;
145#ifdef PLATFORM_CONSOLE
160 GetGame().GetUIManager().Back();
169 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/radial_menu/radial_quickbar/radial_quickbar_menu.layout");
170 m_ItemCardPanel = layoutRoot.FindAnyWidget(
RadialMenu.RADIAL_ITEM_CARD_CONTAINER);
176 RadialMenu.GetInstance().SetWidgetInitialized(
false);
179 RadialMenu.GetInstance().SetWidgetProperties(
"gui/layouts/radial_menu/radial_quickbar/radial_quickbar_delimiter.layout");
187 m_ToolbarPanel = layoutRoot.FindAnyWidget(
"toolbar_bg");
188 m_ToolbarPanel.Show(
true);
202 hud.ShowQuickbarUI(
false);
206 m_IsMenuClosing =
false;
218 hud.ShowQuickbarUI(
true);
222 RadialQuickbarMenu.SetItemToAssign(
NULL);
223 m_IsMenuClosing =
true;
264 if (instance.m_SelectedItem)
294 CheckForLightsAndNVG(m_Items,
i);
334 if (
headgear.GetInventory().AttachmentCount() > 0)
337 for (
int i = 0;
i <
headgear.GetInventory().AttachmentCount();
i++)
364 for (
int i = 0;
i < m_Items.Count(); ++
i)
371 Widget item_card_widget =
Widget.Cast(
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/radial_menu/radial_quickbar/radial_quickbar_item_card.layout", m_ItemCardPanel));
450 int max =
item.ConfigGetInt(
"varQuantityMax");
493 child = m_ItemCardPanel.GetChildren();
605 m_SelectedItem =
NULL;
635 if (instance.m_SelectedItem)
637 if (!
GetGame().IsDedicatedServer())
647 if (GetItemToAssign())
651 player.RemoveQuickBarEntityShortcut(GetItemToAssign());
689 if (!
GetGame().IsDedicatedServer())
726 if (Headtorch_ColorBase.Cast(
item))
757 return m_IsMenuClosing;
762 m_IsMenuClosing =
state;
void OnInputPresetChanged()
DetachActionData m_ItemName
class ActionTargets ActionTarget
class GetServerModListResult m_Id
GetServersResultRow the output structure of the GetServers operation that represents one game server.
Super root of all classes in Enforce script.
static float GetItemQuantity(InventoryItem item)
static int HasItemQuantity(notnull EntityAI item)
static string GetItemQuantityText(EntityAI item, bool showMax=false)
proto native CGame GetGame()
const int QUANTITY_PROGRESS
const int QUANTITY_HIDDEN
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
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
static proto float Round(float f)
Returns mathematical round of value.