4 [
Attribute(
"2", UIWidgets.ComboBox,
"Slot size",
"", ParamEnumArray.FromEnum(
ESlotSize))]
10 [
Attribute(
"2", UIWidgets.ComboBox,
"Slot size",
"", ParamEnumArray.FromEnum(
ESlotID))]
13 [
Attribute(
"1", UIWidgets.CheckBox,
"Sets item movable by drag'n'drop")]
14 protected bool m_bDraggable;
16 [
Attribute(
"1", UIWidgets.CheckBox,
"Sets item visible in inventory")]
17 protected bool m_bVisible;
19 [
Attribute(
"1", UIWidgets.CheckBox,
"Sets item stackable in inventory")]
20 protected bool m_bStackable;
27 if (m_PhysAttributes !=
null)
29 return m_PhysAttributes.GetVolume();
38 if (m_PhysAttributes !=
null)
40 return m_PhysAttributes.GetWeight();
70 void SetDraggable(
bool isDraggable)
72 m_bDraggable = isDraggable;
76 void SetSlotType(
ESlotID slotID )
82 ESlotID GetSlotType() {
return m_SlotType; }
90 case ESlotSize.SLOT_1x1: { iRetVal = 1; }
break;
91 case ESlotSize.SLOT_2x1: { iRetVal = 2; }
break;
92 case ESlotSize.SLOT_2x2: { iRetVal = 4; }
break;
93 case ESlotSize.SLOT_3x3: { iRetVal = 9; }
break;
109 return GetItemSize();
111 return m_eQuickSlotSize;
114 override protected void OnInitCollection(IEntityComponentSource src)