Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_InventorySlotGadgetUI.c
Go to the documentation of this file.
1[EntityEditorProps(category: "GameScripted/UI/Inventory", description: "Inventory Gadget Slot UI class")]
2
3//------------------------------------------------------------------------------------------------
6class SCR_InventorySlotGadgetUI : SCR_InventorySlotUI
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 //------------------------------------------------------------------------------------------------
50 void ~SCR_InventorySlotGadgetUI()
51 {
52 }
53};
ArmaReforgerScripted GetGame()
Definition game.c:1398
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
const string SLOT_LAYOUT_1x1
void SCR_InventorySlotUI(InventoryItemComponent pComponent=null, SCR_InventoryStorageBaseUI pStorageUI=null, bool bVisible=true, int iSlotIndex=-1, SCR_ItemAttributeCollection pAttributes=null)
ref SCR_ItemAttributeCollection m_Attributes
SCR_InventoryStorageBaseUI m_pStorageUI