Table of Contents
debug / redscribe / test.tscn
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
| Name | Value |
|---|---|
script |
| Name | Value |
|---|---|
unique_name_in_owner |
|
offset_left |
|
offset_top |
|
offset_right |
|
offset_bottom |
|
theme_override_font_sizes/font_size |
|
text |
|
| Name | Value |
|---|---|
unique_name_in_owner |
|
offset_left |
|
offset_top |
|
offset_right |
|
offset_bottom |
|
theme_override_font_sizes/font_size |
|
text |
|
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])