debug / redscribe / test.tscn

Diagram

Diagram

Overridden virtual functions

_ready

func _ready() -> void:
	res1.method_missing.connect(_method_missing)
	res2.method_missing.connect(_method_missing)
	res1.perform('@counter = 0')
	res2.perform('@counter = 0')

_process

func _process(delta: float) -> void:
	res1.perform('label1 @counter += 1')
	res2.perform('label2 @counter += 2')

Instantiators

Caution
No other scene instantiate this scene.

Scene Tree

  • Test Node2D

    • Label1 Label

    • Label2 Label

Signal Connections

Note
No signal connections.

Properties

Table 1. Root properties
Name Value

script

Table 2. $Label1 properties
Name Value

unique_name_in_owner

true

offset_left

171.0

offset_top

158.0

offset_right

524.0

offset_bottom

294.0

theme_override_font_sizes/font_size

64

text

1

Table 3. $Label2 properties
Name Value

unique_name_in_owner

true

offset_left

174.0

offset_top

301.0

offset_right

516.0

offset_bottom

389.0

theme_override_font_sizes/font_size

64

text

2

test.gd

extends Node2D

@onready var res1 := ReDScribe.new()
@onready var res2 := ReDScribe.new()


func _ready() -> void:
	res1.method_missing.connect(_method_missing)
	res2.method_missing.connect(_method_missing)
	res1.perform('@counter = 0')
	res2.perform('@counter = 0')


func _process(delta: float) -> void:
	res1.perform('label1 @counter += 1')
	res2.perform('label2 @counter += 2')


func _method_missing(method_name: String, args: Array) -> void:
	match method_name:
		'label1': %Label1.text = str(args[0])
		'label2': %Label2.text = str(args[0])