class CrShader::VariableArrayControl

Overview

============================================================================= VariableArrayControl - Custom Inspector Control for Variable-Size Shader Arrays

Provides an interactive in-inspector widget for editing uniform arrays (especially Color arrays/palettes) with ColorPickerButton swatches, dynamic resize [+]/[-], preset selection across 30+ default palettes, and live material sync.

Defined in:

crshader/editor/variable_array_control.cr

Constant Summary

PRESET_NAMES = ["1-up", "archivist", "blekohpop31", "blocky-realm", "chis-a", "cloud-9", "comike-computer", "cottonville", "dairy-treat", "delphinium-17", "dirty-laundry", "extra-24", "fogfire", "fowl20", "gd-15", "hyperplink2", "no-failed", "ochre-ruin", "pastel-16-cnh", "pen-x-pen-plus", "pixel-8", "reddy-for-marshmallows", "rgr-blueprint4", "screen-burn-monitor", "silkpukian-24", "soggy-sepia-crt-20", "someday-ill-get-it", "summer", "tachycardia", "tiny-c64", "vanitas", "vignette", "vinculum"]

Preset catalog of all 33 bundled palettes

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Constructor Detail

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

def self.new(pointer : Pointer(Void) = Pointer(Void).null) #

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_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 active_material : Godot::ShaderMaterial | Nil #

def active_material=(active_material : Godot::ShaderMaterial | Nil) #

def add_color : Void #

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 colors : Array(Godot::Color) #

def colors=(colors : Array(Godot::Color)) #

def configure(param_name : String, material : Godot::ShaderMaterial | Nil, initial_colors : Array(Godot::Color) | Nil = nil) : 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 load_preset(preset_name : String) : Void #

def param_name : String #

def param_name=(param_name : String) #

def pop_color : Void #

def rebuild_swatches : Void #

def setup_ui : Void #

def sync_to_material : Void #