|
Arma Reforger Script API
|
This InfoDisplay allows drawing of individual HUD scoring elements for individual Capture & Hold factions. More...
Public Member Functions | |
| override bool | DisplayStartDrawInit (IEntity owner) |
| Checks the prerequisites for this InfoDisplay. | |
| override void | DisplayStartDraw (IEntity owner) |
| Creates individual hud elements. | |
| override void | DisplayStopDraw (IEntity owner) |
| Clears all hud elements. | |
| override void | DisplayUpdate (IEntity owner, float timeSlice) |
| Updates the progress and state of all available elements. | |
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) |
| 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) |
Protected Member Functions | |
| void | SortAreas (array< SCR_CaptureAndHoldArea > areas) |
| Sorts input array of areas by their name. | |
| void | ClearObjectiveDisplays (bool emptyOnly) |
| Removes objective displays from the collection. | |
| void | CreateObjectiveDisplays (array< SCR_CaptureAndHoldArea > areas) |
| Creates and fills the objective collection using provided areas. | |
Protected Member Functions inherited from SCR_InfoDisplayExtended | |
| 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 () |
Protected Member Functions inherited from SCR_InfoDisplay | |
| void | OnShownFinished (Widget w, float targetOpacity, WidgetAnimationOpacity anim=null) |
| void | AdaptiveOpacity_Update (float opacity, float sceneBrightness, bool init=false) |
Static Protected Attributes | |
| const float | POINTS_LAYOUT_FADE_SPEED = 5.0 |
| Speed used to fade areas hud when hints are shown. | |
Additional Inherited Members | |
Public Attributes inherited from SCR_InfoDisplay | |
| ResourceName | m_LayoutPath |
| EHudLayers | m_eLayer |
| int | m_iOverrideZOrder |
This InfoDisplay allows drawing of individual HUD scoring elements for individual Capture & Hold factions.
In addition it draws all available objectives in the screen space.
Note: This HUD element only supports two factions at a single given time. In addition only the US, USSR and FIA factions are supported. Using more than two factions will yield unexpected results.
Similar approach can be taken, but a list of elements or any other dynamically filled element would be a much more preferable choice.
|
protected |
Removes objective displays from the collection.
| emptyOnly | If true, empty (not linking to area) objects are removed. If false, all objects are flushed immediately. |
|
protected |
Creates and fills the objective collection using provided areas.
| override void SCR_CaptureAndHoldTeamScoreDisplay.DisplayStartDraw | ( | IEntity | owner | ) |
Creates individual hud elements.
Implements SCR_InfoDisplayExtended.
| override bool SCR_CaptureAndHoldTeamScoreDisplay.DisplayStartDrawInit | ( | IEntity | owner | ) |
Checks the prerequisites for this InfoDisplay.
Implements SCR_InfoDisplayExtended.
| override void SCR_CaptureAndHoldTeamScoreDisplay.DisplayStopDraw | ( | IEntity | owner | ) |
Clears all hud elements.
Implements SCR_InfoDisplayExtended.
| override void SCR_CaptureAndHoldTeamScoreDisplay.DisplayUpdate | ( | IEntity | owner, |
| float | timeSlice ) |
Updates the progress and state of all available elements.
Implements SCR_InfoDisplayExtended.
|
protected |
Sorts input array of areas by their name.
Names must be unique!
|
protected |
Array of all wrappers for the individual objective areas.
|
protected |
Array of all wrappers for the individual teams.
|
protected |
Area manager provides us with necessary API.
|
protected |
Game mode instance.
|
protected |
|
protected |
Parent frame that holds all area markers.
|
protected |
Used to display remaining time (if any).
|
protected |
Parent frame that holds all scoring widgets.
|
staticprotected |
Speed used to fade areas hud when hints are shown.