![]() |
Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Protected Member Functions | |
| override bool | DisplayStartDrawInit (IEntity owner) |
| Checks the prerequisites for this InfoDisplay. | |
| void | SortAreas (array< SCR_CaptureAndHoldArea > areas) |
| void | ClearObjectiveDisplays (bool emptyOnly) |
| void | CreateObjectiveDisplays (array< SCR_CaptureAndHoldArea > areas) |
| Creates and fills the objective collection using provided areas. | |
| 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. | |
Protected Attributes | |
| ResourceName | m_rObjectiveHUDLayout |
| HorizontalLayoutWidget | m_wAreaLayoutWidget |
| Parent frame that holds all area markers. | |
| ref array< ref SCR_CaptureAndHoldObjectiveDisplayObject > | m_aObjectiveElements = {} |
| Array of all wrappers for the individual objective areas. | |
| ref array< ref SCR_CaptureAndHoldTeamScoreDisplayObject > | m_aScoringElements = {} |
| Array of all wrappers for the individual teams. | |
| Widget | m_wScoringFrame |
| Parent frame that holds all scoring widgets. | |
| TextWidget | m_wRemainingTimeWidget |
| Used to display remaining time (if any). | |
| SCR_CaptureAndHoldManager | m_pAreaManager |
| Area manager provides us with necessary API. | |
| SCR_BaseGameMode | m_pGameMode |
| Game mode instance. | |
| const float | POINTS_LAYOUT_FADE_SPEED = 5.0 |
| Speed used to fade areas hud when hints are shown. | |
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.
Definition at line 14 of file SCR_CaptureAndHoldTeamScoreDisplay.c.
|
inlineprotected |
Removes objective displays from the collection.
| emptyOnly | If true, empty (not linking to area) objects are removed. If false, all objects are flushed immediately. |
Definition at line 91 of file SCR_CaptureAndHoldTeamScoreDisplay.c.
|
inlineprotected |
Creates and fills the objective collection using provided areas.
Definition at line 112 of file SCR_CaptureAndHoldTeamScoreDisplay.c.
|
inlineprotected |
Creates individual hud elements.
Definition at line 142 of file SCR_CaptureAndHoldTeamScoreDisplay.c.
|
inlineprotected |
Checks the prerequisites for this InfoDisplay.
Definition at line 44 of file SCR_CaptureAndHoldTeamScoreDisplay.c.
|
inlineprotected |
Clears all hud elements.
Definition at line 198 of file SCR_CaptureAndHoldTeamScoreDisplay.c.
|
inlineprotected |
Updates the progress and state of all available elements.
Definition at line 214 of file SCR_CaptureAndHoldTeamScoreDisplay.c.
|
inlineprotected |
Sorts input array of areas by their name. Names must be unique!
Definition at line 64 of file SCR_CaptureAndHoldTeamScoreDisplay.c.
|
protected |
Array of all wrappers for the individual objective areas.
Definition at line 23 of file SCR_CaptureAndHoldTeamScoreDisplay.c.
|
protected |
Array of all wrappers for the individual teams.
Definition at line 26 of file SCR_CaptureAndHoldTeamScoreDisplay.c.
|
protected |
Area manager provides us with necessary API.
Definition at line 35 of file SCR_CaptureAndHoldTeamScoreDisplay.c.
|
protected |
Game mode instance.
Definition at line 37 of file SCR_CaptureAndHoldTeamScoreDisplay.c.
|
protected |
Definition at line 17 of file SCR_CaptureAndHoldTeamScoreDisplay.c.
|
protected |
Parent frame that holds all area markers.
Definition at line 20 of file SCR_CaptureAndHoldTeamScoreDisplay.c.
|
protected |
Used to display remaining time (if any).
Definition at line 32 of file SCR_CaptureAndHoldTeamScoreDisplay.c.
|
protected |
Parent frame that holds all scoring widgets.
Definition at line 29 of file SCR_CaptureAndHoldTeamScoreDisplay.c.
|
protected |
Speed used to fade areas hud when hints are shown.
Definition at line 40 of file SCR_CaptureAndHoldTeamScoreDisplay.c.