Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_InventorySlotGadgetUI.c
Go to the documentation of this file.
1 [EntityEditorProps(category: "GameScripted/UI/Inventory", description: "Inventory Gadget Slot UI class")]
2 
3 //------------------------------------------------------------------------------------------------
7 {
8 
9  //------------------------------------------------------------------------ USER METHODS ------------------------------------------------------------------------
10 
11  //------------------------------------------------------------------------------------------------
12  override bool RemoveItem()
13  {
14  //try to delete the UI slot
15  if( super.RemoveItem() )
16  return true;
17 
18  return true;
19  }
20 
21  //------------------------------------------------------------------------------------------------
22 
23  //------------------------------------------------------------------------------------------------
24  override void Init()
25  {
26  if(! m_Attributes )
27  return;
28 
29  //normally the gadgets might be larger than 1x1 (shown in a storage), but the gadget list is 1x1
30  m_iSizeX = 1;
31  m_iSizeY = 1;
32  //and create the visual slot
33  m_widget = GetGame().GetWorkspace().CreateWidgets( SLOT_LAYOUT_1x1, m_pStorageUI.GetStorageGrid() );
34  m_widget.AddHandler( this ); //calls the HandlerAttached()
35  }
36 
37 
38  //------------------------------------------------------------------------------------------------
39 
40  //------------------------------------------------------------------------ COMMON METHODS ----------------------------------------------------------------------
41 
42 
43  //------------------------------------------------------------------------------------------------
44  void SCR_InventorySlotGadgetUI( InventoryItemComponent pComponent = null, SCR_InventoryStorageBaseUI pStorageUI = null, bool bVisible = true, int iSlotIndex = -1, SCR_ItemAttributeCollection pAttributes = null )
45  {
46  }
47 
48 
49  //------------------------------------------------------------------------------------------------
51  {
52  }
53 };
m_Attributes
private SCR_ItemAttributeCollection m_Attributes
Definition: SCR_UniversalInventoryStorageComponent.c:23
EntityEditorProps
enum EQueryType EntityEditorProps(category:"GameScripted/Sound", description:"THIS IS THE SCRIPT DESCRIPTION.", color:"0 0 255 255")
Definition: SCR_AmbientSoundsComponent.c:12
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
SCR_InventoryStorageBaseUI
Definition: SCR_InventoryStorageBaseUI.c:6
m_iSizeY
int m_iSizeY
Definition: SCR_MapRTWBaseUI.c:6
SCR_InventorySlotGadgetUI
Definition: SCR_InventorySlotGadgetUI.c:6
InventoryItemComponent
Definition: InventoryItemComponent.c:12
SCR_ItemAttributeCollection
Definition: SCR_ItemAttributeCollection.c:2
m_iSizeX
int m_iSizeX
Definition: SCR_MapRTWBaseUI.c:3
SLOT_LAYOUT_1x1
const string SLOT_LAYOUT_1x1
Definition: SCR_InventorySlotUI.c:1
SCR_InventorySlotUI
Definition: SCR_InventorySlotUI.c:27
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180