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
Initialize the style helper with a control reference
cleanup
Cleanup method to disconnect signals when no longer needed
Private Methods
_load_theme_styles
Flags: private
Load style definitions from the theme file
_create_fallback_styles
Flags: private
Create fallback styles if theme file is unavailable
_connect_signals
Flags: private
Connect mouse and input signals to the control
_apply_normal_style
Flags: private
Apply normal style to the control
_apply_hover_style
Flags: private
Apply hover style to the control
_apply_pressed_style
Flags: private
Apply pressed style to the control
_on_mouse_entered
Flags: private
Handle mouse enter events
_on_mouse_exited
Flags: private
Handle mouse exit events
_on_gui_input
Flags: private
Handle GUI input events for press/release detection
_on_click
Flags: private
Handle click events by emitting signal