Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_BaseWeaponAzimuthDisplay Interface Reference
Inheritance diagram for SCR_BaseWeaponAzimuthDisplay:
SCR_BaseHeadingDisplay SCR_InfoDisplayExtended SCR_InfoDisplay GroupInfoDisplay BaseInfoDisplay SCR_MortarAzimuthDisplay SCR_VehicleTurretAzimuthDisplay

Public Member Functions

void UpdateAzimuthInfo (vector aimRotation)
 
override void CalculateWidgetScreenSizeUnscaled (Widget widget)
 Calculate the size in screenspace 1 widget takes.
 
override void SetupHeadingWidgets (ResourceName headingHolderLayout="", ResourceName headingNotchLayout="")
 Create all needed Widgets that display the current and next / previous heading.
 
override void CalculateScreenSize (Widget degreeWidget)
 Calculate the current screensize in DPI unscaled format.
 
override void DisplayUpdate (IEntity owner, float timeSlice)
 
override void DisplayStartDraw (IEntity owner)
 
- Public Member Functions inherited from SCR_BaseHeadingDisplay
override 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.
 
override void DisplayStopDraw (IEntity owner)
 
- Public Member Functions inherited from SCR_InfoDisplayExtended
void SetEnabled (bool isEnabled)
 
- 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)
 
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)
 

Protected Member Functions

void UpdateAzimuthWidgets ()
 
- Protected Member Functions inherited from SCR_BaseHeadingDisplay
void ShowDelay (bool show, float speed=UIConstants.FADE_RATE_INSTANT)
 Calls the SCR_InfoDisplayExtended.Show method after some delay.
 
void UpdateFOV (float fov)
 Update padding and size based on current FOV.
 
vector GetMuzzleDirection ()
 Get muzzle rotation global vector.
 
- Protected Member Functions inherited from SCR_InfoDisplayExtended
bool DisplayStartDrawInit (IEntity owner)
 
void DisplayInit (IEntity owner)
 
void DisplayControlledEntityChanged (IEntity from, IEntity to)
 
void DisplayConsciousnessChanged (bool conscious, bool init=false)
 
void DisplayOnSuspended ()
 Called when GUI is temporarily suspended due to visibility flags; e.g. GM entered and GUI marked as not to show in GM.
 
void DisplayOnResumed ()
 
void InitializeInterfaceSettings ()
 
void OnSettingsChanged ()
 
- 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)
 

Protected Attributes

ResourceName m_sAzimuthNotchHolderLayout
 
ResourceName m_sAzimuthNotchItemLayout
 
- Protected Attributes inherited from SCR_BaseHeadingDisplay
int m_iMaxShownDegrees
 
float m_fMils
 
float m_fFadeInDelay
 
bool m_bShowMils
 
bool m_bShowDegrees
 
string m_sHeadingTableHolderWidgetName
 
string m_sTxtHeadingDegreeNotchWidgetName
 
string m_sMilsTextWidgetName
 
string m_sDegreeTextWidgetName
 
ref array< string > m_aPaddingWidgetNames
 
ref array< string > m_aHalfPaddingWidgetNames
 
float m_fDegreeWidgetDefaultSize
 
float m_fDegreeWidgetDefaultSizeWidth
 
float m_fDegreeWidgetDefaultSizeHeight
 
float m_fSliderPosX
 
float m_fSliderPosY
 
float m_fCurrentFOV
 
float m_fDegreeWidgetSize
 
int m_iLastStoredHeading
 
int m_iCurrentHeading
 
CameraManager m_CameraManager
 
CameraBase m_Camera
 
Widget m_wSavedHeadingWidget
 
TextWidget m_wMilsTextWidget
 
TextWidget m_wDegreesTextWidget
 
ScrollLayoutWidget m_wHeadingTableHolderWidget
 
TurretControllerComponent m_TurretController
 
ref array< TextWidget > m_aHeadingTextWidgets = {}
 
ref array< SizeLayoutWidget > m_aHeadingPaddingWidgets = {}
 
- Protected Attributes inherited from SCR_InfoDisplayExtended
bool m_bIsEnabled
 
string m_sInterfaceSettingName
 
SCR_PlayerController m_PlayerController
 
SCR_CharacterControllerComponent m_CharacterController
 
SCR_CharacterCameraHandlerComponent m_CameraHandler
 
MenuManager m_MenuManager
 
EventHandlerManagerComponent m_EventHandlerManager
 
SCR_EditorManagerEntity m_EditorManager
 
bool m_bAttachedToPlayerController
 
bool m_bInThirdPerson
 
bool m_bInADS
 
bool m_bIsUnconscious
 
bool m_bInPauseMenu
 
bool m_bInEditor
 
bool m_bCanShow
 
bool m_bIsEnabledInSettings = true
 
bool m_bShowInAllCameras = true
 
- 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()
 

Additional Inherited Members

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

Member Function Documentation

◆ CalculateScreenSize()

override void SCR_BaseWeaponAzimuthDisplay.CalculateScreenSize ( Widget degreeWidget)

Calculate the current screensize in DPI unscaled format.

Parameters
[in]Widgetwhich will be used to get the size from

Implements SCR_BaseHeadingDisplay.

◆ CalculateWidgetScreenSizeUnscaled()

override void SCR_BaseWeaponAzimuthDisplay.CalculateWidgetScreenSizeUnscaled ( Widget widget)

Calculate the size in screenspace 1 widget takes.

Parameters
[in]widgetthat will be used to get the size from

Implements SCR_BaseHeadingDisplay.

◆ DisplayStartDraw()

override void SCR_BaseWeaponAzimuthDisplay.DisplayStartDraw ( IEntity owner)

Implements SCR_BaseHeadingDisplay.

Implemented in SCR_MortarAzimuthDisplay.

◆ DisplayUpdate()

override void SCR_BaseWeaponAzimuthDisplay.DisplayUpdate ( IEntity owner,
float timeSlice )

◆ SetupHeadingWidgets()

override void SCR_BaseWeaponAzimuthDisplay.SetupHeadingWidgets ( ResourceName headingHolderLayout = "",
ResourceName headingNotchLayout = "" )

Create all needed Widgets that display the current and next / previous heading.

Parameters
[in]headingHolderLayoutresource name of the layout that will be used for holding the notches
[in]headingNotchLayoutresource name of the layout which will be used to create notches

Implements SCR_BaseHeadingDisplay.

◆ UpdateAzimuthInfo()

void SCR_BaseWeaponAzimuthDisplay.UpdateAzimuthInfo ( vector aimRotation)

◆ UpdateAzimuthWidgets()

void SCR_BaseWeaponAzimuthDisplay.UpdateAzimuthWidgets ( )
protected

Member Data Documentation

◆ m_sAzimuthNotchHolderLayout

ResourceName SCR_BaseWeaponAzimuthDisplay.m_sAzimuthNotchHolderLayout
protected

◆ m_sAzimuthNotchItemLayout

ResourceName SCR_BaseWeaponAzimuthDisplay.m_sAzimuthNotchItemLayout
protected

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