otherworldly_simulation/scene/test/test_main.tscn

81 lines
2.7 KiB
Plaintext
Raw Normal View History

2024-10-28 19:24:10 +08:00
[gd_scene load_steps=4 format=3 uid="uid://1wl1fl3qtxc"]
2024-10-25 15:41:39 +08:00
[ext_resource type="Script" path="res://scene/test/test_main.gd" id="1_aimp4"]
[ext_resource type="PackedScene" uid="uid://cf2g2urxaukxb" path="res://scene/test/character.tscn" id="2_nvm7o"]
[sub_resource type="CircleShape2D" id="CircleShape2D_shajf"]
2024-10-25 17:45:08 +08:00
radius = 38.71
2024-10-25 15:41:39 +08:00
[node name="main" type="Node2D" node_paths=PackedStringArray("player")]
script = ExtResource("1_aimp4")
player = NodePath("CB_add_pos/CharacterBody2D")
2024-10-28 19:24:10 +08:00
[node name="map" type="Node2D" parent="."]
2024-10-25 15:41:39 +08:00
[node name="CanvasLayer" type="CanvasLayer" parent="."]
2024-10-28 19:24:10 +08:00
layer = 2
2024-10-25 15:41:39 +08:00
[node name="Control" type="Control" parent="CanvasLayer"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
2024-10-28 19:24:10 +08:00
[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/Control"]
layout_mode = 0
offset_right = 272.0
offset_bottom = 66.0
[node name="type" type="MenuButton" parent="CanvasLayer/Control/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
flat = false
item_count = 2
popup/item_0/text = "test_character_base"
popup/item_1/text = "test_character_ranged"
popup/item_1/id = 1
[node name="put_check" type="CheckBox" parent="CanvasLayer/Control/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "投放"
[node name="LineEdit" type="LineEdit" parent="CanvasLayer/Control/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
placeholder_text = "id"
[node name="num" type="Label" parent="CanvasLayer/Control/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
[node name="cacul_num_number" type="Timer" parent="CanvasLayer/Control/HBoxContainer"]
autostart = true
[node name="change_scene_0" type="Button" parent="CanvasLayer/Control/HBoxContainer"]
layout_mode = 2
text = "切换到场景0"
[node name="change_scene_1" type="Button" parent="CanvasLayer/Control/HBoxContainer"]
layout_mode = 2
text = "切换到场景1"
2024-10-25 15:41:39 +08:00
[node name="mouse_finder" type="Area2D" parent="."]
unique_name_in_owner = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="mouse_finder"]
shape = SubResource("CircleShape2D_shajf")
[node name="CB_add_pos" type="Node2D" parent="."]
unique_name_in_owner = true
y_sort_enabled = true
[node name="CharacterBody2D" parent="CB_add_pos" instance=ExtResource("2_nvm7o")]
2024-10-25 17:45:08 +08:00
2024-10-25 15:41:39 +08:00
[connection signal="gui_input" from="CanvasLayer/Control" to="." method="_on_control_gui_input"]
2024-10-28 19:24:10 +08:00
[connection signal="timeout" from="CanvasLayer/Control/HBoxContainer/cacul_num_number" to="." method="_on_cacul_num_number_timeout"]
[connection signal="pressed" from="CanvasLayer/Control/HBoxContainer/change_scene_0" to="." method="_on_change_scene_0_pressed"]
[connection signal="pressed" from="CanvasLayer/Control/HBoxContainer/change_scene_1" to="." method="_on_change_scene_1_pressed"]