You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.4 KiB
64 lines
2.4 KiB
[gd_scene load_steps=6 format=3 uid="uid://6n3p3psmxovj"]
|
|
|
|
[ext_resource type="Script" uid="uid://bc6uaaxsx5k5p" path="res://scripts/CSharp/Low Code/Events/EventListener.cs" id="1_w5ykc"]
|
|
[ext_resource type="Resource" uid="uid://dc7e13hq47uma" path="res://resources/events/ColorEvent.tres" id="2_4h3ry"]
|
|
[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://bgfxakxxfmoxs" path="res://resources/events/TestStringEvent.tres" id="4_5dsed"]
|
|
[ext_resource type="Script" uid="uid://co1b320qemg1i" path="res://scripts/CSharp/Low Code/Randomizer/VariantRandomizer.cs" id="5_nm8dh"]
|
|
|
|
[node name="EventTest" type="Node2D"]
|
|
|
|
[node name="Control" type="Control" parent="."]
|
|
layout_mode = 3
|
|
anchors_preset = 0
|
|
offset_top = -1.0
|
|
offset_right = 513.0
|
|
offset_bottom = 329.0
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="Control"]
|
|
layout_mode = 0
|
|
offset_right = 178.0
|
|
offset_bottom = 145.0
|
|
script = ExtResource("1_w5ykc")
|
|
_eventResources = Array[Object]([ExtResource("2_4h3ry")])
|
|
_showLog = true
|
|
|
|
[node name="LabelTextEventButton" type="Button" parent="Control"]
|
|
layout_mode = 0
|
|
offset_left = 194.0
|
|
offset_top = 148.0
|
|
offset_right = 351.0
|
|
offset_bottom = 179.0
|
|
text = "Show Event Text
|
|
"
|
|
script = ExtResource("3_bj4kf")
|
|
_eventResources = Array[Object]([ExtResource("4_5dsed")])
|
|
|
|
[node name="ChangeColorButton" type="Button" parent="Control"]
|
|
layout_mode = 0
|
|
offset_top = 148.0
|
|
offset_right = 112.0
|
|
offset_bottom = 179.0
|
|
text = "Change Color
|
|
"
|
|
script = ExtResource("5_nm8dh")
|
|
_eventResource = ExtResource("2_4h3ry")
|
|
|
|
[node name="TestLabel" type="Label" parent="Control"]
|
|
layout_mode = 0
|
|
offset_left = 237.0
|
|
offset_top = 54.0
|
|
offset_right = 277.0
|
|
offset_bottom = 77.0
|
|
script = ExtResource("1_w5ykc")
|
|
_eventResources = Array[Object]([ExtResource("4_5dsed")])
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
position = Vector2(239, 110)
|
|
zoom = Vector2(3.4, 3.4)
|
|
|
|
[connection signal="NewEventPayload" from="Control/ColorRect" to="Control/ColorRect" method="set_color"]
|
|
[connection signal="pressed" from="Control/LabelTextEventButton" to="Control/LabelTextEventButton" method="RaiseEvents"]
|
|
[connection signal="pressed" from="Control/ChangeColorButton" to="Control/ChangeColorButton" method="RandomizeEventResource"]
|
|
[connection signal="EventRaisedWithPayload" from="Control/TestLabel" to="Control/TestLabel" method="set_text"]
|