38#ifndef PLATFORM_CONSOLE
52#ifdef PLATFORM_CONSOLE
53 m_TooltipWidget =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/inventory_new/day_z_inventory_new_tooltip_xbox.layout",
root);
56 m_TooltipWidget =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/inventory_new/day_z_inventory_new_tooltip.layout",
root);
66 Inventory.GetInstance().UpdateConsoleToolbar();
125 sIcon.GetMicromanagedPanel().Show(
false);
127 icon.GetMicromanagedPanel().Show(
false);
138 sIcon.GetMicromanagedPanel().Show(
true);
143 icon.GetMicromanagedPanel().Show(
true);
182 GetGame().GetProfileString(
"defaultOpenStateHands",
value);
455 name.Replace(
"Render",
"Temperature");
516 else if (
x == 0 &&
y == 0 &&
GetGame().
GetInput().IsEnabledMouseAndKeyboardEvenOnServer())
575#ifndef PLATFORM_CONSOLE
void Inventory(LayoutHolder parent)
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
InventoryLocationType
types of Inventory Location
PluginBase GetPlugin(typename plugin_type)
Super root of all classes in Enforce script.
static ColorManager GetInstance()
const int COLOR_BADLY_DAMAGED
script counterpart to engine's class Inventory
static bool CanSwapEntitiesEx(notnull EntityAI item1, notnull EntityAI item2)
static bool CanForceSwapEntitiesEx(notnull EntityAI item1, InventoryLocation item1_dst, notnull EntityAI item2, out InventoryLocation item2_dst)
static const int PERFORM_ACTION
static const int ADD_AS_CARGO
static const int SWAP_MAGAZINE
static const int SET_ACTION
static const int ADD_AS_ATTACHMENT
static const int COMBINE_QUANTITY2
static ref ItemManager m_Instance
ref map< string, bool > m_DefautHeaderOpenStates
bool GetDefaultHeaderOpenState(string type)
static int GetItemHealthColor(EntityAI item, string zone="")
void SerializeDefaultHeaderOpenStates()
void CalculateTooltipSlotPosition(int x=0, int y=0)
const float TOOLTIP_DELAY
void SetTemperature(EntityAI item, Widget item_w)
static int GetCombinationFlags(EntityAI entity1, EntityAI entity2)
void SetItemMicromanagmentMode(bool item_micromanagment_mode)
int m_HandsDefaultOpenState
void ClearDefaultOpenStates()
ref map< string, bool > m_DefautOpenStates
ref Widget m_TooltipSlotWidget
EntityAI GetDraggedItem()
void SetSelectedItemEx(EntityAI selected_item, Container selected_container, LayoutHolder selected_icon)
static int ColorFromFloat(float fraction)
Widget GetCenterDropzone()
EntityAI GetHoveredItem()
void ClearDefaultHeaderOpenStates()
HandsPreview GetHandsPreview()
void ShowSourceDropzone(EntityAI item)
void DeserializeDefaultHeaderOpenStates()
void SetDefaultHeaderOpenState(string type, bool is_opened)
Container GetSelectedContainer()
bool EvaluateContainerDragabilityDefault(EntityAI entity)
SlotsIcon GetSelectedIcon()
HandsPreview m_HandsPreview
ref Widget m_TooltipWidget
Widget m_TooltipSourceWidget
void SetIconTemperature(EntityAI item, Widget item_w)
void SetHandsPreview(HandsPreview hansd_preview)
void SetDraggedItem(EntityAI dragged_item)
ref Timer m_TooltipSlotTimer
void SerializeDefaultOpenStates()
ref Widget m_TooltipCategoryWidget
Widget GetSelectedWidget()
EntityAI GetSelectedItem()
Widget GetRightDropzone()
void PrepareTooltip(EntityAI item, int x=0, int y=0)
static int GetItemHealthColor(int pHealthLevel)
Container m_SelectedContainer
void DeserializeDefaultOpenStates()
bool IsMicromanagmentMode()
void SetWidgetDraggable(Widget w, bool draggable)
ItemPreviewWidget m_ItemPreviewWidget
static int GetRecipeCount(bool recipe_anywhere, EntityAI entity1, EntityAI entity2)
void SetDraggedIcon(Icon dragged_icon)
void SetIsDragging(bool is_dragging)
void SetDefaultOpenStateHands(bool is_opened)
void PrepareSlotsTooltip(string name, string desc, int x=0, int y=0)
position is currentlycalculated from the owning 'm_TooltipSourceWidget' directly
void SetTooltipWidget(Widget w)
bool m_ItemMicromanagmentMode
LayoutHolder m_SelectedBaseIcon
bool GetDefaultOpenStateHands()
void UpdateTooltipSlotPosition()
void ItemManager(Widget root)
static int GetChosenCombinationFlag(EntityAI selectedEntity, EntityAI targetEntity, int relevantFlags, out InventoryLocation dst=null)
bool GetDefaultOpenState(string type)
static ItemManager GetInstance()
void SetSelectedItem(EntityAI selected_item, Container selected_container, Widget selected_widget, SlotsIcon selected_icon)
void SetDefaultOpenState(string type, bool is_opened)
static int GetNormalWidth()
static int GetNormalHeight()
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
array< string > TStringArray
const int STATE_BADLY_DAMAGED
proto void GetScreenSize(out int x, out int y)
proto void GetMousePos(out int x, out int y)