GBActionLog
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
Shows recent messages from the grid building plugin actions within the context of the GBCompositionContainer scope
Source File: addons/grid_building/ui/actions/gb_action_log.gd
Extends: GBControl
Exported Properties
- Property:
message_log : RichTextLabel- Visual output area for where messages go when output from the build log
Private Properties
- Property:
_settings : [ActionLogSettings](./action-log-settings/)(private) - Build log settings injected from centralized configuration (private) - Property:
_building_state : [BuildingState](./building-state/) :(private) - Property:
_manipulation_state : [ManipulationState](./manipulation-state/) :(private) - Property:
_mode_state : [ModeState](./mode-state/) :(private) - Property:
_debug : [GBDebugSettings](./gb-debug-settings/)(private) - Property:
_actions : [GBActions](./gb-actions/)(private) - Property:
_logger : [GBLogger](./gb-logger/)(private)
Constants
- Constant:
REQUIRED_DEPENDENCIES: Array[String] = ["_actions", "_building_state", "_manipulation_state", "_mode_state"]
Public Methods
resolve_gb_dependencies
clear_log
get_settings
Lazy initialization for settings - only creates defaults if not injected Public getter for testing and external access
validate_setup
Validates that all required dependencies are present
append_validation_results
Adds validation results to the log as settings request.
append_placement_report_issues
DRY helper: Adds placement report issues to the log
append_manipulation
should_show
Checks whether the action data should show in the log or not.
Private Methods
_disconnect_building_state
Flags: private
DRY helper: Disconnect building state signals
_connect_building_state
Flags: private
DRY helper: Connect building state signals
_disconnect_manipulation_state
Flags: private
DRY helper: Disconnect manipulation state signals
_connect_manipulation_state
Flags: private
DRY helper: Connect manipulation state signals
_disconnect_mode_state
Flags: private
DRY helper: Disconnect mode state signals
_connect_mode_state
Flags: private
DRY helper: Connect mode state signals
_ready
Flags: private
_append_issues_list
Flags: private
DRY helper: Appends a list of issue strings to the message log
_print_reasons
Flags: private
Prints the reasons for each rule result to the message log. p_failed_only: bool - Whether to print only failed results (default true)
_get_display_name_safe
Flags: private
DRY helper: Determines display name for objects with fallback
_handle_build_result
Flags: private
DRY helper: Handles color and message formatting for build results
_on_build_success
Flags: private
_on_build_failed
Flags: private
_handle_manipulation_result
Flags: private
DRY helper: Handles manipulation result display with consistent color coding
_on_manipulation_started
Flags: private
_on_manipulation_failed
Flags: private
_on_manipulation_finished
Flags: private
_on_mode_changed
Flags: private
Handles mode change events and outputs to action log if enabled