120 m_MainWidget.SetUserData(
this);
133 return m_MainWidget.IsVisible();
324#ifdef PLATFORM_CONSOLE
329 GetMainWidget().GetScreenPos(
x,
y);
334 GetMainWidget().GetScreenPos(
x,
y);
382 if (
wpn.IsShowingChamberedBullet())
384 int mi =
wpn.GetCurrentMuzzle();
507#ifdef PLATFORM_CONSOLE
509 Inventory.GetInstance().UpdateConsoleToolbar();
579#ifdef PLATFORM_CONSOLE
616#ifdef PLATFORM_CONSOLE
617 string config =
"CfgVehicles " +
m_Obj.GetType() +
" GUIInventoryAttachmentsProps";
670 HideOwnedSlotsTooltip();
715 if (GetRoot().m_MainWidget.FindAnyWidget(
"HandsPanel"))
716 GetRoot().m_MainWidget.FindAnyWidget(
"HandsPanel").GetScreenSize(
icon_size,
y);
723 if (!
m_Item.GetInventory().GetFlipCargo())
void Inventory(LayoutHolder parent)
provides access to slot configuration
static proto native int GetStackMaxForSlotId(int slot_Id)
static ItemManager GetInstance()
static float GetItemQuantity(InventoryItem item)
static int HasItemQuantity(notnull EntityAI item)
static float GetItemQuantityMax(InventoryItem item)
static string GetItemQuantityText(EntityAI item, bool showMax=false)
Widget m_OutOfReachWidget
bool MouseEnter(Widget w, int x, int y)
void ClearRemainSelected()
override void SetLayoutName()
Widget GetSelectedPanel()
void UpdateFlip(bool flipped)
ItemPreviewWidget GetRender()
void OnIconDrag(Widget w)
Widget GetMicromanagedPanel()
Widget GetRadialIconClosed()
void Init(EntityAI obj, bool reservation=false)
void SetSlotID(int slot_ID)
Widget GetReservedWidget()
Widget GetQuantityPanel()
string GetSlotDisplayName()
bool MouseLeave(Widget w, Widget s, int x, int y)
static int m_NormalHeight
TextWidget m_ItemSizeWidget
bool MouseLeaveGhostSlot(Widget w, Widget s, int x, int y)
ProgressBarWidget m_QuantityProgress
void SetSlotDesc(string text)
Widget m_MicromanagedPanel
void CheckHasTemperature()
Widget GetQuantityStack()
TextWidget GetQuantityItem()
Widget GetItemSizePanel()
void SetSlotDisplayName(string text)
void OnIconDrop(Widget w)
ItemPreviewWidget m_ItemPreview
void SlotsIcon(LayoutHolder parent, Widget root, int index, EntityAI slot_parent)
static int GetNormalWidth()
override bool IsVisible()
static int GetNormalHeight()
Widget m_RadialIconClosed
ProgressBarWidget GetQuantityProgress()
Widget GetEmptySelectedPanel()
void SetSlotParent(EntityAI parent)
void SetContainer(Container container)
Widget m_EmptySelectedPanel
TextWidget m_QuantityItem
override void UpdateInterval()
Widget GetMountedWidget()
override void SetActive(bool active)
Widget GetOutOfReachWidget()
bool MouseEnterGhostSlot(Widget w, int x, int y)
Widget GetRadialIconPanel()
TextWidget GetItemSizeWidget()
ImageWidget GetGhostSlot()
proto native CGame GetGame()
const int QUANTITY_PROGRESS
const int QUANTITY_HIDDEN
static proto float Round(float f)
Returns mathematical round of value.
int ARGBF(float fa, float fr, float fg, float fb)
Converts <0.0, 1.0> ARGB into color.