PlaceableUIInteraction
Cleanup method to disconnect signals when no longer needed
Cleanup method to disconnect signals when no longer needed
Version: v5.0.0
Inherits: RefCounted
Source: placeable_ui_interaction.gd
Parsing: AST-based for maximum accuracy with symbol typing
Variables
_style_normal:
Style configurations loaded from theme
_style_pressed:
_style_hover:
_theme:
_control:
Reference to the control that uses these styles
_is_pressed:
Signals
clicked()
Allow external objects to connect to click events
Methods
init
Signature: init(control: Control) -> void
Initialize the style helper with a control reference
Returns: void
Parameters:
control: Control
_load_theme_styles
Signature: _load_theme_styles() -> void
Load style definitions from the theme file
Returns: void
_create_fallback_styles
Signature: _create_fallback_styles() -> void
Create fallback styles if theme file is unavailable
Returns: void
_connect_signals
Signature: _connect_signals() -> void
Connect mouse and input signals to the control
Returns: void
_apply_normal_style
Signature: _apply_normal_style() -> void
Apply normal style to the control
Returns: void
_apply_hover_style
Signature: _apply_hover_style() -> void
Apply hover style to the control
Returns: void
_apply_pressed_style
Signature: _apply_pressed_style() -> void
Apply pressed style to the control
Returns: void
_on_mouse_entered
Signature: _on_mouse_entered() -> void
Handle mouse enter events
Returns: void
_on_mouse_exited
Signature: _on_mouse_exited() -> void
Handle mouse exit events
Returns: void
_on_gui_input
Signature: _on_gui_input(event: InputEvent) -> void
Handle GUI input events for press/release detection
Returns: void
Parameters:
event: InputEvent
_on_click
Signature: _on_click() -> void
Handle click events by emitting signal
Returns: void
cleanup
Signature: cleanup() -> void
Cleanup method to disconnect signals when no longer needed
Returns: void