QuickAccessMenuAction
An abstract class in Root.Township, Alta.QuickAccessActions.
A ScriptableObject for one option in the wrist quick access menu. The menu controller sets it up per player and a bubble shows it, runs it and tracks its state. Client side.
- Listed in Players and characters
- Inherits or implements
ScriptableObject - Derived types
LandmarkDebugger,SceneWidgetsAction,BoneWeightTestsMenuAction,DebugLightMenuAction,DecreaseHeightMenuAction,EmptyMenu,EquipmentModeQuickAccess,MemoryDumpMenuAction,MicMuteQuickAccessAction,MODSMicMuteQuickAccessAction,MuteNonFriendsQuickAccessAction,NestingMenuAction,PhysicsFPSMenuAction,ReturnToMainMenuAction,SettingsQuickAccessMenu,ShowNames,SummonActionItemQuickAccess,ToggleAccessibleDockMenuAction,ToggleDebugMovementMenuAction,ToggleEnemyHealthBars,ToggleLiveDataDisplayMenuAction,ToggleLocalSpeedMenuAction,ToggleRuntimeConsole,TriggerDebugSetSpawnMenuAction,UpdateFarClipMenuAction,UpdateHeightMenuAction,VivoxConnectionQuickAccessAction,SummonCameraQuickAccess,UnityProfilerSessionQuickAccessAction,VisualChunkQuickAccessMenuAction - Documented in Quick access menu
Constructors
| Member | What it is |
|---|---|
protected QuickAccessMenuAction() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private string displayName | Backing field for DisplayName, the label shown for the action. |
private PlatformFlags isIgnoredOn | Platforms where the action is hidden (IsIgnored), except for developers. |
private GameObject prefab | Icon prefab made by GetPrefab. A dynamic icon component on it is given this action. |
Properties
Events
| Member | What it is |
|---|---|
event Action<bool> UpdatedActive | Raised by UpdateActive; dynamic icons listen to it. |
event Action<bool> UpdatedValid | Raised by UpdateValid; the bubble listens to it to grey itself out. |
Methods
| Member | What it is |
|---|---|
virtual void Close() | Virtual hook called when the bubble showing this action is released. |
GameObject GetPrefab(Transform parent) | Spawns the action's icon prefab under a parent and links a dynamic icon to the action if it has one. |
virtual void InitializeForPlayer(Player player, bool isDev) | Called by the menu controller for the player, with whether dev tools are on. |
virtual void MarkSelected(QuickAccessMenuBubble bubble) | Virtual hook called when the bubble is selected while valid. |
virtual void Open() | Virtual hook called when a bubble starts showing this action. |
virtual void Run(Controller controller) | Virtual: does the action. The bubble calls it only when IsValid. |
protected void UpdateActive() | Protected: raises UpdatedActive with the current IsActive. |
protected void UpdateValid() | Protected: raises UpdatedValid with the current IsValid. |
Used in
Members of other types that take, return or hold a QuickAccessMenuAction:
QamOptionAsButtonCommand.action, IQuickAccessDynamicIcon.SetupAction, MuteNonFriendsActionIcon.SetupAction, NestingMenuAction.nestedActions, QuickAccessDynamicIcon.action, QuickAccessDynamicIcon.SetupAction, QuickAccessMenuBubble.content, QuickAccessMenuBubble.UpdateContent, QuickAccessMenuController.devQuickAccessMenus, QuickAccessMenuController.quickAccessMenus, QuickAccessMenuController.SpawnBubbles, FlyCamLocomotionController.micMuteAction, FlyCamLocomotionController.modsMicMuteAction, FlyCamLocomotionController.showNamesAction.