DayZ 1.24
Loading...
Searching...
No Matches
SlotsIcon.c
Go to the documentation of this file.
2{
3 protected static int m_NormalWidth;
4 protected static int m_NormalHeight;
5
6 protected bool m_IsWeapon = false;
7 protected bool m_IsMagazine = false;
8 protected bool m_HasTemperature = false;
9 protected bool m_HasQuantity = false;
10 protected bool m_HasItemSize = false;
11 protected float m_CurrQuantity = -1;
12
13 protected EntityAI m_Obj;
14 protected ItemBase m_Item;
17 protected int m_SlotID;
18 protected bool m_IsDragged = false;
19
21
27
30
35
40
41 protected string m_SlotDisplayName;
42 protected string m_SlotDesc;
43
46
47 protected Widget m_AmmoIcon;
48
52
53 protected bool m_Reserved;
54
56 {
57 m_MainWidget = root;
58
59 m_PanelWidget = m_MainWidget.FindAnyWidget("PanelWidget" + index);
60
61 m_CursorWidget = m_MainWidget.FindAnyWidget("Cursor" + index);
62 m_ColWidget = m_MainWidget.FindAnyWidget("Col" + index);
63 m_MountedWidget = m_MainWidget.FindAnyWidget("Mounted" + index);
64 m_OutOfReachWidget = m_MainWidget.FindAnyWidget("OutOfReach" + index);
65
66 m_ItemPreview = ItemPreviewWidget.Cast(m_MainWidget.FindAnyWidget("Render" + index));
69
70 m_GhostSlot = ImageWidget.Cast(m_MainWidget.FindAnyWidget("GhostSlot" + index));
71
72 m_ColorWidget = m_MainWidget.FindAnyWidget("Color" + index);
73 m_SelectedPanel = m_MainWidget.FindAnyWidget("Selected" + index);
74 m_EmptySelectedPanel = m_MainWidget.FindAnyWidget("EmptySelected" + index);
75 m_MicromanagedPanel = m_MainWidget.FindAnyWidget("Micromanaged" + index);
76
77 m_QuantityPanel = m_MainWidget.FindAnyWidget("QuantityPanel" + index);
78 m_QuantityItem = TextWidget.Cast(m_MainWidget.FindAnyWidget("Quantity" + index));
79 m_QuantityProgress = ProgressBarWidget.Cast(m_MainWidget.FindAnyWidget("QuantityBar" + index));
80 m_QuantityStack = m_MainWidget.FindAnyWidget("QuantityStackPanel" + index);
81
82 m_ItemSizePanel = m_MainWidget.FindAnyWidget("ItemSizePanel" + index);
83 m_ItemSizeWidget = TextWidget.Cast(m_MainWidget.FindAnyWidget("ItemSize" + index));
84
85 m_AmmoIcon = m_MainWidget.FindAnyWidget("AmmoIcon" + index);
86
87 m_RadialIconPanel = m_MainWidget.FindAnyWidget("RadialIconPanel" + index);
88 m_RadialIconClosed = m_MainWidget.FindAnyWidget("RadialIconClosed" + index);
89 m_RadialIcon = m_MainWidget.FindAnyWidget("RadialIcon" + index);
90
91 m_ReservedWidget = Widget.Cast(GetGame().GetWorkspace().CreateWidgets("gui/layouts/inventory_new/reserved_icon.layout", m_MainWidget));
92 m_ReservedWidget.Show(false);
93
94 WidgetEventHandler.GetInstance().RegisterOnMouseEnter(m_PanelWidget, this, "MouseEnter");
95 WidgetEventHandler.GetInstance().RegisterOnMouseLeave(m_PanelWidget, this, "MouseLeave");
96
97 WidgetEventHandler.GetInstance().RegisterOnMouseEnter(m_GhostSlot, this, "MouseEnterGhostSlot");
98 WidgetEventHandler.GetInstance().RegisterOnMouseLeave(m_GhostSlot, this, "MouseLeaveGhostSlot");
99
100 WidgetEventHandler.GetInstance().RegisterOnMouseEnter(m_RadialIconPanel, this, "MouseEnterCategory");
101 WidgetEventHandler.GetInstance().RegisterOnMouseLeave(m_RadialIconPanel, this, "MouseLeaveCategory");
102
103 WidgetEventHandler.GetInstance().RegisterOnDrag(m_PanelWidget, this, "OnIconDrag");
104 WidgetEventHandler.GetInstance().RegisterOnDrop(m_PanelWidget, this, "OnIconDrop");
105
106 //WidgetEventHandler.GetInstance().RegisterOnMouseEnter( m_ReservedWidget, this, "MouseEnter" );
107 //WidgetEventHandler.GetInstance().RegisterOnMouseLeave( m_ReservedWidget, this, "MouseLeave" );
108
109 m_Reserved = false;
110 m_SlotID = -1;
111 m_Item = null;
112 m_Obj = null;
114
116
117 m_PanelWidget.SetUserData(this);
118 m_ItemPreview.SetUserData(this);
119 m_GhostSlot.SetUserData(this);
120 m_MainWidget.SetUserData(this);
121
122 float w, h;
123 root.GetSize(w, h);
124
127
128 SetActive(false);
129 }
130
131 override bool IsVisible()
132 {
133 return m_MainWidget.IsVisible();
134 }
135
137 {
138 m_SlotParent = parent;
139 }
140
145
147 {
149 }
150
152 {
153 return m_Container;
154 }
155
157 {
158 return m_SlotDisplayName;
159 }
160
161 void SetSlotDesc(string text)
162 {
164 }
165
166 string GetSlotDesc()
167 {
168 return m_SlotDesc;
169 }
170
172 {
173 if (m_IsDragged)
174 {
175 m_IsDragged = false;
176 ItemManager.GetInstance().HideDropzones();
177 ItemManager.GetInstance().SetIsDragging(false);
178 }
179
180 if (m_Obj)
181 {
182 m_Obj.GetOnItemFlipped().Remove(UpdateFlip);
183 m_Obj.GetOnViewIndexChanged().Remove(SetItemPreview);
184 }
185 }
186
188 {
189 return m_SlotParent;
190 }
191
193 {
194 return m_SlotID;
195 }
196
198 {
200 }
201
203 {
204 return m_Reserved;
205 }
206
208 {
209 return m_PanelWidget;
210 }
211
213 {
214 return m_CursorWidget;
215 }
216
218 {
219 return m_ColWidget;
220 }
221
223 {
224 return m_ReservedWidget;
225 }
226
228 {
229 return m_MountedWidget;
230 }
231
233 {
234 return m_ItemPreview;
235 }
236
238 {
239 return m_GhostSlot;
240 }
241
243 {
244 return m_ColorWidget;
245 }
246
248 {
249 return m_SelectedPanel;
250 }
251
256
261
263 {
264 return m_QuantityPanel;
265 }
266
271
273 {
274 return m_QuantityItem;
275 }
276
281
283 {
284 return m_QuantityStack;
285 }
286
288 {
289 return m_ItemSizePanel;
290 }
291
296
298 {
299 return m_AmmoIcon;
300 }
301
303 {
304 return m_RadialIconPanel;
305 }
306
311
313 {
314 return m_RadialIcon;
315 }
316
318 {
319 return GetCursorWidget().IsVisible();
320 }
321
322 override void SetActive(bool active)
323 {
324#ifdef PLATFORM_CONSOLE
325 super.SetActive(active);
326 float x, y;
327 if (active && GetObject())
328 {
329 GetMainWidget().GetScreenPos(x, y);
330 PrepareOwnedTooltip(EntityAI.Cast(GetObject()), x, y);
331 }
332 else if (active)
333 {
334 GetMainWidget().GetScreenPos(x, y);
335 PrepareOwnedSlotsTooltip(GetMainWidget(), m_SlotDisplayName, m_SlotDesc, x, y);
336 }
337
339#endif
340 }
341
342 override void SetLayoutName()
343 {
344 m_LayoutName = "";
345 }
346
347 override void Refresh()
348 {
351 if (m_IsWeapon)
353 if (m_HasQuantity)
354 SetQuantity();
355 }
356
358 {
359 ItemManager.GetInstance().SetIconTemperature(EntityAI.Cast(m_Obj), m_MainWidget);
360 }
361
363 {
364 return m_Obj;
365 }
366
368 {
369 return EntityAI.Cast(m_Obj);
370 }
371
373 {
374 return m_Item;
375 }
376
378 {
380 if (wpn)
381 {
382 if (wpn.IsShowingChamberedBullet())
383 {
384 int mi = wpn.GetCurrentMuzzle();
385 m_AmmoIcon.Show(wpn.IsChamberFull(mi));
386
387 }
388 else
389 m_AmmoIcon.Show(false);
390 }
391 }
392
394 {
395 if (m_Item)
396 {
399 {
401
403 {
405
407 m_QuantityStack.Show(false);
408 else
409 {
410 m_QuantityItem.SetText(q_text);
411 m_QuantityStack.Show(true);
412 }
413
414 m_QuantityProgress.Show(false);
415 }
417 {
418 float progress_max = m_QuantityProgress.GetMax();
419 int max = m_Item.GetQuantityMax();
420 int count = m_Item.ConfigGetInt("count");
421 float quantity = m_CurrQuantity;
422
423 if (count > 0)
424 max = count;
425
426 if (max > 0)
427 {
428 float value = Math.Round((quantity / max) * 100);
429 m_QuantityProgress.SetCurrent(value);
430 }
431 m_QuantityStack.Show(false);
432 m_QuantityProgress.Show(true);
433 }
434 }
435 }
436 }
437
439 {
440 m_ItemPreview.Show(true);
443 m_ItemPreview.SetView(m_Obj.GetViewIndex());
444 }
445
447 {
448 if (m_HasItemSize)
449 {
450 int size_x, size_y;
451 GetGame().GetInventoryItemSize(InventoryItem.Cast(m_Obj), size_x, size_y);
452
453 m_ItemSizePanel.Show(true);
454 m_ItemSizeWidget.SetText((size_x * size_y).ToString());
455 }
456 }
457
459 {
460 if (!m_Reserved)
461 {
462 float x_content, y_content;
463 GetPanelWidget().GetScreenSize(x_content, y_content);
465 }
466 }
467
468 void Init(EntityAI obj, bool reservation = false)
469 {
470 if (m_Obj != obj)
471 {
473 m_Obj = obj;
474 m_Item = ItemBase.Cast(m_Obj);
475 m_Obj.GetOnItemFlipped().Insert(UpdateFlip);
476 m_Obj.GetOnViewIndexChanged().Insert(SetItemPreview);
479
480 if (reservation)
481 {
482 ItemManager.GetInstance().SetWidgetDraggable(m_PanelWidget, false);
483
484 m_IsWeapon = false;
485 m_IsMagazine = false;
486 m_HasTemperature = false;
487 m_HasQuantity = false;
488 m_HasItemSize = false;
489 }
490 else
491 {
497 }
498
500
502
503 m_GhostSlot.Show(false);
504 m_PanelWidget.Show(true);
505
506 Refresh();
507#ifdef PLATFORM_CONSOLE
508 if (IsFocused())
509 Inventory.GetInstance().UpdateConsoleToolbar();
510#endif
511 }
512 }
513
515 {
516 if (m_IsDragged)
517 {
520 ItemManager.GetInstance().SetWidgetDraggable(a, false);
521 }
522 if (m_Obj)
523 {
524 m_Obj.GetOnItemFlipped().Remove(UpdateFlip);
525 m_Obj.GetOnViewIndexChanged().Remove(SetItemPreview);
526 HideOwnedTooltip();
527 }
528
529 m_Obj = null;
530 m_Item = null;
532
533 m_ItemPreview.Show(false);
535
536 m_CurrQuantity = -1;
537 m_IsWeapon = false;
538 m_IsMagazine = false;
539 m_HasTemperature = false;
540 m_HasQuantity = false;
541 m_HasItemSize = false;
542
543 m_GhostSlot.Show(true);
544 m_AmmoIcon.Show(false);
545 m_PanelWidget.Show(false);
546 m_RadialIconPanel.Show(false);
547
548 m_QuantityPanel.Show(false);
549 if (GetSlotID() != -1)
550 {
552 if (stack_max > 1)
553 {
554 m_QuantityPanel.Show(true);
555 m_QuantityItem.SetText(string.Format("0/%1", stack_max.ToString()));
556 m_QuantityStack.Show(true);
557 m_QuantityProgress.Show(false);
558 m_PanelWidget.Show(true);
559 m_ItemPreview.Show(true);
560 }
561 }
562
563 m_ColWidget.Show(false);
564 m_MountedWidget.Show(false);
565 m_OutOfReachWidget.Show(false);
566 m_ReservedWidget.Show(false);
567
568 if (m_ItemSizePanel)
569 m_ItemSizePanel.Show(false);
570
571 if (m_ColorWidget)
572 m_ColorWidget.Show(false);
573
574 Refresh();
575 }
576
577 void Clear()
578 {
579#ifdef PLATFORM_CONSOLE
580 m_SelectedPanel.Show(false);
581#endif
582 m_CursorWidget.Show(false);
583 m_EmptySelectedPanel.Show(false);
584
586 }
587
589 {
590 m_IsWeapon = (Weapon_Base.Cast(m_Obj) != null);
591 }
592
594 {
595 m_IsMagazine = (Magazine.Cast(m_Obj) != null);
596 }
597
599 {
600 if (m_Item)
601 m_HasTemperature = (m_Item.GetTemperatureMax() != 0 && m_Item.GetTemperatureMin() != 0);
602 }
603
605 {
606 if (m_Item)
607 {
609 if (m_HasQuantity)
610 m_QuantityPanel.Show(true);
611 }
612 }
613
615 {
616#ifdef PLATFORM_CONSOLE
617 string config = "CfgVehicles " + m_Obj.GetType() + " GUIInventoryAttachmentsProps";
618 m_HasItemSize = (InventoryItem.Cast(m_Obj) && !GetGame().ConfigIsExisting(config));
619#else
620 m_HasItemSize = false;
621#endif
622 }
623
625 {
626 bool oot = (m_OutOfReachWidget.IsVisible() || m_MountedWidget.IsVisible());
627 return oot;
628 }
629
630 bool MouseEnter(Widget w, int x, int y)
631 {
632 if (m_Reserved)
633 return MouseEnterGhostSlot(w, x, y);
634
635 PrepareOwnedTooltip(m_Item, x, y);
637 m_CursorWidget.Show(true);
638 return true;
639 }
640
642 {
643 float pos_x, pos_y;
644 m_MainWidget.GetScreenPos(pos_x, pos_y);
645
646 x = pos_x;
647 y = pos_y;
648
649 PrepareOwnedSlotsTooltip(m_MainWidget, m_SlotDisplayName, m_SlotDesc, x, y);
651 m_EmptySelectedPanel.Show(true);
652
653
654 return true;
655 }
656
657 bool MouseLeave(Widget w, Widget s, int x, int y)
658 {
659 if (m_Reserved)
660 return MouseLeaveGhostSlot(w, s, x, y);
661
662 HideOwnedTooltip();
664 m_CursorWidget.Show(false);
665 return true;
666 }
667
669 {
670 HideOwnedSlotsTooltip();
671
673 m_EmptySelectedPanel.Show(false);
674
675 return true;
676 }
677
678 override void UpdateInterval()
679 {
680 if (m_Item)
681 {
684 if (m_IsWeapon)
686 if (m_HasQuantity)
687 SetQuantity();
688 if (m_HasItemSize)
689 SetItemSize();
690 }
691 }
692
694 {
695 if (!m_Obj || !w)
696 return;
697 ItemManager.GetInstance().HideDropzones();
698 if (m_Obj.GetHierarchyRootPlayer() == GetGame().GetPlayer())
699 ItemManager.GetInstance().GetRightDropzone().SetAlpha(1);
700 else
701 ItemManager.GetInstance().GetLeftDropzone().SetAlpha(1);
702
703 ItemManager.GetInstance().SetIsDragging(true);
704 int icon_x, icon_y;
705 float icon_size, y;
706 int m_sizeX, m_sizeY;
707
708 if (m_Item)
709 {
710 GetGame().GetInventoryItemSize(m_Item, icon_x, icon_y);
711
712 CargoContainer c_parent = CargoContainer.Cast(m_Parent);
714
715 if (GetRoot().m_MainWidget.FindAnyWidget("HandsPanel"))
716 GetRoot().m_MainWidget.FindAnyWidget("HandsPanel").GetScreenSize(icon_size, y);
717
718 icon_size = icon_size / 10;
719
720 w.SetFlags(WidgetFlags.EXACTSIZE);
722
723 if (!m_Item.GetInventory().GetFlipCargo())
724 w.SetSize(icon_x * icon_size, icon_y * icon_size);
725 else
726 w.SetSize(icon_y * icon_size, icon_x * icon_size);
727
728 m_ColWidget.Show(true);
729 m_CursorWidget.Show(true);
730
731 ItemManager.GetInstance().SetDraggedItem(m_Item);
732 }
733 m_IsDragged = true;
734 }
735
737 {
738 m_IsDragged = false;
739 ItemManager.GetInstance().HideDropzones();
740 ItemManager.GetInstance().SetIsDragging(false);
741 w.ClearFlags(WidgetFlags.EXACTSIZE);
742 w.SetSize(1, 1);
743 m_ColWidget.Show(false);
744 m_CursorWidget.Show(false);
745 m_EmptySelectedPanel.Show(false);
746 m_CursorWidget.SetColor(ARGBF(1, 1, 1, 1));
748 }
749
750 static int GetNormalWidth()
751 {
752 return m_NormalWidth;
753 }
754
755 static int GetNormalHeight()
756 {
757 return m_NormalHeight;
758 }
759
760 /*override void HideOwnedSlotsTooltip()
761 {
762 if (m_TooltipOwner)
763 {
764 ItemManager.GetInstance().HideTooltipSlot();
765 m_TooltipOwner = false;
766 }
767 }*/
768}
void Inventory(LayoutHolder parent)
Definition Inventory.c:76
proto string ToString()
Icon x
Icon y
PlayerBase GetPlayer()
Widget m_Parent
Definition SizeToChild.c:86
void SetActive()
Definition TrapBase.c:409
provides access to slot configuration
static proto native int GetStackMaxForSlotId(int slot_Id)
static ItemManager GetInstance()
proto native void SetView(int viewIndex)
proto native void SetForceFlipEnable(bool enable)
proto native void SetItem(EntityAI object)
proto native void SetForceFlip(bool value)
proto native void SetModelOrientation(vector vOrientation)
Definition EnMath.c:7
static float GetItemQuantity(InventoryItem item)
static int HasItemQuantity(notnull EntityAI item)
static float GetItemQuantityMax(InventoryItem item)
static string GetItemQuantityText(EntityAI item, bool showMax=false)
Object GetObject()
Definition SlotsIcon.c:362
Widget m_OutOfReachWidget
Definition SlotsIcon.c:25
Widget m_ColWidget
Definition SlotsIcon.c:23
bool MouseEnter(Widget w, int x, int y)
Definition SlotsIcon.c:630
void ClearRemainSelected()
Definition SlotsIcon.c:514
override void SetLayoutName()
Definition SlotsIcon.c:342
Widget GetSelectedPanel()
Definition SlotsIcon.c:247
override void Refresh()
Definition SlotsIcon.c:347
void UpdateFlip(bool flipped)
Definition SlotsIcon.c:458
static int m_NormalWidth
Definition SlotsIcon.c:3
Container GetContainer()
Definition SlotsIcon.c:151
Widget GetPanelWidget()
Definition SlotsIcon.c:207
ItemPreviewWidget GetRender()
Definition SlotsIcon.c:232
void SetItemSize()
Definition SlotsIcon.c:446
void OnIconDrag(Widget w)
Definition SlotsIcon.c:693
bool IsFocused()
Definition SlotsIcon.c:317
EntityAI GetEntity()
Definition SlotsIcon.c:367
Widget GetMicromanagedPanel()
Definition SlotsIcon.c:257
Widget GetRadialIconClosed()
Definition SlotsIcon.c:307
void Init(EntityAI obj, bool reservation=false)
Definition SlotsIcon.c:468
Widget m_CursorWidget
Definition SlotsIcon.c:22
Container m_Container
Definition SlotsIcon.c:16
ItemBase m_Item
Definition SlotsIcon.c:14
void SetSlotID(int slot_ID)
Definition SlotsIcon.c:197
Widget GetReservedWidget()
Definition SlotsIcon.c:222
Widget GetQuantityPanel()
Definition SlotsIcon.c:262
string GetSlotDisplayName()
Definition SlotsIcon.c:156
bool MouseLeave(Widget w, Widget s, int x, int y)
Definition SlotsIcon.c:657
static int m_NormalHeight
Definition SlotsIcon.c:4
bool m_HasTemperature
Definition SlotsIcon.c:8
TextWidget m_ItemSizeWidget
Definition SlotsIcon.c:45
bool MouseLeaveGhostSlot(Widget w, Widget s, int x, int y)
Definition SlotsIcon.c:668
bool m_IsDragged
Definition SlotsIcon.c:18
ProgressBarWidget m_QuantityProgress
Definition SlotsIcon.c:38
void CheckIsMagazine()
Definition SlotsIcon.c:593
bool IsOutOfReach()
Definition SlotsIcon.c:624
void SetSlotDesc(string text)
Definition SlotsIcon.c:161
bool m_IsMagazine
Definition SlotsIcon.c:7
Widget m_MicromanagedPanel
Definition SlotsIcon.c:34
void CheckHasTemperature()
Definition SlotsIcon.c:598
Widget m_ReservedWidget
Definition SlotsIcon.c:26
Widget GetQuantityStack()
Definition SlotsIcon.c:282
Widget m_SelectedPanel
Definition SlotsIcon.c:32
TextWidget GetQuantityItem()
Definition SlotsIcon.c:272
Widget m_RadialIcon
Definition SlotsIcon.c:51
bool m_IsWeapon
Definition SlotsIcon.c:6
EntityAI GetSlotParent()
Definition SlotsIcon.c:187
string m_SlotDesc
Definition SlotsIcon.c:42
EntityAI m_SlotParent
Definition SlotsIcon.c:15
Widget GetItemSizePanel()
Definition SlotsIcon.c:287
void SetSlotDisplayName(string text)
Definition SlotsIcon.c:146
Widget GetColorWidget()
Definition SlotsIcon.c:242
Widget GetCursorWidget()
Definition SlotsIcon.c:212
Widget GetAmmoIcon()
Definition SlotsIcon.c:297
void OnIconDrop(Widget w)
Definition SlotsIcon.c:736
ItemPreviewWidget m_ItemPreview
Definition SlotsIcon.c:28
void SlotsIcon(LayoutHolder parent, Widget root, int index, EntityAI slot_parent)
Definition SlotsIcon.c:55
void CheckHasItemSize()
Definition SlotsIcon.c:614
static int GetNormalWidth()
Definition SlotsIcon.c:750
Widget m_RadialIconPanel
Definition SlotsIcon.c:49
override bool IsVisible()
Definition SlotsIcon.c:131
static int GetNormalHeight()
Definition SlotsIcon.c:755
EntityAI m_Obj
Definition SlotsIcon.c:13
Widget m_QuantityPanel
Definition SlotsIcon.c:36
bool IsReserved()
Definition SlotsIcon.c:202
bool m_HasItemSize
Definition SlotsIcon.c:10
Widget m_RadialIconClosed
Definition SlotsIcon.c:50
Widget m_AmmoIcon
Definition SlotsIcon.c:47
ProgressBarWidget GetQuantityProgress()
Definition SlotsIcon.c:277
ImageWidget m_GhostSlot
Definition SlotsIcon.c:29
void SetTemperature()
Definition SlotsIcon.c:357
Widget GetEmptySelectedPanel()
Definition SlotsIcon.c:252
string m_SlotDisplayName
Definition SlotsIcon.c:41
Widget GetRadialIcon()
Definition SlotsIcon.c:312
void RefreshMuzzleIcon()
Definition SlotsIcon.c:377
void SetSlotParent(EntityAI parent)
Definition SlotsIcon.c:136
float m_CurrQuantity
Definition SlotsIcon.c:11
Widget m_QuantityStack
Definition SlotsIcon.c:39
void SetQuantity()
Definition SlotsIcon.c:393
int m_SlotID
Definition SlotsIcon.c:17
void SetContainer(Container container)
Definition SlotsIcon.c:141
Widget m_EmptySelectedPanel
Definition SlotsIcon.c:33
Widget GetColWidget()
Definition SlotsIcon.c:217
int GetSlotID()
Definition SlotsIcon.c:192
bool m_HasQuantity
Definition SlotsIcon.c:9
Widget m_MountedWidget
Definition SlotsIcon.c:24
TextWidget m_QuantityItem
Definition SlotsIcon.c:37
void Clear()
Definition SlotsIcon.c:577
void CheckIsWeapon()
Definition SlotsIcon.c:588
override void UpdateInterval()
Definition SlotsIcon.c:678
Widget GetMountedWidget()
Definition SlotsIcon.c:227
override void SetActive(bool active)
Definition SlotsIcon.c:322
Widget m_PanelWidget
Definition SlotsIcon.c:20
Widget GetOutOfReachWidget()
Definition SlotsIcon.c:267
ItemBase GetItem()
Definition SlotsIcon.c:372
void SetItemPreview()
Definition SlotsIcon.c:438
bool MouseEnterGhostSlot(Widget w, int x, int y)
Definition SlotsIcon.c:641
void ~SlotsIcon()
Definition SlotsIcon.c:171
string GetSlotDesc()
Definition SlotsIcon.c:166
Widget GetRadialIconPanel()
Definition SlotsIcon.c:302
Widget m_ColorWidget
Definition SlotsIcon.c:31
TextWidget GetItemSizeWidget()
Definition SlotsIcon.c:292
Widget m_ItemSizePanel
Definition SlotsIcon.c:44
void CheckHasQuantity()
Definition SlotsIcon.c:604
bool m_Reserved
Definition SlotsIcon.c:53
ImageWidget GetGhostSlot()
Definition SlotsIcon.c:237
static WidgetEventHandler GetInstance()
proto native CGame GetGame()
const int QUANTITY_PROGRESS
Definition constants.c:484
const int QUANTITY_COUNT
Definition constants.c:483
const int QUANTITY_HIDDEN
Definition constants.c:482
static proto float Round(float f)
Returns mathematical round of value.
WidgetFlags
Definition EnWidgets.c:58
proto native Widget CancelWidgetDragging()
proto native Widget GetDragWidget()
int ARGBF(float fa, float fr, float fg, float fb)
Converts <0.0, 1.0> ARGB into color.
Definition proto.c:332