20 GetGame().GetDragQueue().RemoveCalls(
this);
23 GetGame().GetMission().GetHud().ShowHudUI(
true);
24 GetGame().GetMission().GetHud().ShowQuickbarUI(
true);
31 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/inventory_new/day_z_inventory_new_inspect.layout");
42 switch (
w.GetUserID())
57 InspectMenuNew.UpdateItemInfo(layoutRoot,
item);
78 if (
w == m_item_widget)
80 GetGame().GetDragQueue().Call(
this,
"UpdateRotation");
81 GetMousePos(m_characterRotationX, m_characterRotationY);
91 o[0] =
o[0] + (m_characterRotationY -
mouse_y);
92 o[1] =
o[1] - (m_characterRotationX -
mouse_x);
97 m_characterOrientation =
o;
105 if (
w == m_item_widget)
107 m_characterScaleDelta =
wheel;
117 m_item_widget.GetPos(
x,
y);
118 m_item_widget.GetSize(
w,
h);
119 w =
w + (m_characterScaleDelta / 4);
120 h =
h + (m_characterScaleDelta / 4);
121 if (
w > 0.5 &&
w < 3)
123 m_item_widget.SetSize(
w,
h);
128 float new_x =
x - (m_characterScaleDelta / 8);
129 float new_y =
y - (m_characterScaleDelta / 8);
368 if (
item.ConfigGetString(
"stackedUnit") ==
"pc.")
375 else if (
item.ConfigGetString(
"stackedUnit") ==
"percentage")
382 else if (
item.ConfigGetString(
"stackedUnit") ==
"g")
389 else if (
item.ConfigGetString(
"stackedUnit") ==
"ml")
434 if (!
item.CanDisplayWeight())
514 if (
ib &&
ib.m_Cleanness == 1)
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
static string GetBloodTypeName(int bloodtype, out string type, out bool positive)
Super root of all classes in Enforce script.
const int COLOR_BADLY_DAMAGED
const int COLOR_SOAKING_WET
proto native CGame GetGame()
const float HEATISO_THRESHOLD_HIGH
const float HEATISO_THRESHOLD_MEDIUM
const float HEATISO_THRESHOLD_BAD
const float HEATISO_THRESHOLD_LOW
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
const int STATE_BADLY_DAMAGED
const float STATE_SOAKING_WET
const float STATE_DRENCHED
const int LIQUID_DISINFECTANT
const int LIQUID_GASOLINE
const int LIQUID_RIVERWATER
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
static proto float Floor(float f)
Returns floor of value.
static proto float Round(float f)
Returns mathematical round of value.
proto void GetScreenSize(out int x, out int y)
proto void GetMousePos(out int x, out int y)