Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SCR_ItemSelectionMenuEntry Interface Reference
Inheritance diagram for SCR_ItemSelectionMenuEntry:
[legend]

Public Member Functions

override void Update ()
 Public method to make entry update itself.
 
int GetQuickSlotID ()
 
void SetQuickSlotID (int id)
 
override void OnPerform ()
 Callback for when this entry is supposed to be performed.
 
void SCR_ItemSelectionMenuEntry (notnull SCR_CharacterInventoryStorageComponent storage, int quickSlotID)
 
- Public Member Functions inherited from SCR_SelectionMenuEntry
ScriptInvoker GetOnPerform ()
 
ScriptInvoker GetOnPerformFail ()
 
ScriptInvoker GetOnIconChange ()
 
void Update ()
 Public method to make entry update itself.
 
void Perform ()
 Public method to call entry perform Don't override! To define entry perform behavior override OnPerform() below.
 
void Enable (bool enable)
 
void SetId (string id)
 
string GetId ()
 
void SetName (string name)
 
void SetDescription (string description)
 
void SetIcon (ResourceName iconPath, string imageSetName="")
 Set icon and invoke change.
 
void SetIconFromDeafaultImageSet (string imageSetName="")
 
ResourceName GetCustomLayout ()
 
void SetCustomLayout (ResourceName layout)
 
void SetEntryComponent (SCR_SelectionMenuEntryComponent entryComponent)
 
SCR_SelectionMenuEntryComponent GetEntryComponent ()
 
bool IsEnabled ()
 
void SetInputAction (string action)
 
string GetInputAction ()
 
void SCR_SelectionMenuEntry ()
 
- Public Member Functions inherited from SCR_UIInfo
ResourceName GetIconPath ()
 Get icon.
 
string GetIconSetName ()
 Returns Icon Set name if imageset.
 
bool HasIcon ()
 Check if the info has an icon defined.
 
bool SetIconTo (ImageWidget imageWidget)
 Set icon to given image widget.
 
override void Log (string prefix=string.Empty, LogLevel logLevel=LogLevel.VERBOSE)
 
- Public Member Functions inherited from SCR_UIDescription
LocalizedString GetUnformattedDescription ()
 Get the unformatted description from SCR_HintUIInfo instance.
 
void SetDescription (LocalizedString description)
 Change the description from SCR_HintUIInfo instance.
 
LocalizedString GetDescription ()
 Get description.
 
bool HasDescription ()
 Check if the info has a description defined.
 
bool SetDescriptionTo (TextWidget textWidget)
 Set description to given text widget.
 
override void Log (string prefix=string.Empty, LogLevel logLevel=LogLevel.VERBOSE)
 
- Public Member Functions inherited from SCR_UIName
LocalizedString GetUnformattedName ()
 Get The unformatted Name from SCR_HintUIInfo instance.
 
void SetName (LocalizedString name)
 Change the Name from SCR_HintUIInfo instance.
 
LocalizedString GetName ()
 Get name.
 
bool HasName ()
 Check if the info has a name defined.
 
bool SetNameTo (TextWidget textWidget)
 Set name to given text widget.
 
void Log (string prefix=string.Empty, LogLevel logLevel=LogLevel.VERBOSE)
 Print out contents of this UI info.
 

Protected Member Functions

IEntity GetItem ()
 
UIInfo GetUIInfo (IEntity item)
 
- Protected Member Functions inherited from SCR_SelectionMenuEntry
void InvokeOnPerform ()
 
void InvokeOnPerformFail ()
 
void InvokeOnIconChange (ResourceName icon, string imageSetImage)
 
void OnPerform ()
 Empty methods for deifinition of perform behavior.
 
void OnEntryClick (SCR_SelectionMenuEntryComponent entryComponent)
 
- Protected Member Functions inherited from SCR_UIInfo
override void CopyFrom (SCR_UIName source)
 
override void CopyFrom (SCR_UIName source)
 
void CopyFrom (SCR_UIName source)
 

Protected Attributes

SCR_CharacterInventoryStorageComponent m_Storage
 
int m_iQuickSlotID = -1
 
- Protected Attributes inherited from SCR_SelectionMenuEntry
string m_sId
 
bool m_bEnabled
 
string m_sInputAction
 
ResourceName m_sCustomLayout
 
ref SCR_SelectionMenuEntryComponent m_EntryComponent
 
ref ScriptInvoker< SCR_SelectionMenuEntrym_OnPerform
 
ref ScriptInvoker< SCR_SelectionMenuEntrym_OnPerformFail
 
ref ScriptInvoker< SCR_SelectionMenuEntry, ResourceName, string > m_OnIconChange
 
- Protected Attributes inherited from SCR_UIInfo
ResourceName Icon
 
string IconSetName
 
- Protected Attributes inherited from SCR_UIDescription
LocalizedString Description
 
- Protected Attributes inherited from SCR_UIName
LocalizedString Name
 

Static Protected Attributes

const ResourceName LAYOUT_ITEM = "{93472DECDA62C46F}UI/layouts/Common/RadialMenu/SelectionMenuEntryPreview.layout"
 

Additional Inherited Members

- Static Public Member Functions inherited from SCR_UIInfo
static SCR_UIInfo GetInfo (BaseContainer source, string varName)
 Get UIInfo from a source object.
 
static SCR_UIInfo CreateInfo (UIInfo source)
 Create SCR_UIInfo from engine UIInfo.
 
static SCR_UIInfo CreateInfo (LocalizedString name, LocalizedString description=LocalizedString.Empty, ResourceName icon=ResourceName.Empty, string iconSetName=string.Empty)
 Create SCR_UIInfo from basic params.
 
static SCR_UIInfo CreatePlaceholderInfo (TypeName type)
 Get placeholder info.
 

Constructor & Destructor Documentation

◆ SCR_ItemSelectionMenuEntry()

void SCR_ItemSelectionMenuEntry.SCR_ItemSelectionMenuEntry ( notnull SCR_CharacterInventoryStorageComponent  storage,
int  quickSlotID 
)

Member Function Documentation

◆ GetItem()

IEntity SCR_ItemSelectionMenuEntry.GetItem ( )
protected

◆ GetQuickSlotID()

int SCR_ItemSelectionMenuEntry.GetQuickSlotID ( )

◆ GetUIInfo()

UIInfo SCR_ItemSelectionMenuEntry.GetUIInfo ( IEntity  item)
protected

◆ OnPerform()

override void SCR_ItemSelectionMenuEntry.OnPerform ( )

Callback for when this entry is supposed to be performed.

Implements SCR_SelectionMenuEntry.

◆ SetQuickSlotID()

void SCR_ItemSelectionMenuEntry.SetQuickSlotID ( int  id)

◆ Update()

override void SCR_ItemSelectionMenuEntry.Update ( )

Public method to make entry update itself.

Implements SCR_SelectionMenuEntry.

Member Data Documentation

◆ LAYOUT_ITEM

const ResourceName SCR_ItemSelectionMenuEntry.LAYOUT_ITEM = "{93472DECDA62C46F}UI/layouts/Common/RadialMenu/SelectionMenuEntryPreview.layout"
staticprotected

◆ m_iQuickSlotID

int SCR_ItemSelectionMenuEntry.m_iQuickSlotID = -1
protected

◆ m_Storage

SCR_CharacterInventoryStorageComponent SCR_ItemSelectionMenuEntry.m_Storage
protected

The documentation for this interface was generated from the following file: