Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_InfoDisplay.c File Reference

Go to the source code of this file.

Typedefs

typedef func SCR_InfoDisplayStartStopCallback
 
typedef ScriptInvokerBase< SCR_InfoDisplayStartStopCallbackSCR_InfoDisplayInvoker
 

Enumerations

enum  EWidgetAnchor
 

Functions

void SCR_InfoDisplayStartStopCallback (SCR_InfoDisplay display)
 
enum EWidgetAnchor Attribute ("", UIWidgets.ResourceNamePicker, "Layout", "layout")] ResourceName m_LayoutPath
 
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)
 
private void OnShownFinishedPrivate (WidgetAnimationOpacity anim)
 
protected void OnShownFinished (Widget w, float targetOpacity, WidgetAnimationOpacity anim=null)
 
bool IsShown ()
 
Widget GetRootWidget ()
 
bool GetDimensions (out float width, out float height, bool addSafezones=true)
 
bool GetAnchorPosition (out float x, out float y, EWidgetAnchor anchor=EWidgetAnchor.TOPLEFT, bool addSafezones=true)
 
void RegisterToHudManager ()
 
private void CreateDisplayLegacy (IEntity owner)
 
protected override event void OnStartDraw (IEntity owner)
 
private void AdaptiveOpacity_Initialize ()
 
private void AdaptiveOpacity_OnScreenBrightnessChange (float opacity, float sceneBrightness)
 
protected void AdaptiveOpacity_Update (float opacity, float sceneBrightness, bool init=false)
 
protected override event void OnStopDraw (IEntity owner)
 
protected override event void UpdateValues (IEntity owner, float timeSlice)
 
protected override event void OnInit (IEntity owner)
 

Variables

 TOPLEFT
 
 TOP
 
 TOPRIGHT
 
 LEFT
 
 CENTER
 
 RIGHT
 
 BOTTOMLEFT
 
 BOTTOM
 
 BOTTOMRIGHT
 
EHudLayers m_eLayer
 
private bool m_bShowWhenCreated
 
int m_iOverrideZOrder
 
protected string m_sParentSlot
 
protected string m_sContentWidget
 
protected int m_iContentWidthAdjustment
 
protected int m_iContentHeightAdjustment
 
private bool m_bAdaptiveOpacity
 
protected string m_sAdaptiveOpacityWidgetName
 
protected ref array< ref SCR_InfoDisplayHandlerm_aHandlers
 
private Widget m_wAdaptiveOpacity
 
private float m_fAdaptiveOpacity = 1
 
protected bool m_bShown
 
protected Widget m_wRoot
 
protected Widget m_wContent
 
protected Widget m_wSlot
 
protected SCR_HUDManagerComponent m_HUDManager
 
protected int m_iChildDisplays = 0
 
protected ref array< BaseInfoDisplaym_aChildDisplays = new array<BaseInfoDisplay>
 
protected SCR_InfoDisplay m_pParentDisplay
 
protected bool m_bRegistered = false
 
protected IEntity m_OwnerEntity
 
protected ref array< ref SCR_InfoDisplayHandlerm_aUpdatableHandlers = {}
 
protected ref SCR_InfoDisplayInvoker m_OnStart = new SCR_InfoDisplayInvoker()
 
protected ref SCR_InfoDisplayInvoker m_OnStop = new SCR_InfoDisplayInvoker()
 

Typedef Documentation

◆ SCR_InfoDisplayInvoker

Definition at line 3 of file SCR_InfoDisplay.c.

◆ SCR_InfoDisplayStartStopCallback

Definition at line 2 of file SCR_InfoDisplay.c.

Enumeration Type Documentation

◆ EWidgetAnchor

Definition at line 8 of file SCR_InfoDisplay.c.

Function Documentation

◆ AdaptiveOpacity_Initialize()

private void AdaptiveOpacity_Initialize ( )

Definition at line 437 of file SCR_InfoDisplay.c.

◆ AdaptiveOpacity_OnScreenBrightnessChange()

private void AdaptiveOpacity_OnScreenBrightnessChange ( float  opacity,
float  sceneBrightness 
)

Definition at line 466 of file SCR_InfoDisplay.c.

◆ AdaptiveOpacity_Update()

protected void AdaptiveOpacity_Update ( float  opacity,
float  sceneBrightness,
bool  init = false 
)

Definition at line 472 of file SCR_InfoDisplay.c.

◆ Attribute()

enum EWidgetAnchor Attribute ( ""  ,
UIWidgets.  ResourceNamePicker,
"Layout"  ,
"layout"   
)

◆ CreateDisplayLegacy()

private void CreateDisplayLegacy ( IEntity  owner)

Definition at line 352 of file SCR_InfoDisplay.c.

◆ GetAnchorPosition()

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

Parameters
[out]x
[out]y
anchor
addSafezones
Returns
false if content widget is null, true otherwise

Definition at line 265 of file SCR_InfoDisplay.c.

◆ GetContentWidget()

Widget GetContentWidget ( )

Definition at line 110 of file SCR_InfoDisplay.c.

◆ GetContentWidgetName()

string GetContentWidgetName ( )

Definition at line 116 of file SCR_InfoDisplay.c.

◆ GetDimensions()

bool GetDimensions ( out float  width,
out float  height,
bool  addSafezones = true 
)

Get width and height of the InfoDisplay element, optionally with safezones adjustments

Parameters
[out]width
[out]height
addSafezones
Returns
false if content widget is null, true otherwise

Definition at line 234 of file SCR_InfoDisplay.c.

◆ GetHandler()

SCR_InfoDisplayHandler GetHandler ( typename handlerType  )

Definition at line 80 of file SCR_InfoDisplay.c.

◆ GetOnStart()

SCR_InfoDisplayInvoker GetOnStart ( )

Definition at line 92 of file SCR_InfoDisplay.c.

◆ GetOnStop()

SCR_InfoDisplayInvoker GetOnStop ( )

Definition at line 98 of file SCR_InfoDisplay.c.

◆ GetOwnerEntity()

IEntity GetOwnerEntity ( )

Definition at line 104 of file SCR_InfoDisplay.c.

◆ GetRootWidget()

Widget GetRootWidget ( )

Definition at line 223 of file SCR_InfoDisplay.c.

◆ IsShown()

bool IsShown ( )

Definition at line 217 of file SCR_InfoDisplay.c.

◆ OnShownFinished()

protected void OnShownFinished ( Widget  w,
float  targetOpacity,
WidgetAnimationOpacity  anim = null 
)

Definition at line 209 of file SCR_InfoDisplay.c.

◆ OnShownFinishedPrivate()

private void OnShownFinishedPrivate ( WidgetAnimationOpacity  anim)

Definition at line 196 of file SCR_InfoDisplay.c.

◆ OnStartDraw()

protected override event void OnStartDraw ( IEntity  owner)

Definition at line 408 of file SCR_InfoDisplay.c.

◆ OnStopDraw()

protected override event void OnStopDraw ( IEntity  owner)

Definition at line 520 of file SCR_InfoDisplay.c.

◆ RegisterToHudManager()

void RegisterToHudManager ( )

Definition at line 344 of file SCR_InfoDisplay.c.

◆ SCR_InfoDisplayStartStopCallback()

void SCR_InfoDisplayStartStopCallback ( SCR_InfoDisplay  display)

◆ SetContentWidget()

void SetContentWidget ( notnull Widget  content)

Definition at line 128 of file SCR_InfoDisplay.c.

◆ SetRootWidget()

void SetRootWidget ( notnull Widget  root)

Definition at line 122 of file SCR_InfoDisplay.c.

◆ Show()

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. Use this method instead of SetVisible/SetOpacity.

Parameters
showtrue to show, false to hide
speedfade rate, default 0
curvehiding interpolation, default linear

Definition at line 138 of file SCR_InfoDisplay.c.

◆ UpdateValues()

protected override event void UpdateValues ( IEntity  owner,
float  timeSlice 
)

Definition at line 547 of file SCR_InfoDisplay.c.

Variable Documentation

◆ BOTTOM

@ BOTTOM

Definition at line 11 of file SCR_InfoDisplay.c.

◆ BOTTOMLEFT

BOTTOMLEFT

Definition at line 10 of file SCR_InfoDisplay.c.

◆ BOTTOMRIGHT

BOTTOMRIGHT

Definition at line 13 of file SCR_InfoDisplay.c.

◆ CENTER

@ CENTER

