GBActions
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
Input action name definitions for plugin systems and UI.
Source File: addons/grid_building/resources/actions/gb_actions.gd
Extends: GBResource
Exported Properties
Property:
off_mode: StringName = OFF_MODE- Action to exit build mode.Property:
info_mode : StringName = INFO_MODE- Action for entering info mode.Property:
build_mode : StringName = BUILD_MODE- Action for entering build mode.Property:
moving_mode : StringName = MOVING_MODE- Action for entering move mode.Property:
demolish_mode : StringName = DEMOLISH_MODE- Action to enter demolish mode.Property:
confirm_build : StringName = CONFIRM- Confirm a build.Property:
confirm_manipulation: StringName = CONFIRMAction for confirming an action to be taken within manipulation mode. Grid building plugin. What the confirmation does is context sensitive whether building with a preview instance, moving an existing object, or demolishing an object already within the scene.
Property:
rotate_right: StringName = ROTATE_RIGHT:- The preview instance to the right when triggered.Property:
rotate_left: StringName = ROTATE_LEFT:- Names of actions that the building system will rotate the preview instance to the left when triggered.Property:
flip_horizontal: StringName = FLIP_HORIZONTAL :- Actions that flip the preview instance horizontally during build mode.Property:
flip_vertical: StringName = FLIP_VERTICAL :- Actions that flip the preview instance vertically during build modeProperty:
positioner_up: StringName = POSITIONER_UP :- Movement actions when using keyboard input for positioner movementProperty:
positioner_down: StringName = POSITIONER_DOWN :Property:
positioner_left: StringName = POSITIONER_LEFT :Property:
positioner_right: StringName = POSITIONER_RIGHT :Property:
positioner_center: StringName = POSITIONER_CENTER :- Recenter the positioner to the viewport/camera center (snapped to tile)
Constants
- Constant:
OFF_MODE := &"off_mode" - Constant:
INFO_MODE := &"info_mode" - Constant:
BUILD_MODE := &"build_mode" - Constant:
MOVING_MODE := &"moving_mode" - Constant:
DEMOLISH_MODE := &"demolish_mode" - Constant:
CONFIRM := &"confirm" - Constant:
ROTATE_RIGHT := &"rotate_right" - Constant:
ROTATE_LEFT := &"rotate_left" - Constant:
FLIP_HORIZONTAL := &"flip_horizontal" - Constant:
FLIP_VERTICAL := &"flip_vertical" - Constant:
POSITIONER_UP := &"positioner_up" - Constant:
POSITIONER_DOWN := &"positioner_down" - Constant:
POSITIONER_LEFT := &"positioner_left" - Constant:
POSITIONER_RIGHT := &"positioner_right" - Constant:
POSITIONER_CENTER := &"positioner_center"
Public Methods
validate_action
apply_default_input_actions
get_editor_issues
Make sure each action is set in the input map
get_runtime_issues
Private Methods
_get_default_action_events
Flags: private
_create_key_event
Flags: private
_create_mouse_button_event
Flags: private
_sync_action_to_project_settings
Flags: private
Syncs an action’s configuration to the project settings. Ensures the action is persisted to project.godot when running in the editor. param action_name: The name of the action to sync.