Skip to content

GBActions

Input action name definitions for plugin systems and UI.

off_mode:

StringName

= &“off_mode”

Action to exit build mode.
info_mode:

StringName

= &“info_mode”

Action for entering info mode.
build_mode:

StringName

= &“build_mode”

Action for entering build mode.
moving_mode:

StringName

= &“moving_mode”

Action for entering move mode.
demolish_mode:

StringName

= &“demolish_mode”

Action to enter demolish mode.
confirm_build:

StringName

= &“confirm”

Confirm a build.
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.

rotate_right:

StringName

= &“rotate_right”

The preview instance to the right when triggered.
rotate_left:

StringName

= &“rotate_left”

Names of actions that the building system will rotate the preview instance to the left when triggered.

flip_horizontal:

StringName

= &“flip_horizontal”

Actions that flip the preview instance horizontally during build mode.

flip_vertical:

StringName

= &“flip_vertical”

Actions that flip the preview instance vertically during build mode
positioner_up:

StringName

= &“positioner_up”

Movement actions when using keyboard input for positioner movement
positioner_down:

StringName

= &“positioner_down”

positioner_left:

StringName

= &“positioner_left”

positioner_right:

StringName

= &“positioner_right”

positioner_center:

StringName

= &“positioner_center”

Recenter the positioner to the viewport/camera center (snapped to tile)

func validate_action

(

p_action_name:

StringName

)

->

Array

[

String

]

func get_editor_issues( ) ->

Array

[

String

]

Make sure each action is set in the input map
func get_runtime_issues( ) ->

Array

[

String

]

addons/grid_building/resources/actions/gb_actions.gd


This API reference is automatically generated from the plugin source code. For implementation examples and usage guides, see the guides section.