|
Arma Reforger Script API
|
Public Member Functions | |
| void | InitMobileAssembly (string factionKey, bool deployed) |
| override void | UpdateIconPosition (Widget widget, SCR_MapUIElement icon, float x, float y) |
| Offset task icon so it doesn't overlap with base icon. | |
| void | RemoveSpawnPositionHint () |
| Called to hide Spawn Position hint if player is killed (or his entity disappear for some reason) | |
| int | GetBases (out notnull array< SCR_CampaignMapUIBase > bases) |
| Get all bases elements. | |
| void | SetHoveredBase (SCR_CampaignMilitaryBaseComponent base) |
| Sets provided base as hovered. | |
| BaseHoveredInvoker | GetOnBaseHovered () |
| ScriptInvokerVoid | GetOnBasesInited () |
| void | OnMapZoom (float pixelPerUnit) |
| override void | OnMapOpen (MapConfiguration config) |
| SCR_MapEntity event. | |
| override void | OnMapClose (MapConfiguration config) |
| SCR_MapEntity event. | |
| void | ~SCR_MapCampaignUI () |
Public Member Functions inherited from SCR_MapUIElementContainer | |
| override void | Init () |
| Init method for cases where all modules and components should be loaded already so constructor cannot be used, called once after creation. | |
| void | OnMapPan (float panX, float panY, bool adjustedPan) |
| void | RemoveIcon (SCR_MapUIElement icon) |
| void | OnSpawnPointSelectedExt (RplId id) |
| void | OnElementSelected (notnull SCR_MapUIElement element) |
| void | OnSpawnPointSelected (RplId spId=RplId.Invalid()) |
| SCR_MapUISpawnPoint | FindSpawnPoint (RplId id) |
| ScriptInvoker | GetOnSpawnPointSelected () |
| ScriptInvoker | GetOnElementSelected () |
| SCR_TaskMapUIComponent | GetTaskFromID (string taskID) |
Public Member Functions inherited from SCR_MapUIBaseComponent | |
| bool | IsConfigDisabled () |
| bool | IsExclusive () |
| void | SetActive (bool active, bool isCleanup=false) |
| Enable open/close events, called every time component is activated, usually on map open. | |
| void | Update (float timeSlice) |
| Update method for frame operations. | |
| bool | IsToolMenuFocused () |
| void | SCR_MapUIBaseComponent () |
Protected Member Functions | |
| void | InitBases () |
| override void | ShowSpawnPoint (notnull SCR_SpawnPoint spawnPoint) |
| void | CreatePlayerSpawnPositionHint () |
| void | HideSpawnPositionHint (int layer) |
| override void | OnSpawnPointFactionChange (SCR_SpawnPoint spawnPoint) |
Protected Member Functions inherited from SCR_MapUIElementContainer | |
| void | AddSpawnPoint (SCR_SpawnPoint spawnPoint) |
| void | RemoveSpawnPoint (SCR_SpawnPoint spawnPoint) |
| void | UpdateSpawnPointName (RplId id, string name) |
| void | HideSpawnPoint (RplId spawnPointId) |
| void | OnPlayerFactionResponse (SCR_PlayerFactionAffiliationComponent component, int factionIndex, bool response) |
| void | UpdateIcons () |
| void | InitSpawnPoints () |
| void | InitTaskMarkers () |
| Creates task icon for every task which is visible on map for player. | |
| void | InitTaskIcon (SCR_Task task) |
| Creates map icon for task. | |
| void | OnTaskAdded (SCR_Task task) |
| Creates task icon when task is added. | |
| void | OnTaskRemoved (notnull SCR_Task task) |
| Remove task icon from map when task is removed from system. | |
| void | RemoveAllIcons () |
| SCR_MapUIElement | FindSpawnPointIconById (RplId id) |
| void | OnPlayerGroupChanged (SCR_AIGroup group) |
Static Protected Attributes | |
| static const int | TASK_ICON_Y_OFFSET = 10 |
| void SCR_MapCampaignUI.~SCR_MapCampaignUI | ( | ) |
|
protected |
| int SCR_MapCampaignUI.GetBases | ( | out notnull array< SCR_CampaignMapUIBase > | bases | ) |
Get all bases elements.
| BaseHoveredInvoker SCR_MapCampaignUI.GetOnBaseHovered | ( | ) |
| ScriptInvokerVoid SCR_MapCampaignUI.GetOnBasesInited | ( | ) |
|
protected |
|
protected |
| void SCR_MapCampaignUI.InitMobileAssembly | ( | string | factionKey, |
| bool | deployed ) |
| override void SCR_MapCampaignUI.OnMapClose | ( | MapConfiguration | config | ) |
| override void SCR_MapCampaignUI.OnMapOpen | ( | MapConfiguration | config | ) |
| void SCR_MapCampaignUI.OnMapZoom | ( | float | pixelPerUnit | ) |
|
protected |
Implements SCR_MapUIElementContainer.
| void SCR_MapCampaignUI.RemoveSpawnPositionHint | ( | ) |
Called to hide Spawn Position hint if player is killed (or his entity disappear for some reason)
| void SCR_MapCampaignUI.SetHoveredBase | ( | SCR_CampaignMilitaryBaseComponent | base | ) |
Sets provided base as hovered.
| [in] | base |
|
protected |
Implements SCR_MapUIElementContainer.
| override void SCR_MapCampaignUI.UpdateIconPosition | ( | Widget | widget, |
| SCR_MapUIElement | icon, | ||
| float | x, | ||
| float | y ) |
Offset task icon so it doesn't overlap with base icon.
Implements SCR_MapUIElementContainer.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |