Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
inspectmenunew.c
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 class InspectMenuNew extends UIScriptedMenu
3 {
4  private ItemPreviewWidget m_item_widget;
5  private ItemPreviewWidget m_slot_widget;
6  private int m_characterRotationX;
7  private int m_characterRotationY;
8  private int m_characterScaleDelta;
9  private vector m_characterOrientation;
10 
11 
12  void InspectMenuNew()
13  {
14 
15  }
16 
17  //--------------------------------------------------------------------------
18  void ~InspectMenuNew()
19  {
20  GetGame().GetDragQueue().RemoveCalls(this);
21  if (GetGame().GetMission())
22  {
23  GetGame().GetMission().GetHud().ShowHudUI( true );
24  GetGame().GetMission().GetHud().ShowQuickbarUI( true );
25  }
26  }
27 
28  //--------------------------------------------------------------------------
29  override Widget Init()
30  {
31  layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/inventory_new/day_z_inventory_new_inspect.layout");
32 
33 
34  return layoutRoot;
35  }
36 
37  //--------------------------------------------------------------------------
38  override bool OnClick(Widget w, int x, int y, int button)
39  {
40  super.OnClick(w, x, y, button);
41 
42  switch (w.GetUserID())
43  {
44  case IDC_CANCEL:
45  Close();
46  return true;
47  }
48 
49  return false;
50  }
51 
52  //--------------------------------------------------------------------------
53  void SetItem(EntityAI item)
54  {
55  if (item)
56  {
57  InspectMenuNew.UpdateItemInfo(layoutRoot, item);
58 
59  if (!m_item_widget)
60  {
61  Widget preview_frame = layoutRoot.FindAnyWidget("ItemFrameWidget");
62  if (preview_frame)
63  {
64  m_item_widget = ItemPreviewWidget.Cast( preview_frame );
65  }
66  }
67 
68  m_item_widget.SetItem(item);
69  m_item_widget.SetView( item.GetViewIndex() );
70  m_item_widget.SetModelPosition(Vector(0,0,1));
71  PPERequesterBank.GetRequester(PPERequester_InventoryBlur).Start();
72  }
73  }
74 
75  //--------------------------------------------------------------------------
76  override bool OnMouseButtonDown(Widget w, int x, int y, int button)
77  {
78  super.OnMouseButtonDown(w, x, y, button);
79 
80  if (w == m_item_widget)
81  {
82  GetGame().GetDragQueue().Call(this, "UpdateRotation");
83  GetMousePos(m_characterRotationX, m_characterRotationY);
84  return true;
85  }
86  return false;
87  }
88 
89  //--------------------------------------------------------------------------
90  void UpdateRotation(int mouse_x, int mouse_y, bool is_dragging)
91  {
92  vector o = m_characterOrientation;
93  o[0] = o[0] + (m_characterRotationY - mouse_y);
94  o[1] = o[1] - (m_characterRotationX - mouse_x);
95 
96  m_item_widget.SetModelOrientation( o );
97 
98  if (!is_dragging)
99  {
100  m_characterOrientation = o;
101  }
102  }
103 
104  //--------------------------------------------------------------------------
105  override bool OnMouseWheel(Widget w, int x, int y, int wheel)
106  {
107  super.OnMouseWheel(w, x, y, wheel);
108 
109  if ( w == m_item_widget )
110  {
111  m_characterScaleDelta = wheel;
112  UpdateScale();
113  }
114  return false;
115  }
116 
117  //--------------------------------------------------------------------------
118  void UpdateScale()
119  {
120  float w, h, x, y;
121  m_item_widget.GetPos(x, y);
122  m_item_widget.GetSize(w,h);
123  w = w + ( m_characterScaleDelta / 4);
124  h = h + ( m_characterScaleDelta / 4 );
125  if ( w > 0.5 && w < 3 )
126  {
127  m_item_widget.SetSize( w, h );
128 
129  // align to center
130  int screen_w, screen_h;
131  GetScreenSize(screen_w, screen_h);
132  float new_x = x - ( m_characterScaleDelta / 8 );
133  float new_y = y - ( m_characterScaleDelta / 8 );
134  m_item_widget.SetPos( new_x, new_y );
135  }
136  }
137  //--------------------------------------------------------------------------
138  static void UpdateItemInfo(Widget root_widget, EntityAI item)
139  {
140  if (!root_widget || !item) return;
141 
142  Widget panelInfo = root_widget.FindAnyWidget("InventoryInfoPanelWidget");
143  if ( panelInfo )
144  {
145  if ( item.IsInherited( ZombieBase ) || item.IsInherited( Car ) )
146  {
147  panelInfo.Show( false );
148  }
149  else
150  {
151  panelInfo.Show( true );
152  }
153  }
154 
155  if ( !item.IsInherited( ZombieBase ) && !item.IsInherited( Car ) )
156  {
157  InventoryItem iItem = InventoryItem.Cast( item );
158  WidgetTrySetText(root_widget, "ItemDescWidget", iItem.GetTooltip());
159  }
160 
161  WidgetTrySetText(root_widget, "ItemNameWidget", item.GetDisplayName());
162  InspectMenuNew.UpdateItemInfoDamage(root_widget, item);
163  InspectMenuNew.UpdateItemInfoLiquidType(root_widget, item);
164  InspectMenuNew.UpdateItemInfoTemperature(root_widget, item);
165  InspectMenuNew.UpdateItemInfoWetness(root_widget, item);
166  InspectMenuNew.UpdateItemInfoQuantity(root_widget, item);
167  InspectMenuNew.UpdateItemInfoWeight(root_widget, item);
168  InspectMenuNew.UpdateItemInfoFoodStage(root_widget, item);
169  InspectMenuNew.UpdateItemInfoCleanness(root_widget, item);
170 
171  Widget content = root_widget.FindAnyWidget("InventoryInfoPanelWidget");
172  }
173 
174  //--------------------------------------------------------------------------
175  static void UpdateSlotInfo(Widget root_widget, string name, string desc = "")
176  {
177  if (!root_widget ) return;
178 
179  WidgetTrySetText(root_widget, "ItemNameWidget", name);
180  }
181 
182  //--------------------------------------------------------------------------
183  static void UpdateItemInfoDamage(Widget root_widget, EntityAI item)
184  {
185  if ( item.IsInherited( ZombieBase ) || item.IsInherited( Car ) ) return;
186 
187  int damageLevel = item.GetHealthLevel();
188 
189  switch(damageLevel)
190  {
191  case GameConstants.STATE_RUINED:
192  {
193  WidgetTrySetText(root_widget, "ItemDamageWidget", "#inv_inspect_ruined", Colors.COLOR_RUINED);
194  break;
195  }
196  case GameConstants.STATE_BADLY_DAMAGED:
197  {
198  WidgetTrySetText(root_widget, "ItemDamageWidget", "#inv_inspect_badly", Colors.COLOR_BADLY_DAMAGED);
199  break;
200  }
201 
202  case GameConstants.STATE_DAMAGED:
203  {
204  WidgetTrySetText(root_widget, "ItemDamageWidget", "#inv_inspect_damaged", Colors.COLOR_DAMAGED);
205  break;
206  }
207 
208  case GameConstants.STATE_WORN:
209  {
210  WidgetTrySetText(root_widget, "ItemDamageWidget", "#inv_inspect_worn", Colors.COLOR_WORN);
211  break;
212  }
213 
214  case GameConstants.STATE_PRISTINE:
215  {
216  WidgetTrySetText(root_widget, "ItemDamageWidget", "#inv_inspect_pristine", Colors.COLOR_PRISTINE);
217  break;
218  }
219 
220  default:
221  {
222  WidgetTrySetText(root_widget, "ItemDamageWidget", "ERROR", Colors.COLOR_PRISTINE);
223  break;
224  }
225  }
226 
227  }
228 
229  //--------------------------------------------------------------------------
230  static void UpdateItemInfoLiquidType(Widget root_widget, EntityAI item)
231  {
232  if ( item.IsInherited( ZombieBase ) || item.IsInherited( Car ) ) return;
233 
234  ItemBase item_base = ItemBase.Cast( item );
235 
236  if( item_base && item_base.GetQuantity() > 0 && item_base.IsBloodContainer() )
237  {
238  BloodContainerBase blood_container = BloodContainerBase.Cast( item_base );
239 
240  if( blood_container.GetBloodTypeVisible() )
241  {
242  string type;
243  bool positive;
244  string blood_type_name = BloodTypes.GetBloodTypeName(blood_container.GetLiquidType(), type, positive);
245  WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_blood: " + blood_type_name, Colors.COLOR_LIQUID);
246  }
247  else
248  {
249  WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_blood", Colors.COLOR_LIQUID);
250  }
251  }
252  else if( item_base && item_base.GetQuantity() > 0 && item_base.IsLiquidContainer() )
253  {
254  int liquid_type = item_base.GetLiquidType();
255 
256  switch(liquid_type)
257  {
258  case LIQUID_WATER:
259  {
260  WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_water", Colors.COLOR_LIQUID);
261  break;
262  }
263 
264  case LIQUID_RIVERWATER:
265  {
266  WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_river_water", Colors.COLOR_LIQUID);
267  break;
268  }
269 
270  case LIQUID_VODKA:
271  {
272  WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_vodka", Colors.COLOR_LIQUID);
273  break;
274  }
275 
276  case LIQUID_BEER:
277  {
278  WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_beer", Colors.COLOR_LIQUID);
279  break;
280  }
281 
282  case LIQUID_GASOLINE:
283  {
284  WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_gasoline", Colors.COLOR_LIQUID);
285  break;
286  }
287 
288  case LIQUID_DIESEL:
289  {
290  WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_diesel", Colors.COLOR_LIQUID);
291  break;
292  }
293 
294  case LIQUID_DISINFECTANT:
295  {
296  WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_disinfectant", Colors.COLOR_LIQUID);
297  break;
298  }
299 
300  case LIQUID_SALINE:
301  {
302  WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_saline", Colors.COLOR_LIQUID);
303  break;
304  }
305 
306  default:
307  {
308  WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "ERROR", Colors.COLOR_LIQUID);
309  break;
310  }
311  }
312  }
313  else
314  {
315  WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "");
316  }
317  }
318 
319  //--------------------------------------------------------------------------
320  static void UpdateItemInfoTemperature(Widget root_widget, EntityAI item)
321  {
322  if ( item.IsInherited( ZombieBase ) || item.IsInherited( Car ) ) return;
323  float temperature;
324  ItemBase item_base = ItemBase.Cast( item );
325  if( item_base )
326  {
327  temperature = item_base.GetTemperature();
328  }
329 
330  if( temperature > 30 )
331  {
332  if ( temperature > 100 )
333  {
334  temperature = 100 * Math.Floor( temperature / 100.0 );
335  }
336  else
337  {
338  temperature = 10 * Math.Floor( temperature / 10.0 );
339  }
340  WidgetTrySetText(root_widget, "ItemTemperatureWidget", "#inv_inspect_about " + temperature.ToString() + " " + "#inv_inspect_celsius", GetTemperatureColor( temperature ) );
341  }
342  else
343  {
344  WidgetTrySetText(root_widget, "ItemTemperatureWidget", "");
345  }
346  }
347 
348  //--------------------------------------------------------------------------
349  static void UpdateItemInfoWetness(Widget root_widget, EntityAI item)
350  {
351  if ( item.IsInherited( ZombieBase ) || item.IsInherited( Car ) ) return;
352  float wetness = 0;
353 
354  if ( item.IsInherited(ItemBase) )
355  {
356  ItemBase item_IB = ItemBase.Cast( item );
357  wetness = item_IB.GetWet();
358  }
359 
360  if( wetness < GameConstants.STATE_DAMP )
361  {
362  WidgetTrySetText(root_widget, "ItemWetnessWidget", "");
363  }
364  else if( wetness >= GameConstants.STATE_DAMP && wetness < GameConstants.STATE_WET )
365  {
366  WidgetTrySetText(root_widget, "ItemWetnessWidget", "#inv_inspcet_damp", Colors.COLOR_DAMP);
367  }
368  else if( wetness >= GameConstants.STATE_WET && wetness < GameConstants.STATE_SOAKING_WET )
369  {
370  WidgetTrySetText( root_widget, "ItemWetnessWidget", "#inv_inspect_wet", Colors.COLOR_WET );
371  }
372  else if( wetness >= GameConstants.STATE_SOAKING_WET && wetness < GameConstants.STATE_DRENCHED )
373  {
374  WidgetTrySetText( root_widget, "ItemWetnessWidget", "#inv_inspect_soaking_wet", Colors.COLOR_SOAKING_WET );
375  }
376  else
377  {
378  WidgetTrySetText( root_widget, "ItemWetnessWidget", "#inv_inspect_drenched", Colors.COLOR_DRENCHED );
379  }
380  }
381 
382  //--------------------------------------------------------------------------
383  static void UpdateItemInfoQuantity(Widget root_widget, EntityAI item)
384  {
385  if ( item.IsInherited( ZombieBase ) || item.IsInherited( Car ) ) return;
386 
387  ItemBase item_base = ItemBase.Cast( item );
388  if( item_base )
389  {
390  float item_quantity = item_base.GetQuantity();
391  int max_quantity = item.GetQuantityMax();
392 
393  float quantity_ratio;
394 
395  if( max_quantity > 0 && !item.IsInherited( ClothingBase )) // Some items, like books, have max_quantity set to 0 => division by ZERO error in quantity_ratio
396  {
397  string quantity_str;
398  if( item.ConfigGetString("stackedUnit") == "pc." )
399  {
400  if( item_quantity == 1 )
401  {
402  WidgetTrySetText( root_widget, "ItemQuantityWidget", item_quantity.ToString() + " " + "#inv_inspect_piece", Colors.COLOR_DEFAULT );
403  }
404  else
405  {
406  WidgetTrySetText( root_widget, "ItemQuantityWidget", item_quantity.ToString() + " " + "#inv_inspect_pieces", Colors.COLOR_DEFAULT );
407  }
408  }
409  else if( item.ConfigGetString("stackedUnit") == "percentage" )
410  {
411  quantity_ratio = Math.Round( ( item_quantity / max_quantity ) * 100 );
412 
413  quantity_str = "#inv_inspect_remaining " + quantity_ratio.ToString() + "#inv_inspect_percent";
414  WidgetTrySetText( root_widget, "ItemQuantityWidget", quantity_str, Colors.COLOR_DEFAULT );
415  }
416  else if( item.ConfigGetString("stackedUnit") == "g" )
417  {
418  quantity_ratio = Math.Round( ( item_quantity / max_quantity ) * 100 );
419 
420  quantity_str = "#inv_inspect_remaining " + quantity_ratio.ToString() + "#inv_inspect_percent";
421  WidgetTrySetText( root_widget, "ItemQuantityWidget", quantity_str, Colors.COLOR_DEFAULT );
422  }
423  else if( item.ConfigGetString("stackedUnit") == "ml" )
424  {
425  quantity_ratio = Math.Round( ( item_quantity / max_quantity ) * 100 );
426 
427  quantity_str = "#inv_inspect_remaining " + quantity_ratio.ToString() + "#inv_inspect_percent";
428  WidgetTrySetText( root_widget, "ItemQuantityWidget", quantity_str, Colors.COLOR_DEFAULT );
429  }
430  else if( item.IsInherited( Magazine ) )
431  {
432  Magazine magazine_item;
433  Class.CastTo(magazine_item, item);
434 
435  if( magazine_item.GetAmmoCount() == 1 )
436  {
437  WidgetTrySetText( root_widget, "ItemQuantityWidget", magazine_item.GetAmmoCount().ToString() + " " + "#inv_inspect_piece", Colors.COLOR_DEFAULT );
438  }
439  else
440  {
441  WidgetTrySetText( root_widget, "ItemQuantityWidget", magazine_item.GetAmmoCount().ToString() + " " + "#inv_inspect_pieces", Colors.COLOR_DEFAULT );
442  }
443  }
444  else
445  {
446  WidgetTrySetText( root_widget, "ItemQuantityWidget", "" );
447  }
448  }
449  else
450  {
451  if ( item.IsInherited( ClothingBase ) )
452  {
453  float heatIsolation = MiscGameplayFunctions.GetCurrentItemHeatIsolation( item_base );
454  if ( heatIsolation <= GameConstants.HEATISO_THRESHOLD_BAD )
455  {
456  WidgetTrySetText( root_widget, "ItemQuantityWidget", "#inv_inspect_iso_bad", GetTemperatureColor( 10 ) );
457  }
458  else if ( ( heatIsolation > GameConstants.HEATISO_THRESHOLD_BAD ) && ( heatIsolation <= GameConstants.HEATISO_THRESHOLD_LOW ) )
459  {
460  WidgetTrySetText( root_widget, "ItemQuantityWidget", "#inv_inspect_iso_low", GetTemperatureColor( 20 ) );
461  }
462  else if ( ( heatIsolation > GameConstants.HEATISO_THRESHOLD_LOW ) && ( heatIsolation <= GameConstants.HEATISO_THRESHOLD_MEDIUM ) )
463  {
464  WidgetTrySetText( root_widget, "ItemQuantityWidget", "#inv_inspect_iso_medium", GetTemperatureColor( 30 ) );
465  }
466  else if ( ( heatIsolation > GameConstants.HEATISO_THRESHOLD_MEDIUM ) && ( heatIsolation <= GameConstants.HEATISO_THRESHOLD_HIGH ) )
467  {
468  WidgetTrySetText( root_widget, "ItemQuantityWidget", "#inv_inspect_iso_high", GetTemperatureColor( 50 ) );
469  }
470  else
471  {
472  WidgetTrySetText( root_widget, "ItemQuantityWidget", "#inv_inspect_iso_excel", GetTemperatureColor( 70 ) );
473  }
474  }
475  else
476  {
477  WidgetTrySetText( root_widget, "ItemQuantityWidget", "" );
478  }
479  }
480  }
481  }
482 
483  //--------------------------------------------------------------------------
484  static void UpdateItemInfoWeight(Widget root_widget, EntityAI item)
485  {
486  if (!item.CanDisplayWeight())
487  {
488  WidgetTrySetText(root_widget, "ItemWeightWidget", "", Colors.COLOR_DEFAULT);
489  return;
490  }
491 
492  ItemBase item_IB = ItemBase.Cast( item );
493  if( item_IB )
494  {
495  int weight = item_IB.GetWeightEx();
496 
497  if (root_widget.GetName() != "BackPanelWidget")
498  {
499  weight = item_IB.GetSingleInventoryItemWeightEx();
500  }
501 
502  if (weight >= 1000)
503  {
504  int kilos = Math.Round(weight / 1000.0);
505  WidgetTrySetText(root_widget, "ItemWeightWidget", "#inv_inspect_about" + " " + kilos.ToString() + " " + "#inv_inspect_kg", Colors.COLOR_DEFAULT);
506  }
507  else if (weight >= 500)
508  {
509  WidgetTrySetText(root_widget, "ItemWeightWidget", "#inv_inspect_under_1", Colors.COLOR_DEFAULT);
510  }
511  else if (weight >= 250)
512  {
513  WidgetTrySetText(root_widget, "ItemWeightWidget", "#inv_inspect_under_05", Colors.COLOR_DEFAULT);
514  }
515  else
516  {
517  WidgetTrySetText(root_widget, "ItemWeightWidget", "#inv_inspect_under_025", Colors.COLOR_DEFAULT);
518  }
519  }
520  }
521 
522  //--------------------------------------------------------------------------
523  static void UpdateItemInfoFoodStage(Widget root_widget, EntityAI item)
524  {
525  Edible_Base food_item = Edible_Base.Cast( item );
526  if ( food_item && food_item.HasFoodStage() )
527  {
528  ref FoodStage food_stage = food_item.GetFoodStage();
529  FoodStageType food_stage_type = food_stage.GetFoodStageType();
530 
531  switch( food_stage_type )
532  {
533  case FoodStageType.RAW:
534  {
535  WidgetTrySetText( root_widget, "ItemFoodStageWidget", "#inv_inspect_raw", Colors.COLOR_RAW );
536  break;
537  }
538  case FoodStageType.BAKED:
539  {
540  WidgetTrySetText( root_widget, "ItemFoodStageWidget", "#inv_inspect_baked", Colors.COLOR_BAKED );
541  break;
542  }
543  case FoodStageType.BOILED:
544  {
545  WidgetTrySetText( root_widget, "ItemFoodStageWidget", "#inv_inspect_boiled", Colors.COLOR_BOILED );
546  break;
547  }
548  case FoodStageType.DRIED:
549  {
550  WidgetTrySetText( root_widget, "ItemFoodStageWidget", "#inv_inspect_dried", Colors.COLOR_DRIED );
551  break;
552  }
553  case FoodStageType.BURNED:
554  {
555  WidgetTrySetText( root_widget, "ItemFoodStageWidget", "#inv_inspect_burned", Colors.COLOR_BURNED );
556  break;
557  }
558  case FoodStageType.ROTTEN:
559  {
560  WidgetTrySetText( root_widget, "ItemFoodStageWidget", "#inv_inspect_rotten", Colors.COLOR_ROTTEN );
561  break;
562  }
563  }
564  }
565  else
566  {
567  WidgetTrySetText( root_widget, "ItemFoodStageWidget", "" );
568  }
569  }
570 
571 
572  //--------------------------------------------------------------------------
573  static void UpdateItemInfoCleanness(Widget root_widget, EntityAI item)
574  {
575  ItemBase ib = ItemBase.Cast(item);
576  if(ib && ib.m_Cleanness==1)
577  {
578  WidgetTrySetText( root_widget, "ItemCleannessWidget", "#inv_inspect_cleaned", Colors.WHITEGRAY );
579  }
580  else
581  {
582  WidgetTrySetText( root_widget, "ItemCleannessWidget", "" );
583  }
584  }
585 
586 
587 
588  //--------------------------------------------------------------------------
589  static void WidgetTrySetText(Widget root_widget, string widget_name, string text, int color = 0)
590  {
591  TextWidget widget = TextWidget.Cast( root_widget.FindAnyWidget(widget_name) );
592  RichTextWidget rt_widget = RichTextWidget.Cast( root_widget.FindAnyWidget(widget_name) );
593  if (widget)
594  {
595  widget.SetText(text);
596  Widget widget_background = root_widget.FindAnyWidget(widget_name+"Background");
597  if (widget_background)
598  {
599  if (color != 0)
600  {
601  widget_background.Show( true );
602  widget_background.SetColor(color | 0x7F000000);
603  }
604  else
605  {
606  widget_background.Show( false );
607  }
608  }
609  }
610  if( rt_widget )
611  {
612  rt_widget.Update();
613  }
614  }
615 
616 };
ItemBase
Definition: inventoryitem.c:730
GetGame
proto native CGame GetGame()
UIScriptedMenu
Definition: dayzgame.c:63
BloodContainerBase
Definition: bloodbagempty.c:1
LIQUID_RIVERWATER
const int LIQUID_RIVERWATER
Definition: constants.c:506
IDC_CANCEL
const int IDC_CANCEL
Definition: constants.c:128
GetMousePos
proto void GetMousePos(out int x, out int y)
GetScreenSize
proto void GetScreenSize(out int x, out int y)
ClothingBase
Definition: dallasmask.c:1
Close
void Close()
y
Icon y
LIQUID_WATER
const int LIQUID_WATER
Definition: constants.c:505
InventoryItem
Definition: itembase.c:13
LIQUID_GASOLINE
const int LIQUID_GASOLINE
Definition: constants.c:509
SetItem
void SetItem(EntityAI item)
Definition: radialquickbarmenu.c:42
Colors
Definition: colors.c:3
LIQUID_BEER
const int LIQUID_BEER
Definition: constants.c:508
LIQUID_VODKA
const int LIQUID_VODKA
Definition: constants.c:507
RichTextWidget
Definition: gameplay.c:315
vector
Definition: enconvert.c:105
Init
class InventoryGridController extends ScriptedWidgetEventHandler Init
Definition: uihintpanel.c:46
TextWidget
Definition: enwidgets.c:219
BloodTypes
Definition: bloodtype.c:1
FoodStageType
FoodStageType
Definition: foodstage.c:1
GetTemperatureColor
int GetTemperatureColor(int temperature)
Definition: tools.c:992
LIQUID_DISINFECTANT
const int LIQUID_DISINFECTANT
Definition: constants.c:511
name
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
x
Icon x
OnMouseButtonDown
bool OnMouseButtonDown(Widget w, int x, int y, int button)
Definition: pluginitemdiagnostic.c:117
GameConstants
Definition: constants.c:612
ItemPreviewWidget
Definition: gameplay.c:275
Widget
Definition: enwidgets.c:189
LIQUID_DIESEL
const int LIQUID_DIESEL
Definition: constants.c:510
LIQUID_SALINE
const int LIQUID_SALINE
Definition: constants.c:503
OnClick
override bool OnClick(Widget w, int x, int y, int button)
buttons clicks
Definition: dayzgame.c:146
Math
Definition: enmath.c:6
Class
Super root of all classes in Enforce script.
Definition: enscript.c:10
Vector
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
ZombieBase
Definition: zombiefemalebase.c:1
EntityAI
Definition: building.c:5
Edible_Base
Definition: bearsteakmeat.c:1