PlaceableUIInteraction

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Shared UI interaction helper for placeable UI components.

Source File: addons/grid_building/ui/placeable/shared/placeable_ui_interaction.gd

Extends: RefCounted

Signals

  • Signal: clicked() - Allow external objects to connect to click events

Private Properties

  • Property: _style_normal: StyleBoxFlat (private) - Style configurations loaded from theme
  • Property: _style_pressed: StyleBoxFlat (private)
  • Property: _style_hover: StyleBoxFlat (private)
  • Property: _theme: Theme (private)
  • Property: _control: Control (private) - Reference to the control that uses these styles
  • Property: _is_pressed: bool = false (private)

Public Methods

init

1
init(control: Control) -> void

Initialize the style helper with a control reference


cleanup

1
cleanup() -> void

Cleanup method to disconnect signals when no longer needed


Private Methods

_load_theme_styles

1
_load_theme_styles() -> void

Flags: private

Load style definitions from the theme file


_create_fallback_styles

1
_create_fallback_styles() -> void

Flags: private

Create fallback styles if theme file is unavailable


_connect_signals

1
_connect_signals() -> void

Flags: private

Connect mouse and input signals to the control


_apply_normal_style

1
_apply_normal_style() -> void

Flags: private

Apply normal style to the control


_apply_hover_style

1
_apply_hover_style() -> void

Flags: private

Apply hover style to the control


_apply_pressed_style

1
_apply_pressed_style() -> void

Flags: private

Apply pressed style to the control


_on_mouse_entered

1
_on_mouse_entered() -> void

Flags: private

Handle mouse enter events


_on_mouse_exited

1
_on_mouse_exited() -> void

Flags: private

Handle mouse exit events


_on_gui_input

1
_on_gui_input(event: InputEvent) -> void

Flags: private

Handle GUI input events for press/release detection


_on_click

1
_on_click() -> void

Flags: private

Handle click events by emitting signal