Arma Reforger Script API
|
Base container class for all editor action types (ContextActions, WaypointActions, AbiliityActions) More...
Public Member Functions | |
bool | IsEnabled () |
bool | CanBeShown (SCR_EditableEntityComponent hoveredEntity, notnull set< SCR_EditableEntityComponent > selectedEntities, vector cursorWorldPosition, int flags) |
Determine if action can be shown with passed hovered entity and selected entitites. | |
bool | CanBePerformed (SCR_EditableEntityComponent hoveredEntity, notnull set< SCR_EditableEntityComponent > selectedEntities, vector cursorWorldPosition, int flags) |
Determine if action can be performed with passed hovered entity and selected entitites. | |
void | Perform (SCR_EditableEntityComponent hoveredEntity, notnull set< SCR_EditableEntityComponent > selectedEntities, vector cursorWorldPosition, int flags, int param=-1) |
Perform action. | |
void | PerformOwner (SCR_EditableEntityComponent hoveredEntity, notnull set< SCR_EditableEntityComponent > selectedEntities, vector cursorWorldPosition, int flags, int param=-1) |
SCR_UIInfo | GetInfo () |
EEditorActionType | GetActionType () |
EEditorActionGroup | GetActionGroup () |
string | GetShortcut () |
Get action shortcut that triggers this action. | |
void | SetShortcutRef (string shortcutRef) |
Set shortcut reference - it's shown in GUI, but not actually listened to. | |
int | GetOrder () |
Get order of this entity, can be any integer value including negative. | |
bool | IsServer () |
Should action be sent to server. | |
int | GetParam () |
Get custom param which can be used to pass extra information to performed action. | |
array< ref SCR_BaseEditorEffect > | GetEffects () |
Get effects tied to the action. | |
void | AddShortcut (SCR_BaseActionsEditorComponent actionsManager) |
void | RemoveShortcut () |
bool | CheckAndSetCooldown () |
Check if action is on cooldown and if not set action on cooldown The cooldown will never be set if cooldownTime is equal or less than 0. | |
bool | IsOnCooldown () |
Check if action is on cooldown. | |
void | ~SCR_BaseEditorAction () |
Protected Member Functions | |
void | OnShortcut () |
void | ActivateCooldown () |
void | UpdateCooldown () |
void | OnCooldownDone () |
Protected Attributes | |
bool | m_bEnabled |
ref SCR_UIInfo | m_Info |
EEditorActionType | m_ActionType |
EEditorActionGroup | m_ActionGroup |
int | m_iOrder |
string | m_sShortcut |
bool | m_bEnableShortcutLogics |
ref array< ref SCR_BaseEditorEffect > | m_Effects |
SCR_BaseActionsEditorComponent | m_ActionsManager |
string | m_sShortcutRef |
float | m_fCooldownTime |
float | m_fCurrentCooldownTime |
float | m_fCooldownUpdateFreq = 50 |
bool | m_bShowOnCooldownNotification |
bool | m_bIsOnCooldown |
Base container class for all editor action types (ContextActions, WaypointActions, AbiliityActions)
void SCR_BaseEditorAction.~SCR_BaseEditorAction | ( | ) |
|
protected |
void SCR_BaseEditorAction.AddShortcut | ( | SCR_BaseActionsEditorComponent | actionsManager | ) |
Implemented in SCR_DoubleClickAction.
bool SCR_BaseEditorAction.CanBePerformed | ( | SCR_EditableEntityComponent | hoveredEntity, |
notnull set< SCR_EditableEntityComponent > | selectedEntities, | ||
vector | cursorWorldPosition, | ||
int | flags | ||
) |
Determine if action can be performed with passed hovered entity and selected entitites.
Implemented in SCR_CaptureBasesContextAction, SCR_SupplyBasesContextAction, SCR_AttachToParentContextAction, SCR_CopyAttributesContextAction, SCR_CopyIngameTimestampContextAction, SCR_CopyPrefabNameContextAction, SCR_CopyServerTimestampContextAction, SCR_CopyWorldPositionContextAction, SCR_CreateLayerContextAction, SCR_CycleContextAction, SCR_DeleteContextAction, SCR_DetachContextAction, SCR_DisableSimulationContextAction, SCR_EnableSimulationContextAction, SCR_FillVehicleContextAction, SCR_FindInWorkshopContextAction, SCR_HideSelectionContextAction, SCR_LockLayerContextAction, SCR_MoveInFormationContextAction, SCR_MoveToFlightAltitudeContextAction, SCR_MoveToSeatPositionContextAction, SCR_PasteAttributesContextAction, SCR_PasteOnOriginalPositionContextAction, SCR_PatrolContextAction, SCR_RefuelContextAction, SCR_ReplaceWithContextAction, SCR_SelectCrewContextAction, SCR_SelectOccupantContextAction, SCR_SelectPassengersContextAction, SCR_SetAsLeaderContextAction, SCR_ShowSelectionContextAction, SCR_SpawnPassengersContextAction, SCR_SuppressContextAction, SCR_TransportContextAction, SCR_UnloadContextAction, SCR_UnlockLayerContextAction, SCR_AssetBrowserContextAction, SCR_ChooseAndSpawnOccupantsContextAction, SCR_CreateLayerWithSelectionContextAction, SCR_CreateNewGroupContextAction, SCR_DuplicateContextAction, SCR_FocusHereContextAction, SCR_GeneralContextAction, SCR_GetInContextAction, SCR_GetOutContextAction, SCR_LayerContextAction, SCR_LightningContextAction, SCR_MoveToRootContextAction, SCR_OpenAttributeWindowContextAction, SCR_PasteContextAction, SCR_PingContextAction, SCR_PlaceEntityContextAction, SCR_SelectContextAction, SCR_SelectedEntitiesContextAction, SCR_SpawnCrewContextAction, SCR_SwitchCameraToContextAction, SCR_SwitchToPlayerContextAction, SCR_TakeControlContextAction, SCR_TeleportCameraContextAction, SCR_TeleportCameraToPlayerContextAction, SCR_TeleportPlayerHereContextAction, SCR_UserContextAction, SCR_BasePlacingToolbarAction, SCR_CameraAttributesToolbarAction, SCR_DeleteDestroyedToolbarAction, SCR_EndGameToolbarAction, SCR_FlashlightToolbarAction, SCR_GlobalAttributesToolbarAction, SCR_InstantActionTest, SCR_LeaveModeToolbarAction, SCR_LoadSessionToolbarAction, SCR_MapToolbarAction, SCR_NewSessionToolbarAction, SCR_PauseGameTimeToolbarAction, SCR_PlacingFlagToolbarAction, SCR_ResetEditorComponentsToolbarAction, SCR_SaveSessionToolbarAction, SCR_SnapToTerrainToolbarAction, and SCR_ToggleLocalEditorNightModeToolbarAction.
bool SCR_BaseEditorAction.CanBeShown | ( | SCR_EditableEntityComponent | hoveredEntity, |
notnull set< SCR_EditableEntityComponent > | selectedEntities, | ||
vector | cursorWorldPosition, | ||
int | flags | ||
) |
Determine if action can be shown with passed hovered entity and selected entitites.
Implemented in SCR_SpawnPointBaseCommandAction, SCR_TaskBaseCommandAction, SCR_WaypointBaseCommandAction, SCR_CaptureBasesContextAction, SCR_SupplyBasesContextAction, SCR_AttachToParentContextAction, SCR_CopyAttributesContextAction, SCR_CopyIngameTimestampContextAction, SCR_CopyPrefabNameContextAction, SCR_CopyServerTimestampContextAction, SCR_CopyWorldPositionContextAction, SCR_CreateLayerContextAction, SCR_CycleContextAction, SCR_DeleteContextAction, SCR_DetachContextAction, SCR_DisableSimulationContextAction, SCR_EnableSimulationContextAction, SCR_FillVehicleContextAction, SCR_FindInWorkshopContextAction, SCR_HideSelectionContextAction, SCR_LockLayerContextAction, SCR_MoveInFormationContextAction, SCR_MoveToFlightAltitudeContextAction, SCR_MoveToSeatPositionContextAction, SCR_PasteAttributesContextAction, SCR_PasteOnOriginalPositionContextAction, SCR_PatrolContextAction, SCR_RefuelContextAction, SCR_ReplaceWithContextAction, SCR_SelectCrewContextAction, SCR_SelectOccupantContextAction, SCR_SelectPassengersContextAction, SCR_SetAsLeaderContextAction, SCR_ShowSelectionContextAction, SCR_SpawnPassengersContextAction, SCR_SuppressContextAction, SCR_TransportContextAction, SCR_UnloadContextAction, SCR_UnlockLayerContextAction, SCR_AssetBrowserContextAction, SCR_ChooseAndSpawnOccupantsContextAction, SCR_CreateLayerWithSelectionContextAction, SCR_CreateNewGroupContextAction, SCR_DuplicateContextAction, SCR_FindInContentBrowserContextAction, SCR_FocusHereContextAction, SCR_GeneralContextAction, SCR_GetInContextAction, SCR_GetOutContextAction, SCR_LayerContextAction, SCR_LightningContextAction, SCR_MoveToRootContextAction, SCR_OpenAttributeWindowContextAction, SCR_PasteContextAction, SCR_PingContextAction, SCR_PlaceEntityContextAction, SCR_SelectContextAction, SCR_SelectedEntitiesContextAction, SCR_SpawnCrewContextAction, SCR_SwitchCameraToContextAction, SCR_SwitchToPlayerContextAction, SCR_TakeControlContextAction, SCR_TeleportCameraContextAction, SCR_TeleportCameraToPlayerContextAction, SCR_TeleportPlayerHereContextAction, SCR_UserContextAction, SCR_BasePlacingToolbarAction, SCR_BrowserToolbarAction, SCR_CameraAttributesToolbarAction, SCR_DeleteDestroyedToolbarAction, SCR_EndGameToolbarAction, SCR_FlashlightToolbarAction, SCR_GlobalAttributesToolbarAction, SCR_HintSequenceToolbarAction, SCR_InstantActionTest, SCR_LeaveModeToolbarAction, SCR_LoadSessionToolbarAction, SCR_MapToolbarAction, SCR_NewSessionToolbarAction, SCR_OpenWorldToolbarAction, SCR_PauseGameTimeToolbarAction, SCR_PlacingFlagToolbarAction, SCR_ResetEditorComponentsToolbarAction, SCR_RewindToolbarAction, SCR_SaveSessionToolbarAction, SCR_SnapToTerrainToolbarAction, SCR_ToggleInterfaceToolbarAction, and SCR_ToggleLocalEditorNightModeToolbarAction.
bool SCR_BaseEditorAction.CheckAndSetCooldown | ( | ) |
Check if action is on cooldown and if not set action on cooldown The cooldown will never be set if cooldownTime is equal or less than 0.
EEditorActionGroup SCR_BaseEditorAction.GetActionGroup | ( | ) |
EEditorActionType SCR_BaseEditorAction.GetActionType | ( | ) |
array< ref SCR_BaseEditorEffect > SCR_BaseEditorAction.GetEffects | ( | ) |
Get effects tied to the action.
SCR_UIInfo SCR_BaseEditorAction.GetInfo | ( | ) |
int SCR_BaseEditorAction.GetOrder | ( | ) |
Get order of this entity, can be any integer value including negative.
int SCR_BaseEditorAction.GetParam | ( | ) |
Get custom param which can be used to pass extra information to performed action.
Called on the machine of whoever called the action, with the editor opened. Sent to Perform function, even when it's called on server.
Implemented in SCR_CampaignBuildingDeleteSelectedContextAction, and SCR_TakeControlContextAction.
string SCR_BaseEditorAction.GetShortcut | ( | ) |
Get action shortcut that triggers this action.
bool SCR_BaseEditorAction.IsEnabled | ( | ) |
bool SCR_BaseEditorAction.IsOnCooldown | ( | ) |
Check if action is on cooldown.
bool SCR_BaseEditorAction.IsServer | ( | ) |
Should action be sent to server.
Implemented in SCR_BaseCommandAction, SCR_BaseContextAction, SCR_LayerContextAction, SCR_OpenAttributeWindowContextAction, SCR_PlaceEntityContextAction, SCR_SwitchToPlayerContextAction, SCR_TakeControlContextAction, SCR_BrowserToolbarAction, SCR_CameraAttributesToolbarAction, SCR_DeleteDestroyedToolbarAction, SCR_EndGameToolbarAction, SCR_FlashlightToolbarAction, SCR_GlobalAttributesToolbarAction, SCR_HintSequenceToolbarAction, SCR_LoadSessionToolbarAction, SCR_MapToolbarAction, SCR_NewSessionToolbarAction, SCR_OpenWorldToolbarAction, SCR_PauseGameTimeToolbarAction, SCR_PlacingFlagToolbarAction, SCR_ResetEditorComponentsToolbarAction, SCR_SaveSessionToolbarAction, SCR_SnapToTerrainToolbarAction, SCR_ToggleInterfaceToolbarAction, and SCR_ToggleLocalEditorNightModeToolbarAction.
|
protected |
|
protected |
void SCR_BaseEditorAction.Perform | ( | SCR_EditableEntityComponent | hoveredEntity, |
notnull set< SCR_EditableEntityComponent > | selectedEntities, | ||
vector | cursorWorldPosition, | ||
int | flags, | ||
int | param = -1 |
||
) |
Perform action.
Implemented in SCR_BaseCommandAction, SCR_TaskBaseCommandAction, SCR_WaypointBaseCommandAction, SCR_CaptureBasesContextAction, SCR_SupplyBasesContextAction, SCR_AttachToParentContextAction, SCR_CopyAttributesContextAction, SCR_CopyIngameTimestampContextAction, SCR_CopyPrefabNameContextAction, SCR_CopyServerTimestampContextAction, SCR_CopyWorldPositionContextAction, SCR_CreateLayerContextAction, SCR_CycleContextAction, SCR_DeleteContextAction, SCR_DetachContextAction, SCR_DisableSimulationContextAction, SCR_EnableSimulationContextAction, SCR_FillVehicleContextAction, SCR_FindInWorkshopContextAction, SCR_HideSelectionContextAction, SCR_LockLayerContextAction, SCR_MoveInFormationContextAction, SCR_MoveToFlightAltitudeContextAction, SCR_MoveToSeatPositionContextAction, SCR_PasteAttributesContextAction, SCR_PasteOnOriginalPositionContextAction, SCR_PatrolContextAction, SCR_RefuelContextAction, SCR_ReplaceWithContextAction, SCR_SelectCrewContextAction, SCR_SelectOccupantContextAction, SCR_SelectPassengersContextAction, SCR_SetAsLeaderContextAction, SCR_ShowSelectionContextAction, SCR_SpawnPassengersContextAction, SCR_SuppressContextAction, SCR_TransportContextAction, SCR_UnloadContextAction, SCR_UnlockLayerContextAction, SCR_AssetBrowserContextAction, SCR_CampaignBuildingDeleteSelectedContextAction, SCR_ChooseAndSpawnOccupantsContextAction, SCR_CreateLayerWithSelectionContextAction, SCR_CreateNewGroupContextAction, SCR_DuplicateContextAction, SCR_FindInContentBrowserContextAction, SCR_FocusHereContextAction, SCR_GeneralContextAction, SCR_GetInContextAction, SCR_GetOutContextAction, SCR_KickPlayerContextAction, SCR_LayerContextAction, SCR_LightningContextAction, SCR_MoveToRootContextAction, SCR_OpenAttributeWindowContextAction, SCR_PasteContextAction, SCR_PingContextAction, SCR_PlaceEntityContextAction, SCR_SelectContextAction, SCR_SelectedEntitiesContextAction, SCR_SpawnCrewContextAction, SCR_SpawnOccupantsContextAction, SCR_SwitchCameraToContextAction, SCR_SwitchToPlayerContextAction, SCR_TakeControlContextAction, SCR_TeleportCameraContextAction, SCR_TeleportCameraToPlayerContextAction, SCR_TeleportPlayerHereContextAction, SCR_UserContextAction, SCR_BasePlacingToolbarAction, SCR_BrowserToolbarAction, SCR_CameraAttributesToolbarAction, SCR_DeleteDestroyedToolbarAction, SCR_EndGameToolbarAction, SCR_FlashlightToolbarAction, SCR_GlobalAttributesToolbarAction, SCR_HintSequenceToolbarAction, SCR_InstantActionTest, SCR_LeaveModeToolbarAction, SCR_LoadSessionToolbarAction, SCR_MapToolbarAction, SCR_NewSessionToolbarAction, SCR_OpenWorldToolbarAction, SCR_PauseGameTimeToolbarAction, SCR_PlacingFlagToolbarAction, SCR_ResetEditorComponentsToolbarAction, SCR_RewindToolbarAction, SCR_SaveSessionToolbarAction, SCR_SnapToTerrainToolbarAction, SCR_ToggleInterfaceToolbarAction, and SCR_ToggleLocalEditorNightModeToolbarAction.
void SCR_BaseEditorAction.PerformOwner | ( | SCR_EditableEntityComponent | hoveredEntity, |
notnull set< SCR_EditableEntityComponent > | selectedEntities, | ||
vector | cursorWorldPosition, | ||
int | flags, | ||
int | param = -1 |
||
) |
Implemented in SCR_SelectedEntitiesContextAction.
void SCR_BaseEditorAction.RemoveShortcut | ( | ) |
Implemented in SCR_DoubleClickAction.
void SCR_BaseEditorAction.SetShortcutRef | ( | string | shortcutRef | ) |
Set shortcut reference - it's shown in GUI, but not actually listened to.
shortcutRef | Action name |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |