Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_WeaponSwitchingBaseUI Interface Reference
Inheritance diagram for SCR_WeaponSwitchingBaseUI:
SCR_InfoDisplay GroupInfoDisplay BaseInfoDisplay

Public Member Functions

void OpenQuickSlots ()
 
void CloseQuickSlots ()
 
override void UpdateValues (IEntity owner, float timeSlice)
 
override void OnStartDraw (IEntity owner)
 
override void OnStopDraw (IEntity owner)
 
- Public Member Functions inherited from SCR_InfoDisplay
SCR_InfoDisplayHandler GetHandler (TypeName handlerType)
 
SCR_InfoDisplayInvoker GetOnStart ()
 
SCR_InfoDisplayInvoker GetOnStop ()
 
IEntity GetOwnerEntity ()
 
Widget GetContentWidget ()
 
string GetContentWidgetName ()
 
void SetRootWidget (notnull Widget root)
 
void SetContentWidget (notnull Widget content)
 
void Show (bool show, float speed=UIConstants.FADE_RATE_INSTANT, EAnimationCurve curve=EAnimationCurve.LINEAR)
 Show/hide InfoDisplay properly, not breaking other systems like AdaptiveOpacity or ConditionalVisibility.
 
bool IsShown ()
 
Widget GetRootWidget ()
 
bool GetDimensions (out float width, out float height, bool addSafezones=true)
 Get width and height of the InfoDisplay element, optionally with safezones adjustments.
 
bool GetAnchorPosition (out float x, out float y, EWidgetAnchor anchor=EWidgetAnchor.TOPLEFT, bool addSafezones=true)
 Get width and height of the InfoDisplay element, optionally with safezones adjustments.
 
void RegisterToHudManager ()
 
- Public Member Functions inherited from GroupInfoDisplay
proto external int GetInfoDisplays (out notnull array< BaseInfoDisplay > outInfoDisplays)
 
- Public Member Functions inherited from BaseInfoDisplay
proto external GenericComponent FindComponentInParentContainer (TypeName typeName)
 

Static Public Member Functions

static void RefreshQuickSlots (int id=-1)
 
static void SelectQuickSlot (int id)
 
static void HighlightQuickSlot (int id, bool highlight=true)
 
static SCR_WeaponSwitchingBaseUI GetWeaponSwitchingBaseUI ()
 

Static Public Attributes

static bool s_bOpened
 
static bool s_bRadial
 

Protected Member Functions

void Init (IEntity owner)
 
void RemoveActionListeners ()
 
void ShowCommand (notnull SCR_InventoryStorageManagerComponent inventory)
 
void Action_QuickSlotsRadial (float value=0.0, EActionTrigger reason=0)
 
void Action_QuickSlotsBar (float value=0.0, EActionTrigger reason=0)
 
void Action_SwitchSlot (float value=0.0, EActionTrigger reason=0)
 
void Action_ScrollSlot (float value=0.0, EActionTrigger reason=0)
 
void ShowQuickSlots (bool show, float speed=UIConstants.FADE_RATE_DEFAULT)
 
- Protected Member Functions inherited from SCR_InfoDisplay
void OnShownFinished (Widget w, float targetOpacity, WidgetAnimationOpacity anim=null)
 
void AdaptiveOpacity_Update (float opacity, float sceneBrightness, bool init=false)
 
override void OnInit (IEntity owner)
 

Protected Attributes

string m_sQuickSlotGridLayout
 
- Protected Attributes inherited from SCR_InfoDisplay
string m_sParentSlot
 
string m_sContentWidget
 
int m_iContentWidthAdjustment
 
int m_iContentHeightAdjustment
 
string m_sAdaptiveOpacityWidgetName
 
ref array< ref SCR_InfoDisplayHandlerm_aHandlers
 
bool m_bShown
 
Widget m_wRoot
 
Widget m_wContent
 
Widget m_wSlot
 
SCR_HUDManagerComponent m_HUDManager
 
int m_iChildDisplays = 0
 
ref array< BaseInfoDisplaym_aChildDisplays = new array<BaseInfoDisplay>
 
SCR_InfoDisplay m_pParentDisplay
 
bool m_bRegistered = false
 
IEntity m_OwnerEntity
 
ref array< ref SCR_InfoDisplayHandlerm_aUpdatableHandlers = {}
 
ref SCR_InfoDisplayInvoker m_OnStart = new SCR_InfoDisplayInvoker()
 
ref SCR_InfoDisplayInvoker m_OnStop = new SCR_InfoDisplayInvoker()
 

