Arma Reforger Script API
|
Public Member Functions | |
SCR_BaseBallisticConfig | GetSelectedBallisticConfig () |
int | GetNumberOfBallisticConfigs () |
bool | GetHasDifferentChargeConfigs () |
Returns true when this display has at least two configs for the same shell with different init speeds. | |
void | ChangeShellType (float direction=0) |
Method used to change what ballistic data is shown. | |
void | ChangeShellCharge (float direction=0) |
Method used to change what charge ring config is shown for current shell type. | |
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 | DisplayUpdate (IEntity owner, float timeSlice) |
override void | DisplayStopDraw (IEntity owner) |
override void | DisplayStartDraw (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 | UpdateConfig (bool playSound=true) |
Method used to update currently displayed ballistic config. | |
array< string > | GetBallisticInfo (float elevation) |
Set azimuth and elevation info. | |
void | UpdateBallisticInfo (vector aimRotation) |
vector | GetMuzzleDirection () |
Get muzzle rotation vector. | |
void | SetupWidgets () |
void | ShowDelay (bool show, float speed=UIConstants.FADE_RATE_INSTANT) |
Calls the SCR_InfoDisplayExtended.Show method after some delay. | |
override void | OnSettingsChanged () |
void | AddActionListeners () |
void | RemoveActionListeners () |
![]() | |
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 | OnShownFinished (Widget w, float targetOpacity, WidgetAnimationOpacity anim=null) |
void | AdaptiveOpacity_Update (float opacity, float sceneBrightness, bool init=false) |
Static Protected Attributes | |
const string | TEXT_EMPTY = "-" |
Additional Inherited Members | |
![]() | |
ResourceName | m_LayoutPath |
EHudLayers | m_eLayer |
int | m_iOverrideZOrder |
|
protected |
void SCR_BallisticTableDisplay.ChangeShellCharge | ( | float | direction = 0 | ) |
Method used to change what charge ring config is shown for current shell type.
void SCR_BallisticTableDisplay.ChangeShellType | ( | float | direction = 0 | ) |
Method used to change what ballistic data is shown.
override void SCR_BallisticTableDisplay.DisplayStartDraw | ( | IEntity | owner | ) |
Implements SCR_InfoDisplayExtended.
override void SCR_BallisticTableDisplay.DisplayStopDraw | ( | IEntity | owner | ) |
Implements SCR_InfoDisplayExtended.
override void SCR_BallisticTableDisplay.DisplayUpdate | ( | IEntity | owner, |
float | timeSlice ) |
Implements SCR_InfoDisplayExtended.
|
protected |
Set azimuth and elevation info.
bool SCR_BallisticTableDisplay.GetHasDifferentChargeConfigs | ( | ) |
Returns true when this display has at least two configs for the same shell with different init speeds.
|
protected |
Get muzzle rotation vector.
int SCR_BallisticTableDisplay.GetNumberOfBallisticConfigs | ( | ) |
SCR_BaseBallisticConfig SCR_BallisticTableDisplay.GetSelectedBallisticConfig | ( | ) |
|
protected |
Implements SCR_InfoDisplayExtended.
|
protected |
|
protected |
override void SCR_BallisticTableDisplay.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.
show | true to show, false to hide |
speed | fade rate, default 0 |
curve | hiding interpolation, default linear |
Implements SCR_InfoDisplayExtended.
|
protected |
Calls the SCR_InfoDisplayExtended.Show method after some delay.
[in] | bool,True | if it can be shown, false otherwise |
[in] | float,Fade | speed |
|
protected |
|
protected |
Method used to update currently displayed ballistic config.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |