created test scene and removed event test elements from start scene
This commit is contained in:
@@ -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"
|
||||||
@@ -1,11 +1,8 @@
|
|||||||
[gd_scene load_steps=7 format=3 uid="uid://c6wnoif01ltld"]
|
[gd_scene load_steps=4 format=3 uid="uid://c6wnoif01ltld"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://cssdu8viimwm6" path="res://scripts/CSharp/Common/SceneTransition.cs" id="1_fj2fh"]
|
[ext_resource type="Script" uid="uid://cssdu8viimwm6" path="res://scripts/CSharp/Common/SceneTransition.cs" id="1_fj2fh"]
|
||||||
[ext_resource type="Script" uid="uid://b5dotkx17gvxg" path="res://scripts/CSharp/Low Code/Events/EventRaiser.cs" id="3_5a78e"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://c7atj6ohlmir3" path="res://art/ui/StartScreen/titlescreen.png" id="3_r0y6o"]
|
[ext_resource type="Texture2D" uid="uid://c7atj6ohlmir3" path="res://art/ui/StartScreen/titlescreen.png" id="3_r0y6o"]
|
||||||
[ext_resource type="Resource" uid="uid://bgfxakxxfmoxs" path="res://resources/events/test2.tres" id="4_5a78e"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://du612t3xytly3" path="res://art/ui/StartScreen/babushkalog_white.png" id="4_dl0t1"]
|
[ext_resource type="Texture2D" uid="uid://du612t3xytly3" path="res://art/ui/StartScreen/babushkalog_white.png" id="4_dl0t1"]
|
||||||
[ext_resource type="Script" uid="uid://bc6uaaxsx5k5p" path="res://scripts/CSharp/Low Code/Events/EventListener.cs" id="6_5a78e"]
|
|
||||||
|
|
||||||
[node name="BabushkaSceneStartMenu" type="Node2D"]
|
[node name="BabushkaSceneStartMenu" type="Node2D"]
|
||||||
script = ExtResource("1_fj2fh")
|
script = ExtResource("1_fj2fh")
|
||||||
@@ -55,24 +52,6 @@ toggle_mode = true
|
|||||||
text = "Quit
|
text = "Quit
|
||||||
"
|
"
|
||||||
|
|
||||||
[node name="Test" type="Button" parent="CanvasLayer/TextureRect"]
|
|
||||||
custom_minimum_size = Vector2(100, 30)
|
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 4
|
|
||||||
anchor_top = 0.5
|
|
||||||
anchor_bottom = 0.5
|
|
||||||
offset_left = 205.0
|
|
||||||
offset_top = 215.0
|
|
||||||
offset_right = 405.0
|
|
||||||
offset_bottom = 255.0
|
|
||||||
grow_vertical = 2
|
|
||||||
scale = Vector2(2, 2)
|
|
||||||
toggle_mode = true
|
|
||||||
text = "Test
|
|
||||||
"
|
|
||||||
script = ExtResource("3_5a78e")
|
|
||||||
_eventResources = Array[Object]([ExtResource("4_5a78e")])
|
|
||||||
|
|
||||||
[node name="Text" type="TextureRect" parent="CanvasLayer/TextureRect"]
|
[node name="Text" type="TextureRect" parent="CanvasLayer/TextureRect"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
offset_left = 50.0
|
offset_left = 50.0
|
||||||
@@ -83,11 +62,5 @@ scale = Vector2(0.5, 0.5)
|
|||||||
texture = ExtResource("4_dl0t1")
|
texture = ExtResource("4_dl0t1")
|
||||||
stretch_mode = 3
|
stretch_mode = 3
|
||||||
|
|
||||||
[node name="EventListener" type="Node" parent="."]
|
|
||||||
script = ExtResource("6_5a78e")
|
|
||||||
_eventResources = Array[Object]([ExtResource("4_5a78e")])
|
|
||||||
|
|
||||||
[connection signal="pressed" from="CanvasLayer/TextureRect/Start" to="." method="LoadScene"]
|
[connection signal="pressed" from="CanvasLayer/TextureRect/Start" to="." method="LoadScene"]
|
||||||
[connection signal="pressed" from="CanvasLayer/TextureRect/Quit" to="." method="Quit"]
|
[connection signal="pressed" from="CanvasLayer/TextureRect/Quit" to="." method="Quit"]
|
||||||
[connection signal="pressed" from="CanvasLayer/TextureRect/Test" to="CanvasLayer/TextureRect/Test" method="RaiseEvents"]
|
|
||||||
[connection signal="EventRaised" from="EventListener" to="CanvasLayer/TextureRect/Test" method="hide"]
|
|
||||||
|
|||||||
@@ -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"]
|
||||||
Reference in New Issue
Block a user