Definition at line 8 of file SCR_InfoDisplay.c.

◆ LEFT

@ LEFT

Definition at line 7 of file SCR_InfoDisplay.c.

◆ m_aChildDisplays

protected ref array<BaseInfoDisplay> m_aChildDisplays = new array<BaseInfoDisplay>

Definition at line 69 of file SCR_InfoDisplay.c.

◆ m_aHandlers

protected ref array<ref SCR_InfoDisplayHandler> m_aHandlers

Definition at line 57 of file SCR_InfoDisplay.c.

◆ m_aUpdatableHandlers

protected ref array<ref SCR_InfoDisplayHandler> m_aUpdatableHandlers = {}

Definition at line 74 of file SCR_InfoDisplay.c.

◆ m_bAdaptiveOpacity

private bool m_bAdaptiveOpacity

Definition at line 51 of file SCR_InfoDisplay.c.

◆ m_bRegistered

protected bool m_bRegistered = false

Definition at line 71 of file SCR_InfoDisplay.c.

◆ m_bShown

protected bool m_bShown

Definition at line 61 of file SCR_InfoDisplay.c.

◆ m_bShowWhenCreated

private bool m_bShowWhenCreated

Definition at line 31 of file SCR_InfoDisplay.c.

◆ m_eLayer

EHudLayers m_eLayer

Definition at line 28 of file SCR_InfoDisplay.c.

◆ m_fAdaptiveOpacity

private float m_fAdaptiveOpacity = 1

Definition at line 60 of file SCR_InfoDisplay.c.

◆ m_HUDManager

protected SCR_HUDManagerComponent m_HUDManager

Definition at line 66 of file SCR_InfoDisplay.c.

◆ m_iChildDisplays

protected int m_iChildDisplays = 0

Definition at line 68 of file SCR_InfoDisplay.c.

◆ m_iContentHeightAdjustment

protected int m_iContentHeightAdjustment

Definition at line 47 of file SCR_InfoDisplay.c.

◆ m_iContentWidthAdjustment

protected int m_iContentWidthAdjustment

Definition at line 44 of file SCR_InfoDisplay.c.

◆ m_iOverrideZOrder

int m_iOverrideZOrder

Definition at line 34 of file SCR_InfoDisplay.c.

◆ m_OnStart

protected ref SCR_InfoDisplayInvoker m_OnStart = new SCR_InfoDisplayInvoker()

Definition at line 76 of file SCR_InfoDisplay.c.

◆ m_OnStop

protected ref SCR_InfoDisplayInvoker m_OnStop = new SCR_InfoDisplayInvoker()

Definition at line 77 of file SCR_InfoDisplay.c.

◆ m_OwnerEntity

protected IEntity m_OwnerEntity

Definition at line 73 of file SCR_InfoDisplay.c.

◆ m_pParentDisplay

protected SCR_InfoDisplay m_pParentDisplay

Definition at line 70 of file SCR_InfoDisplay.c.

◆ m_sAdaptiveOpacityWidgetName

protected string m_sAdaptiveOpacityWidgetName

Definition at line 54 of file SCR_InfoDisplay.c.

◆ m_sContentWidget

protected string m_sContentWidget

Definition at line 41 of file SCR_InfoDisplay.c.

◆ m_sParentSlot

protected string m_sParentSlot

Definition at line 37 of file SCR_InfoDisplay.c.

◆ m_wAdaptiveOpacity

private Widget m_wAdaptiveOpacity

Definition at line 59 of file SCR_InfoDisplay.c.

◆ m_wContent

protected Widget m_wContent

Definition at line 64 of file SCR_InfoDisplay.c.

◆ m_wRoot

protected Widget m_wRoot

Definition at line 63 of file SCR_InfoDisplay.c.

◆ m_wSlot

protected Widget m_wSlot

Definition at line 65 of file SCR_InfoDisplay.c.

◆ RIGHT

@ RIGHT

Definition at line 9 of file SCR_InfoDisplay.c.

◆ TOP

@ TOP

Definition at line 5 of file SCR_InfoDisplay.c.

◆ TOPLEFT

TOPLEFT

Definition at line 4 of file SCR_InfoDisplay.c.

◆ TOPRIGHT

TOPRIGHT

Definition at line 6 of file SCR_InfoDisplay.c.