Arma Reforger Script API
|
Public Member Functions | |
void | SetupOpticImage () |
Setup images and right texture sizing. | |
void | UpdateCurrentFov (bool forceUpdate=false) |
void | UpdateReticleSize () |
Setup images and right texture sizing. | |
void | GetOpticData () |
Get optic data for quick retrieval later. | |
void | UpdateScale (float reticleScale, float vignetteScale, float objectiveScale) |
Update widget sizes according to the screen height and DPI scale. | |
void | SetReticleOffset (float x, float y) |
Change reticle texture position with angular offset. | |
Public Member Functions inherited from SCR_InfoDisplayExtended | |
void | SetEnabled (bool isEnabled) |
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. | |
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 float | LayerDefaultPosition (float screenSize, float layerSize) |
Static Public Attributes | |
const string | WIDGET_LAYOUT_REAR = "HRearEyePiece" |
const string | WIDGET_LAYOUT_FRONT = "HFrontObjective" |
const string | WIDGET_IMAGE_COVER = "ImgCover" |
const string | WIDGET_SIZE_REAR = "SizeRear" |
const string | WIDGET_SIZE_OBJECTIVE = "SizeFrontObjective" |
const string | WIDGET_IMAGE_PADDING_LEFT = "ImgPaddingLeft" |
const string | WIDGET_IMAGE_PADDING_RIGHT = "ImgPaddingRight" |
const string | WIDGET_IMAGE_PADDING_TOP = "ImgPaddingTop" |
const string | WIDGET_IMAGE_PADDING_BOTTOM = "ImgPaddingBottom" |
const string | WIDGET_OVERLAY_RETICLES = "OverlayReticles" |
const string | WIDGET_IMAGE_RETICLE = "ImgReticle" |
const string | WIDGET_IMAGE_RETICLE_GLOW = "ImgReticleGlow" |
const string | WIDGET_IMAGE_VIGNETTE = "ImgVignette" |
const string | WIDGET_IMAGE_SCRATCHES = "ImgScratches" |
const string | WIDGET_BLUR = "Blur" |
const string | WIDGET_IMAGE_FILTER = "ImgFilter" |
const string | WIDGET_SIZE_LEFT = "SizePaddingLeft" |
const string | WIDGET_SIZE_TOP = "SizePaddingTop" |
const float | OPACITY_INITIAL = 0.75 |
Protected Member Functions | |
void | OnLayoutChanged (SCR_HUDLayout newLayout, SCR_HUDLayout oldLayout, SCR_HUDManagerComponent hudManager) |
override void | DisplayStartDraw (IEntity owner) |
override void | DisplayStopDraw (IEntity owner) |
override void | DisplayUpdate (IEntity owner, float timeSlice) |
void | FindWidgets () |
Find widget refences. | |
void | OnADSChange (notnull SCR_2DOpticsComponent comp, bool inADS) |
void | Activate () |
void | Deactivate () |
Stop any running animation for entering Scope and disable the layout after some delay. | |
void | PlayEntryAnimation (float animationSpeed) |
Start optics entring animation. | |
void | DeactivateWidget () |
Open optics hud with animation delay. | |
void | LowerBlurIntensity (float timeSlice, float speed) |
Bring down lens blur intensity in steps. | |
void | ChangeReticleTint (Color color, Color colorGlow) |
Change color of Reticle Image. | |
void | MoveScopeWidgets (float timeSlice) |
Apply result movement to scope widgets. | |
void | MotionBlur (float posX, float posY) |
Protected Member Functions inherited from SCR_InfoDisplayExtended | |
bool | DisplayStartDrawInit (IEntity owner) |
void | DisplayStartDraw (IEntity owner) |
void | DisplayStopDraw (IEntity owner) |
void | DisplayInit (IEntity owner) |
void | DisplayUpdate (IEntity owner, float timeSlice) |
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) |
override void | OnStartDraw (IEntity owner) |
void | AdaptiveOpacity_Update (float opacity, float sceneBrightness, bool init=false) |
override void | OnStopDraw (IEntity owner) |
override void | UpdateValues (IEntity owner, float timeSlice) |
override void | OnInit (IEntity owner) |
void | OnInit (IEntity owner) |
void | UpdateValues (IEntity owner, float timeSlice) |
void | OnStartDraw (IEntity owner) |
void | OnStopDraw (IEntity owner) |
Additional Inherited Members | |
Public Attributes inherited from SCR_InfoDisplay | |
ResourceName | m_LayoutPath |
EHudLayers | m_eLayer |
int | m_iOverrideZOrder |
|
protected |
|
protected |
Change color of Reticle Image.
color | |
colorGlow |
|
protected |
Stop any running animation for entering Scope and disable the layout after some delay.
|
protected |
Open optics hud with animation delay.
|
protected |
Implements SCR_InfoDisplayExtended.
|
protected |
Implements SCR_InfoDisplayExtended.
|
protected |
Implements SCR_InfoDisplayExtended.
|
protected |
Find widget refences.
void SCR_2DOpticsDisplay.GetOpticData | ( | ) |
Get optic data for quick retrieval later.
|
static |
|
protected |
Bring down lens blur intensity in steps.
timeSlice | |
speed |
|
protected |
|
protected |
Apply result movement to scope widgets.
|
protected |
|
protected |
|
protected |
Start optics entring animation.
animationSpeed |
void SCR_2DOpticsDisplay.SetReticleOffset | ( | float | x, |
float | y | ||
) |
Change reticle texture position with angular offset.
x | x-axis offset value left (-) / right (+) |
y | y-axis offset value down (-) / up (+) |
void SCR_2DOpticsDisplay.SetupOpticImage | ( | ) |
Setup images and right texture sizing.
void SCR_2DOpticsDisplay.UpdateCurrentFov | ( | bool | forceUpdate = false | ) |
void SCR_2DOpticsDisplay.UpdateReticleSize | ( | ) |
Setup images and right texture sizing.
void SCR_2DOpticsDisplay.UpdateScale | ( | float | reticleScale, |
float | vignetteScale, | ||
float | objectiveScale | ||
) |
Update widget sizes according to the screen height and DPI scale.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |