[gd_scene load_steps=5 format=3 uid="uid://1wl1fl3qtxc"] [ext_resource type="Script" path="res://scene/test/test_main.gd" id="1_aimp4"] [ext_resource type="PackedScene" uid="uid://bv85dh88ovwo4" path="res://scene/trader_board/trader_board.tscn" id="2_8ymm5"] [ext_resource type="PackedScene" uid="uid://cf2g2urxaukxb" path="res://scene/test/character.tscn" id="2_nvm7o"] [sub_resource type="CircleShape2D" id="CircleShape2D_shajf"] radius = 38.71 [node name="main" type="Node2D" node_paths=PackedStringArray("player")] script = ExtResource("1_aimp4") player = NodePath("CB_add_pos/CharacterBody2D") [node name="map" type="Node2D" parent="."] [node name="CanvasLayer" type="CanvasLayer" parent="."] layer = 2 [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 [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" [node name="trader_board" parent="CanvasLayer" instance=ExtResource("2_8ymm5")] unique_name_in_owner = true visible = false [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")] [connection signal="gui_input" from="CanvasLayer/Control" to="." method="_on_control_gui_input"] [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"] [connection signal="area_entered" from="mouse_finder" to="." method="_on_mouse_finder_area_entered"] [connection signal="area_exited" from="mouse_finder" to="." method="_on_mouse_finder_area_exited"]