class CrShader::CrShaderTabEditor

Overview

============================================================================= CrShaderTabEditor - Native .crshader Editor Pane inside Godot's Shader Editor

Mounted directly inside Godot 4's built-in "Shader Editor" TabContainer slot whenever a .crshader resource is opened from the FileSystem dock, Inspector, or the Shader Editor's "CRShader" menu.

Defined in:

crshader/editor/shader_editor_integration.cr

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(&block : self -> ) : self #

Class Method Detail

def self._godot_has_virtual_method(method_name : String) : Bool #

def self._godot_register_node_class : Void #

def self.godot_class_name : String #

def self.godot_parent_class_name : String #

Macro Detail

macro autoload(*args, **kwargs) #

DSL directives for in-body autoload configuration


macro autoload_node(*args, **kwargs) #

macro build(**kwargs, &block) #

macro create(**kwargs, &block) #

Instance Method Detail

def _godot_call_tool_button(button_name : String) : Void #
Description copied from class Godot::Object

Dispatches inspector tool button clicks on this object.


def _godot_call_virtual(method_name : String, delta : Float64) : Void #
Description copied from class Godot::Object

Virtual method and property dispatch hooks overridden by class registration macros. Delta timestep is received with 64-bit precision (Float64).


def _godot_call_virtual_with_data(method_name : String, args : Pointer(Pointer(Void)), ret : Pointer(Void)) : Void #
Description copied from class Godot::Object

Dispatches generic virtual methods with raw arguments and return buffer.


def _godot_dispatch_crystal_0(method : String) : Bool #

def _godot_dispatch_crystal_1(method : String, a0 : Godot::Variant) : Bool #

def _godot_dispatch_crystal_2(method : String, a0 : Godot::Variant, a1 : Godot::Variant) : Bool #

def _godot_get_property(prop_name : String, ret_ptr : Pointer(Void)) : Void #
Description copied from class Godot::Object

Invoked by the GDExtension bridge when retrieving an exposed @export property.


def _godot_has_crystal_method?(method : String) : Bool #
Description copied from class Godot::Object

Internal hooks overridden by Lapis node/gdclass/resource classes to expose Crystal-defined methods.


def _godot_set_property(prop_name : String, val_ptr : Pointer(Void)) : Void #
Description copied from class Godot::Object

Invoked by the GDExtension bridge when setting an exposed @export property.


def _process(delta : Float64) : Void #
Description copied from class Godot::Node

Per-frame process callback receiving delta timestep in seconds (Float64).


def _ready : Void #
Description copied from class Godot::Node

Lifecycle callback called when the node enters the active scene tree.


def apply_dictionary_properties!(dict : Godot::Dictionary) : Void #
Description copied from class Godot::Object

Populates @[Export] properties on this object from a Godot::Dictionary.


def apply_template(entry : Templates::Entry) : Void #

def auto_compile : Bool #

def auto_compile=(auto_compile : Bool) #

def bind_resource(res : CrShader::CRShader) : Void #

def compile_preview(sync_disk : Bool = false) : Bool #

def disk_path : String #

def disk_path=(disk_path : String) #

def ensure_ui_built! : Void #

def export_config_hash : UInt64 #
Description copied from class Godot::Object

Computes a deterministic 64-bit hash of all @[Export] properties on this object.


def file_path : String #

def file_path=(file_path : String) #

def get_preview_text : String #

def get_source_text : String #

def insert_trait_line(trait_name : String) : Void #

def load_crshader_file(path : String, fallback_source : String = "") : Bool #

def preview_code_edit : Godot::CodeEdit | Nil #

def release_strip : Bool #

def release_strip=(release_strip : Bool) #

def save_and_sync! : Bool #

def set_source_text(text : String) : Void #

def source_code_edit : Godot::CodeEdit | Nil #

def split_preview_visible : Bool #

def split_preview_visible=(split_preview_visible : Bool) #