parent
a74abe684b
commit
5bcbee8865
@ -0,0 +1,9 @@
|
||||
[gd_resource type="Resource" script_class="EventResource" load_steps=2 format=3 uid="uid://dc7e13hq47uma"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ci3t5mvnopntg" path="res://scripts/CSharp/Low Code/Events/EventResource.cs" id="1_ufwo5"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_ufwo5")
|
||||
_showLog = true
|
||||
Payload = Color(0.84002423, 0.44197178, 0.5653889, 1)
|
||||
metadata/_custom_type_script = "uid://ci3t5mvnopntg"
|
||||
@ -0,0 +1,9 @@
|
||||
[gd_resource type="Resource" script_class="EventResource" load_steps=2 format=3 uid="uid://bgfxakxxfmoxs"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ci3t5mvnopntg" path="res://scripts/CSharp/Low Code/Events/EventResource.cs" id="1_dd3u7"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_dd3u7")
|
||||
_showLog = true
|
||||
Payload = "This is a test."
|
||||
metadata/_custom_type_script = "uid://ci3t5mvnopntg"
|
||||
@ -0,0 +1,63 @@
|
||||
[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"]
|
||||
Loading…
Reference in new issue