|
Arma Reforger Script API
|
Public Member Functions | |
| void | SCR_TaskManagerUIComponent (IEntityComponentSource src, IEntity ent, IEntity parent) |
| void | ~SCR_TaskManagerUIComponent () |
| override void | EOnInit (IEntity owner) |
| override void | EOnFrame (IEntity owner, float timeSlice) |
| void | ToggleCurrentTask () |
| Displays a hint with currently selected task. | |
| void | ShowTaskOnMap () |
| Requests panning map to task. If map is not opened - opens it. | |
| void | AssignTask (SCR_Task task=null) |
| Assigns provided task to the player. | |
| void | TaskHUDVisibilityChanged (bool newVisibility) |
| Invokes whenever task list on HUD is shown. | |
| void | SetSelectedTask (SCR_Task task) |
| Sets provided task as selected. | |
| void | SetHoveredTask (SCR_Task task) |
| Sets provided task as hovered. | |
| override void | OnPlayerConnected (int playerId) |
| Called after a player is connected. | |
| void | UpdateTaskColors (Color backgroundColor, Color iconColor, Color outlineColor) |
| Sets new colors on task icons. | |
| void | UpdateTaskBackground (ResourceName imageset, string name) |
| Sets new background of task. | |
| SCR_Task | GetSelectedTask () |
| SCR_Task | GetAssigedTask () |
| bool | IsTaskListOpen () |
| void | RegisterTaskList (SCR_TaskListUIComponent component) |
| Register task list component. | |
| bool | RefreshTaskList () |
| Register task list component. | |
| bool | SetTaskDescriptionVisiblity (bool newVisibility) |
| void | SetJournalVisibility (bool newVisibility) |
| Sets new visiblity of journal and hides task list. | |
| void | SetTaskListVisibility (bool newVisibility) |
| Sets new visiblity of task list and hides journal. | |
| SCR_TaskListUIComponent | GetTaskListComponent () |
| SCR_TaskListEntryDescriptionUIComponent | GetTaskDescriptionComponent () |
| ResourceName | GetDefaultImageset () |
| string | GetDefaultIcon () |
| bool | GetDisplayAssigneesOnMap () |
| array< SCR_ETaskTabType > | GetTaskTabs () |
| ScriptInvokerBool | GetOnTaskHUDVisible () |
| SCR_TaskColorsUpdatedInvoker | GetOnTaskColorsUpdated () |
| SCR_TaskBackgroundUpdatedInvoker | GetOnTaskBackgroundUpdated () |
| SCR_TaskSelectedInvoker | GetOnTaskSelected () |
| SCR_TaskAssignedInvoker | GetOnTaskAssigned () |
| SCR_TaskHoveredInvoker | GetOnTaskHovered () |
Public Member Functions inherited from SCR_BaseGameModeComponent | |
| SCR_BaseGameMode | GetGameMode () |
| void | OnGameEnd () |
| Called on all machines when the world ends. | |
| void | OnGameStateChanged (SCR_EGameModeState state) |
| Called when game mode state changes called on all machines. | |
| void | OnGameModeStart () |
| Called on every machine when game mode starts. | |
| void | OnGameModeEnd (SCR_GameModeEndData data) |
| Called when game mode ends. | |
| void | OnPlayerAuditSuccess (int playerId) |
| Event is called when player connecting Session hosting current Game Mode where is required authentication verification via. | |
| void | OnPlayerAuditFail (int playerId) |
| Event is called when player connecting Session hosting current Game Mode AuditFail() call may be called under two occasions: 1) verification is required but failed (account is not valid, player is banned, internet issues) 2) player cannot be verified as authentication is not required or possible - where it may be valid behavior (server online connectivity turned off for example) Basically non-audited player cannot access persistency/ etc. | |
| void | OnPlayerAuditTimeouted (int playerId) |
| Event is called when player connected to Session was kicked and did not reconnected in time This mean that slot reservation can be canceled. | |
| void | OnPlayerAuditRevived (int playerId) |
| Event is called when player reconnected successfully back to Session after kick This mean that slot reservation need to be finished (closed). | |
| void | OnPlayerRegistered (int playerId) |
| Called on every machine after a player is registered (identity, name etc.). | |
| void | OnPlayerDisconnected (int playerId, KickCauseCode cause, int timeout) |
| Called after a player is disconnected. | |
| bool | PreparePlayerEntity_S (SCR_SpawnRequestComponent requestComponent, SCR_SpawnHandlerComponent handlerComponent, SCR_SpawnData data, IEntity entity) |
| void | OnSpawnPlayerEntityFailure_S (SCR_SpawnRequestComponent requestComponent, SCR_SpawnHandlerComponent handlerComponent, IEntity entity, SCR_SpawnData data, SCR_ESpawnResult reason) |
| void | OnPlayerSpawnFinalize_S (SCR_SpawnRequestComponent requestComponent, SCR_SpawnHandlerComponent handlerComponent, SCR_SpawnData data, IEntity entity) |
| bool | HandlePlayerKilled (int playerId, IEntity playerEntity, IEntity killerEntity, notnull Instigator instigator) |
| See SCR_BaseGameMode.HandlePlayerKilled. | |
| void | OnPlayerKilled (notnull SCR_InstigatorContextData instigatorContextData) |
| Called after a player gets killed. | |
| void | OnPlayerKilledHandled (int playerId, IEntity playerEntity, IEntity killerEntity, notnull Instigator instigator) |
| Called after player gets killed in cases where the kill was handled by the game mode, supressing the default OnPlayerKilled behaviour. | |
| void | OnPlayerDeleted (int playerId, IEntity player) |
| Called after a player gets deleted. | |
| void | OnPlayerRoleChange (int playerId, EPlayerRole roleFlags) |
| Called when player role changes. | |
| void | OnWorldPostProcess (World world) |
| Called once loading of all entities of the world have been finished (still within the loading) | |
| void | OnControllableSpawned (IEntity entity) |
| When a controllable entity is spawned, this event is raised. | |
| void | OnControllableDestroyed (notnull SCR_InstigatorContextData instigatorContextData) |
| When a controllable entity is destroyed, this event is raised. | |
| void | OnControllableDeleted (IEntity entity) |
| Prior to a controllable entity being DELETED, this event is raised. | |
| void | SCR_BaseGameModeComponent (IEntityComponentSource src, IEntity ent, IEntity parent) |
Static Public Member Functions | |
| static SCR_TaskManagerUIComponent | GetInstance () |
Static Public Attributes | |
| static SCR_TaskManagerUIComponent | s_Instance |
Protected Member Functions | |
| void | PanMapToTask (string taskID=string.Empty, SCR_Task task=null) |
| Moves camera to task position in map view. | |
| void | CloseTaskList () |
| Closes task list. | |
| void | OnControlledEntityChanged (IEntity from, IEntity to) |
| SCR_PlayerController Event Used to reinit Task manager Component when new entity is controlled. | |
| void | LifeStateChanged (ECharacterLifeState previousLifeState, ECharacterLifeState newLifeState) |
| void | OnClientPlayerRegistered (int playerId) |
| void | OnClientControlledEntityChanged (IEntity from, IEntity to) |
| void | OnGroupChanged (int groupID) |
Protected Attributes | |
| ResourceName | m_sTaskHintLayout |
| float | m_fCurrentTaskShowTime |
| ResourceName | m_sDefaultImageset |
| string | m_sDefaultIcon |
| bool | m_bDisplayOfAssigneesOnMap |
| bool | m_bShowCurrentTaskOnRespawn |
| string | m_sTaskTabConfig |
| ref SCR_TaskSelectedInvoker | m_OnTaskSelected |
| ref SCR_TaskAssignedInvoker | m_OnTaskAssigned |
| ref SCR_TaskHoveredInvoker | m_OnTaskHovered |
| ref SCR_TaskColorsUpdatedInvoker | m_OnTaskColorsUpdate |
| ref SCR_TaskBackgroundUpdatedInvoker | m_OnTaskBackgroundUpdate |
| ref ScriptInvokerBool | m_OnTaskHUDVisible |
| ref SCR_TasksTabConfig | m_TaskTabConfig |
| bool | m_bIsUnconscious |
| bool | m_bCurrentTaskVisible |
| Widget | m_wTaskHint |
| SCR_Task | m_SelectedTask |
| SCR_Task | m_AssignedTask |
| SCR_Task | m_HoveredTask |
| SCR_MapEntity | m_MapEntity |
| SCR_TaskSystem | m_TaskSystem |
| SCR_TaskListUIComponent | m_TaskListComponent |
| SCR_MapJournalUI | m_JournalComponent |
Protected Attributes inherited from SCR_BaseGameModeComponent | |
| SCR_BaseGameMode | m_pGameMode |
| The game mode entity this component is attached to. | |
Static Protected Attributes | |
| const string | CONTENT_TASK_LIST_MAP = "TaskListMapContext" |
| const string | ACTION_CLOSE_TASK_LIST = "TasksClose" |
| void SCR_TaskManagerUIComponent.SCR_TaskManagerUIComponent | ( | IEntityComponentSource | src, |
| IEntity | ent, | ||
| IEntity | parent ) |
| [in] | src | |
| [in] | ent | |
| [in] | parent |
| void SCR_TaskManagerUIComponent.~SCR_TaskManagerUIComponent | ( | ) |
| void SCR_TaskManagerUIComponent.AssignTask | ( | SCR_Task | task = null | ) |
Assigns provided task to the player.
| [in] | SCR_Task |
|
protected |
Closes task list.
| override void SCR_TaskManagerUIComponent.EOnFrame | ( | IEntity | owner, |
| float | timeSlice ) |
| override void SCR_TaskManagerUIComponent.EOnInit | ( | IEntity | owner | ) |
| SCR_Task SCR_TaskManagerUIComponent.GetAssigedTask | ( | ) |
| string SCR_TaskManagerUIComponent.GetDefaultIcon | ( | ) |
| ResourceName SCR_TaskManagerUIComponent.GetDefaultImageset | ( | ) |
| bool SCR_TaskManagerUIComponent.GetDisplayAssigneesOnMap | ( | ) |
|
static |
| SCR_TaskAssignedInvoker SCR_TaskManagerUIComponent.GetOnTaskAssigned | ( | ) |
| SCR_TaskBackgroundUpdatedInvoker SCR_TaskManagerUIComponent.GetOnTaskBackgroundUpdated | ( | ) |
| SCR_TaskColorsUpdatedInvoker SCR_TaskManagerUIComponent.GetOnTaskColorsUpdated | ( | ) |
| SCR_TaskHoveredInvoker SCR_TaskManagerUIComponent.GetOnTaskHovered | ( | ) |
| ScriptInvokerBool SCR_TaskManagerUIComponent.GetOnTaskHUDVisible | ( | ) |
| SCR_TaskSelectedInvoker SCR_TaskManagerUIComponent.GetOnTaskSelected | ( | ) |
| SCR_Task SCR_TaskManagerUIComponent.GetSelectedTask | ( | ) |
| SCR_TaskListEntryDescriptionUIComponent SCR_TaskManagerUIComponent.GetTaskDescriptionComponent | ( | ) |
| SCR_TaskListUIComponent SCR_TaskManagerUIComponent.GetTaskListComponent | ( | ) |
| array< SCR_ETaskTabType > SCR_TaskManagerUIComponent.GetTaskTabs | ( | ) |
| bool SCR_TaskManagerUIComponent.IsTaskListOpen | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
SCR_PlayerController Event Used to reinit Task manager Component when new entity is controlled.
|
protected |
| override void SCR_TaskManagerUIComponent.OnPlayerConnected | ( | int | playerId | ) |
Called after a player is connected.
Server-only.
| [in] | playerId | PlayerId of connected player. |
Implements SCR_BaseGameModeComponent.
|
protected |
Moves camera to task position in map view.
| [in] | taskID | |
| [in] | task |
| bool SCR_TaskManagerUIComponent.RefreshTaskList | ( | ) |
Register task list component.
| void SCR_TaskManagerUIComponent.RegisterTaskList | ( | SCR_TaskListUIComponent | component | ) |
Register task list component.
| [in] | component | to be registered |
| void SCR_TaskManagerUIComponent.SetHoveredTask | ( | SCR_Task | task | ) |
Sets provided task as hovered.
| [in] | task |
| void SCR_TaskManagerUIComponent.SetJournalVisibility | ( | bool | newVisibility | ) |
Sets new visiblity of journal and hides task list.
| [in] | visibility | of journal to be set. |
| void SCR_TaskManagerUIComponent.SetSelectedTask | ( | SCR_Task | task | ) |
Sets provided task as selected.
| [in] | task |
| bool SCR_TaskManagerUIComponent.SetTaskDescriptionVisiblity | ( | bool | newVisibility | ) |
| [in] | visibility | of task description. |
| void SCR_TaskManagerUIComponent.SetTaskListVisibility | ( | bool | newVisibility | ) |
Sets new visiblity of task list and hides journal.
| [in] | visibility | of task list to be set. |
| void SCR_TaskManagerUIComponent.ShowTaskOnMap | ( | ) |
Requests panning map to task. If map is not opened - opens it.
| void SCR_TaskManagerUIComponent.TaskHUDVisibilityChanged | ( | bool | newVisibility | ) |
Invokes whenever task list on HUD is shown.
| void SCR_TaskManagerUIComponent.ToggleCurrentTask | ( | ) |
Displays a hint with currently selected task.
| void SCR_TaskManagerUIComponent.UpdateTaskBackground | ( | ResourceName | imageset, |
| string | name ) |
Sets new background of task.
| [in] | imageset | with the background. |
| [in] | name | in imageset. |
| void SCR_TaskManagerUIComponent.UpdateTaskColors | ( | Color | backgroundColor, |
| Color | iconColor, | ||
| Color | outlineColor ) |
Sets new colors on task icons.
If provided color is null, its being skipped.
| [in] | backgroundColor | - color of task shield background. |
| [in] | iconColor | - color of task symbol. |
| [in] | outlineColor | - color of task shield outline. |
|
staticprotected |
|
staticprotected |
|
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 |