Arma Reforger Script API
|
Public Member Functions | |
void | OnWeaponChanged (BaseWeaponComponent weapon, BaseWeaponComponent prevWeapon) |
void | OnMuzzleChanged_init (BaseWeaponComponent weapon) |
void | OnMuzzleChanged (BaseWeaponComponent weapon, BaseMuzzleComponent muzzle, BaseMuzzleComponent prevMuzzle) |
void | OnMagazineChanged_init (BaseWeaponComponent weapon, BaseMuzzleComponent muzzle) |
void | OnMagazineChanged (BaseWeaponComponent weapon, BaseMagazineComponent magazine, BaseMagazineComponent prevMagazine) |
void | OnMagazineCountChanged_init (BaseWeaponComponent weapon, BaseMagazineComponent magazine) |
void | OnMagazineCountChanged (BaseWeaponComponent weapon, int magazineCount, bool isGrenade) |
void | OnAmmoCountChanged_init (BaseWeaponComponent weapon, BaseMagazineComponent magazine) |
void | OnAmmoCountChanged (BaseWeaponComponent weapon, BaseMuzzleComponent muzzle, BaseMagazineComponent magazine, int ammoCount, bool isBarrelChambered) |
void | OnFiremodeChanged_init (BaseWeaponComponent weapon, BaseMuzzleComponent muzzle) |
void | OnFiremodeChanged (BaseWeaponComponent weapon, BaseMuzzleComponent muzzle, BaseFireMode firemode) |
void | OnZeroingChanged_init (BaseWeaponComponent weapon) |
void | OnZeroingChanged (BaseWeaponComponent weapon, int zeroing) |
void | OnADSChanged_init (BaseWeaponComponent weapon) |
void | OnADSChanged (BaseWeaponComponent weapon, bool inADS) |
void | OnZoomChanged_init (BaseWeaponComponent weapon) |
void | OnZoomChanged (float zoom, float fov) |
void | OnInspectionModeChanged (bool state) |
void | OnAttachmentChanged (WeaponComponent weapon, bool isAttached, IEntity attachmentEntity) |
override void | DisplayUpdate (IEntity owner, float timeSlice) |
void | FadeElements () |
SCR_2DSightsComponent | GetSights () |
SCR_MagazineIndicatorConfiguration | GetMagazineConfig (SCR_WeaponState state) |
void | UpdateFireModeIndicator (SCR_WeaponState state) |
void | UpdateZeroingIndicator (SCR_WeaponState state) |
void | UpdateZoomIndicator (SCR_WeaponState state) |
void | UpdateAmmoTypeIndicator (SCR_WeaponState state) |
void | AnimateWidget_ColorFlash (Widget w, EWeaponFeature requiredFlag=-1, float speed=UIConstants.FADE_RATE_SLOW) |
void | AnimateWidget_TextPopUp (Widget w, float size, float sizeBoosted, EWeaponFeature requiredFlag=-1, float speed=UIConstants.FADE_RATE_SLOW) |
override bool | DisplayStartDrawInit (IEntity owner) |
override void | DisplayStartDraw (IEntity owner) |
override void | DisplayStopDraw (IEntity owner) |
void | AddEventHandlers (IEntity owner) |
void | RemoveEventHandlers (IEntity owner) |
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) |
Public Attributes | |
ref SCR_WeaponInfoWidgets | m_Widgets |
ref SCR_MagazinePredicate | m_pMagazineSearchPredicate = new SCR_MagazinePredicate() |
ref SCR_PrefabDataPredicate | m_pPrefabDataPredicate = new SCR_PrefabDataPredicate() |
Public Attributes inherited from SCR_InfoDisplay | |
ResourceName | m_LayoutPath |
EHudLayers | m_eLayer |
int | m_iOverrideZOrder |
Static Public Attributes | |
const int | SIZE_FIREMODE = 50 |
const int | SIZE_MAGAZINE = 77 |
const float | UPDATE_INTERVAL = 0.1 |
const float | FADED_OPACITY = 0.3 |
static const ref Color | COLOR_WHITE = Color.FromSRGBA(255, 255, 255, 255) |
static const ref Color | COLOR_ORANGE = Color.FromSRGBA(226, 167, 79, 255) |
Protected Member Functions | |
void | UpdateMagazineIndicator_Textures (SCR_WeaponState state) |
void | UpdateMagazineIndicator_Progress (SCR_WeaponState state) |
void | UpdateMagazineIndicator_Count (SCR_WeaponState state) |
void | UpdateBulletInChamberIndicator (SCR_WeaponState state) |
void | UpdateWeaponNameAndCaliber (SCR_WeaponState state) |
BaseWeaponManagerComponent | GetWeaponManager (IEntity owner) |
void | SetWidgetImage (ImageWidget w, string imageOrImageset, string imageName="", int size=-1) |
Sets widget's image to an image or imageset. | |
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) |
Static Protected Member Functions | |
static InventoryStorageManagerComponent | GetInventoryManager () |
Returns player's inventory manager, or vehicle's inv manager if player is in vehicle. | |
Static Protected Attributes | |
const float | FADEOUT_PANEL_DELAY = 6 |
const float | FADEOUT_OPTICS_DELAY = 6 |
const float | FADEOUT_AMMO_TYPE_DELAY = 6 |
const ResourceName | DEFAULT_WEAPON_INFO_LAYOUT = "{8170DE93810F928A}UI/layouts/HUD/WeaponInfo/WeaponInfo.layout" |
const ResourceName | DEFAULT_MAGAZINE_INDICATOR = "{7C114BA7C59E198D}Configs/WeaponInfo/MagazineIndicators/box.conf" |
void SCR_WeaponInfo.AddEventHandlers | ( | IEntity | owner | ) |
Implemented in SCR_WeaponInfoVehicle.
void SCR_WeaponInfo.AnimateWidget_ColorFlash | ( | Widget | w, |
EWeaponFeature | requiredFlag = -1 , |
||
float | speed = UIConstants::FADE_RATE_SLOW |
||
) |
void SCR_WeaponInfo.AnimateWidget_TextPopUp | ( | Widget | w, |
float | size, | ||
float | sizeBoosted, | ||
EWeaponFeature | requiredFlag = -1 , |
||
float | speed = UIConstants::FADE_RATE_SLOW |
||
) |
override void SCR_WeaponInfo.DisplayStartDraw | ( | IEntity | owner | ) |
Implements SCR_InfoDisplayExtended.
override bool SCR_WeaponInfo.DisplayStartDrawInit | ( | IEntity | owner | ) |
Implements SCR_InfoDisplayExtended.
Implemented in SCR_WeaponInfoVehicle.
override void SCR_WeaponInfo.DisplayStopDraw | ( | IEntity | owner | ) |
Implements SCR_InfoDisplayExtended.
override void SCR_WeaponInfo.DisplayUpdate | ( | IEntity | owner, |
float | timeSlice | ||
) |
Implements SCR_InfoDisplayExtended.
Implemented in SCR_WeaponInfoVehicle.
void SCR_WeaponInfo.FadeElements | ( | ) |
|
staticprotected |
Returns player's inventory manager, or vehicle's inv manager if player is in vehicle.
SCR_MagazineIndicatorConfiguration SCR_WeaponInfo.GetMagazineConfig | ( | SCR_WeaponState | state | ) |
SCR_2DSightsComponent SCR_WeaponInfo.GetSights | ( | ) |
Implemented in SCR_WeaponInfoVehicle.
|
protected |
void SCR_WeaponInfo.OnADSChanged | ( | BaseWeaponComponent | weapon, |
bool | inADS | ||
) |
void SCR_WeaponInfo.OnADSChanged_init | ( | BaseWeaponComponent | weapon | ) |
void SCR_WeaponInfo.OnAmmoCountChanged | ( | BaseWeaponComponent | weapon, |
BaseMuzzleComponent | muzzle, | ||
BaseMagazineComponent | magazine, | ||
int | ammoCount, | ||
bool | isBarrelChambered | ||
) |
void SCR_WeaponInfo.OnAmmoCountChanged_init | ( | BaseWeaponComponent | weapon, |
BaseMagazineComponent | magazine | ||
) |
void SCR_WeaponInfo.OnAttachmentChanged | ( | WeaponComponent | weapon, |
bool | isAttached, | ||
IEntity | attachmentEntity | ||
) |
void SCR_WeaponInfo.OnFiremodeChanged | ( | BaseWeaponComponent | weapon, |
BaseMuzzleComponent | muzzle, | ||
BaseFireMode | firemode | ||
) |
void SCR_WeaponInfo.OnFiremodeChanged_init | ( | BaseWeaponComponent | weapon, |
BaseMuzzleComponent | muzzle | ||
) |
void SCR_WeaponInfo.OnInspectionModeChanged | ( | bool | state | ) |
void SCR_WeaponInfo.OnMagazineChanged | ( | BaseWeaponComponent | weapon, |
BaseMagazineComponent | magazine, | ||
BaseMagazineComponent | prevMagazine | ||
) |
void SCR_WeaponInfo.OnMagazineChanged_init | ( | BaseWeaponComponent | weapon, |
BaseMuzzleComponent | muzzle | ||
) |
void SCR_WeaponInfo.OnMagazineCountChanged | ( | BaseWeaponComponent | weapon, |
int | magazineCount, | ||
bool | isGrenade | ||
) |
void SCR_WeaponInfo.OnMagazineCountChanged_init | ( | BaseWeaponComponent | weapon, |
BaseMagazineComponent | magazine | ||
) |
void SCR_WeaponInfo.OnMuzzleChanged | ( | BaseWeaponComponent | weapon, |
BaseMuzzleComponent | muzzle, | ||
BaseMuzzleComponent | prevMuzzle | ||
) |
Implemented in SCR_WeaponInfoVehicle.
void SCR_WeaponInfo.OnMuzzleChanged_init | ( | BaseWeaponComponent | weapon | ) |
void SCR_WeaponInfo.OnWeaponChanged | ( | BaseWeaponComponent | weapon, |
BaseWeaponComponent | prevWeapon | ||
) |
void SCR_WeaponInfo.OnZeroingChanged | ( | BaseWeaponComponent | weapon, |
int | zeroing | ||
) |
void SCR_WeaponInfo.OnZeroingChanged_init | ( | BaseWeaponComponent | weapon | ) |
void SCR_WeaponInfo.OnZoomChanged | ( | float | zoom, |
float | fov | ||
) |
void SCR_WeaponInfo.OnZoomChanged_init | ( | BaseWeaponComponent | weapon | ) |
void SCR_WeaponInfo.RemoveEventHandlers | ( | IEntity | owner | ) |
Implemented in SCR_WeaponInfoVehicle.
|
protected |
Sets widget's image to an image or imageset.
void SCR_WeaponInfo.UpdateAmmoTypeIndicator | ( | SCR_WeaponState | state | ) |
|
protected |
void SCR_WeaponInfo.UpdateFireModeIndicator | ( | SCR_WeaponState | state | ) |
|
protected |
|
protected |
|
protected |
|
protected |
void SCR_WeaponInfo.UpdateZeroingIndicator | ( | SCR_WeaponState | state | ) |
void SCR_WeaponInfo.UpdateZoomIndicator | ( | SCR_WeaponState | state | ) |
|
static |
|
static |
|
staticprotected |
|
staticprotected |
|
static |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
ref SCR_MagazinePredicate SCR_WeaponInfo.m_pMagazineSearchPredicate = new SCR_MagazinePredicate() |
ref SCR_PrefabDataPredicate SCR_WeaponInfo.m_pPrefabDataPredicate = new SCR_PrefabDataPredicate() |
|
protected |
|
protected |
|
protected |
ref SCR_WeaponInfoWidgets SCR_WeaponInfo.m_Widgets |
|
protected |
|
static |
|
static |
|
static |