✨ Added VariableGetter functionality and some Variable setting components. Also added them to test scene.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://6n3p3psmxovj"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://6n3p3psmxovj"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://pqemey80frcq" path="res://scripts/CSharp/Low Code/Variables/VariableListener.cs" id="1_4h3ry"]
|
||||
[ext_resource type="Script" uid="uid://bc6uaaxsx5k5p" path="res://scripts/CSharp/Low Code/Events/EventListener.cs" id="1_w5ykc"]
|
||||
@@ -6,6 +6,9 @@
|
||||
[ext_resource type="Script" uid="uid://b5dotkx17gvxg" path="res://scripts/CSharp/Low Code/Events/EventRaiser.cs" id="3_bj4kf"]
|
||||
[ext_resource type="Resource" uid="uid://boijwlxmth68v" path="res://resources/low code/test/event_textLabelClicked.tres" id="5_4h3ry"]
|
||||
[ext_resource type="Script" uid="uid://co1b320qemg1i" path="res://scripts/CSharp/Low Code/Randomizer/VariantRandomizer.cs" id="5_nm8dh"]
|
||||
[ext_resource type="Script" uid="uid://dco37q6ddm8kv" path="res://scripts/CSharp/Low Code/Variables/VariantValueChanger/VariantToString.cs" id="7_nm8dh"]
|
||||
[ext_resource type="Resource" uid="uid://c6iw30ydc0qa0" path="res://resources/low code/test/var_Counter.tres" id="9_44nfx"]
|
||||
[ext_resource type="Script" uid="uid://d1y23ytkt1w2j" path="res://scripts/CSharp/Low Code/Variables/VariantValueChanger/VariantIncrementor.cs" id="10_p6d2q"]
|
||||
|
||||
[node name="EventTest" type="Node2D"]
|
||||
|
||||
@@ -57,11 +60,42 @@ verknüpft ist]"
|
||||
script = ExtResource("1_w5ykc")
|
||||
_eventResources = Array[Object]([ExtResource("5_4h3ry")])
|
||||
|
||||
[node name="LabelTextEventButton2" type="Button" parent="Control"]
|
||||
layout_mode = 0
|
||||
offset_left = 361.0
|
||||
offset_top = 148.0
|
||||
offset_right = 518.0
|
||||
offset_bottom = 179.0
|
||||
text = "get current number
|
||||
"
|
||||
|
||||
[node name="TestLabel2" type="Label" parent="Control"]
|
||||
layout_mode = 0
|
||||
offset_left = 432.0
|
||||
offset_top = 117.0
|
||||
offset_right = 472.0
|
||||
offset_bottom = 166.0
|
||||
text = "0
|
||||
"
|
||||
script = ExtResource("7_nm8dh")
|
||||
_resource = ExtResource("9_44nfx")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
position = Vector2(239, 110)
|
||||
zoom = Vector2(3.4, 3.4)
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 0.5
|
||||
autostart = true
|
||||
|
||||
[node name="CountLoop" type="Node" parent="Timer"]
|
||||
script = ExtResource("10_p6d2q")
|
||||
_resource = ExtResource("9_44nfx")
|
||||
|
||||
[connection signal="NewEventPayload" from="Control/ColorRect" to="Control/ColorRect" method="set_color"]
|
||||
[connection signal="pressed" from="Control/ChangeColorButton" to="Control/ChangeColorButton" method="RandomizeEventResource"]
|
||||
[connection signal="pressed" from="Control/LabelTextEventButton" to="Control/LabelTextEventButton" method="RaiseEvents"]
|
||||
[connection signal="EventRaised" from="Control/TestLabel" to="Control/TestLabel" method="show"]
|
||||
[connection signal="pressed" from="Control/LabelTextEventButton2" to="Control/TestLabel2" method="ConvertToString"]
|
||||
[connection signal="PayloadAsString" from="Control/TestLabel2" to="Control/TestLabel2" method="set_text"]
|
||||
[connection signal="timeout" from="Timer" to="Timer/CountLoop" method="Increment"]
|
||||
|
||||
Reference in New Issue
Block a user