Static Protected Attributes

static ResourceName s_sItemPreviewManagerPrefab = "{9F18C476AB860F3B}Prefabs/World/Game/ItemPreviewManager.et"
 
static Widget s_wQuickSlotStorage
 
static ref SCR_InventoryStorageQuickSlotsUI s_QuickSlotStorage
 
static SCR_WeaponSwitchingBaseUI s_WeaponSwitchingUI
 

Additional Inherited Members

- Public Attributes inherited from SCR_InfoDisplay
ResourceName m_LayoutPath
 
EHudLayers m_eLayer
 
int m_iOverrideZOrder
 

Member Function Documentation

◆ Action_QuickSlotsBar()

void SCR_WeaponSwitchingBaseUI.Action_QuickSlotsBar ( float value = 0::0,
EActionTrigger reason = 0 )
protected

◆ Action_QuickSlotsRadial()

void SCR_WeaponSwitchingBaseUI.Action_QuickSlotsRadial ( float value = 0::0,
EActionTrigger reason = 0 )
protected

◆ Action_ScrollSlot()

void SCR_WeaponSwitchingBaseUI.Action_ScrollSlot ( float value = 0::0,
EActionTrigger reason = 0 )
protected

◆ Action_SwitchSlot()

void SCR_WeaponSwitchingBaseUI.Action_SwitchSlot ( float value = 0::0,
EActionTrigger reason = 0 )
protected

◆ CloseQuickSlots()

void SCR_WeaponSwitchingBaseUI.CloseQuickSlots ( )

◆ GetWeaponSwitchingBaseUI()

static SCR_WeaponSwitchingBaseUI SCR_WeaponSwitchingBaseUI.GetWeaponSwitchingBaseUI ( )
static

◆ HighlightQuickSlot()

static void SCR_WeaponSwitchingBaseUI.HighlightQuickSlot ( int id,
bool highlight = true )
static

◆ Init()

void SCR_WeaponSwitchingBaseUI.Init ( IEntity owner)
protected

◆ OnStartDraw()

override void SCR_WeaponSwitchingBaseUI.OnStartDraw ( IEntity owner)

Implements SCR_InfoDisplay.

◆ OnStopDraw()

override void SCR_WeaponSwitchingBaseUI.OnStopDraw ( IEntity owner)

Implements SCR_InfoDisplay.

◆ OpenQuickSlots()

void SCR_WeaponSwitchingBaseUI.OpenQuickSlots ( )

◆ RefreshQuickSlots()

static void SCR_WeaponSwitchingBaseUI.RefreshQuickSlots ( int id = -1)
static

◆ RemoveActionListeners()

void SCR_WeaponSwitchingBaseUI.RemoveActionListeners ( )
protected

◆ SelectQuickSlot()

static void SCR_WeaponSwitchingBaseUI.SelectQuickSlot ( int id)
static

◆ ShowCommand()

void SCR_WeaponSwitchingBaseUI.ShowCommand ( notnull SCR_InventoryStorageManagerComponent inventory)
protected

◆ ShowQuickSlots()

void SCR_WeaponSwitchingBaseUI.ShowQuickSlots ( bool show,
float speed = UIConstants::FADE_RATE_DEFAULT )
protected

◆ UpdateValues()

override void SCR_WeaponSwitchingBaseUI.UpdateValues ( IEntity owner,
float timeSlice )

Implements SCR_InfoDisplay.

Member Data Documentation

◆ m_sQuickSlotGridLayout

string SCR_WeaponSwitchingBaseUI.m_sQuickSlotGridLayout
protected

◆ s_bOpened

bool SCR_WeaponSwitchingBaseUI.s_bOpened
static

◆ s_bRadial

bool SCR_WeaponSwitchingBaseUI.s_bRadial
static

◆ s_QuickSlotStorage

ref SCR_InventoryStorageQuickSlotsUI SCR_WeaponSwitchingBaseUI.s_QuickSlotStorage
staticprotected

◆ s_sItemPreviewManagerPrefab

ResourceName SCR_WeaponSwitchingBaseUI.s_sItemPreviewManagerPrefab = "{9F18C476AB860F3B}Prefabs/World/Game/ItemPreviewManager.et"
staticprotected

◆ s_WeaponSwitchingUI

SCR_WeaponSwitchingBaseUI SCR_WeaponSwitchingBaseUI.s_WeaponSwitchingUI
staticprotected

◆ s_wQuickSlotStorage

Widget SCR_WeaponSwitchingBaseUI.s_wQuickSlotStorage
staticprotected

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