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)

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.