Arma Reforger Script API
|
Public Member Functions | |
void | UpdateElevationInfo (vector aimRotation) |
override void | SetupHeadingWidgets (ResourceName headingHolderLayout="", ResourceName headingNotchLayout="") |
Create all needed Widgets that display the current and next / previous heading. | |
override void | CalculateWidgetScreenSizeUnscaled (Widget widget) |
Calculate the size in screenspace 1 widget takes. | |
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) |
![]() | |
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) |
![]() | |
void | SetEnabled (bool isEnabled) |
![]() | |
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 () |
![]() | |
proto external int | GetInfoDisplays (out notnull array< BaseInfoDisplay > outInfoDisplays) |
![]() | |
proto external GenericComponent | FindComponentInParentContainer (TypeName typeName) |
Protected Member Functions | |
void | UpdateElevationWidgets () |
![]() | |
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. | |
![]() | |
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 () |
![]() | |
void | OnShownFinished (Widget w, float targetOpacity, WidgetAnimationOpacity anim=null) |
void | AdaptiveOpacity_Update (float opacity, float sceneBrightness, bool init=false) |
Additional Inherited Members | |
![]() | |
ResourceName | m_LayoutPath |
EHudLayers | m_eLayer |
int | m_iOverrideZOrder |
override void SCR_BaseWeaponElevationDisplay.CalculateScreenSize | ( | Widget | degreeWidget | ) |
Calculate the current screensize in DPI unscaled format.
[in] | Widget | which will be used to get the size from |
Implements SCR_BaseHeadingDisplay.
override void SCR_BaseWeaponElevationDisplay.CalculateWidgetScreenSizeUnscaled | ( | Widget | widget | ) |
Calculate the size in screenspace 1 widget takes.
[in] | widget | that will be used to get the size from |
Implements SCR_BaseHeadingDisplay.
override void SCR_BaseWeaponElevationDisplay.DisplayStartDraw | ( | IEntity | owner | ) |
Implements SCR_BaseHeadingDisplay.
Implemented in SCR_MortarElevationDisplay.
override void SCR_BaseWeaponElevationDisplay.DisplayUpdate | ( | IEntity | owner, |
float | timeSlice ) |
Implements SCR_BaseHeadingDisplay.
override void SCR_BaseWeaponElevationDisplay.SetupHeadingWidgets | ( | ResourceName | headingHolderLayout = "", |
ResourceName | headingNotchLayout = "" ) |
Create all needed Widgets that display the current and next / previous heading.
[in] | headingHolderLayout | resource name of the layout that will be used for holding the notches |
[in] | headingNotchLayout | resource name of the layout which will be used to create notches |
Implements SCR_BaseHeadingDisplay.
void SCR_BaseWeaponElevationDisplay.UpdateElevationInfo | ( | vector | aimRotation | ) |
|
protected |
|
protected |
|
protected |