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 = CONFIRM

    Action 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 mode

  • Property: positioner_up: StringName = POSITIONER_UP : - Movement actions when using keyboard input for positioner movement

  • Property: 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

1
validate_action(p_action_name : StringName) -> Array[String]

apply_default_input_actions

1
apply_default_input_actions(save_project: bool = false) -> Array[StringName]

get_editor_issues

1
get_editor_issues() -> Array[String]

Make sure each action is set in the input map


get_runtime_issues

1
get_runtime_issues() -> Array[String]

Private Methods

_get_default_action_events

1
_get_default_action_events() -> Dictionary[StringName, Array]

Flags: private


_create_key_event

1
_create_key_event(keycode: Key) -> InputEventKey

Flags: private


_create_mouse_button_event

1
_create_mouse_button_event(button_index: MouseButton) -> InputEventMouseButton

Flags: private


_sync_action_to_project_settings

1
_sync_action_to_project_settings(action_name: StringName) -> void

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.