diff --git a/DungeonShooting_Godot/addons/dungeonShooting_plugin/Automation.cs b/DungeonShooting_Godot/addons/dungeonShooting_plugin/Automation.cs deleted file mode 100644 index 576b44f..0000000 --- a/DungeonShooting_Godot/addons/dungeonShooting_plugin/Automation.cs +++ /dev/null @@ -1,24 +0,0 @@ -#if TOOLS -using Generator; -using Godot; - -[Tool] -public partial class Automation : Control -{ - /// - /// 更新 ResourcePath - /// - private void _on_Button_pressed() - { - ResourcePathGenerator.Generate(); - } - - /// - /// 重新打包房间配置 - /// - private void _on_Button2_pressed() - { - RoomPackGenerator.Generate(); - } -} -#endif \ No newline at end of file diff --git a/DungeonShooting_Godot/addons/dungeonShooting_plugin/Automation.tscn b/DungeonShooting_Godot/addons/dungeonShooting_plugin/Automation.tscn deleted file mode 100644 index 66d1942..0000000 --- a/DungeonShooting_Godot/addons/dungeonShooting_plugin/Automation.tscn +++ /dev/null @@ -1,46 +0,0 @@ -[gd_scene load_steps=2 format=3 uid="uid://bygnukrvvm1vi"] - -[ext_resource type="Script" path="res://addons/dungeonShooting_plugin/Automation.cs" id="1"] - -[node name="Automation" type="Control"] -layout_mode = 3 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -script = ExtResource("1") - -[node name="ScrollContainer" type="ScrollContainer" parent="."] -layout_mode = 0 -anchor_right = 1.0 -anchor_bottom = 1.0 - -[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer"] -layout_mode = 2 -size_flags_horizontal = 3 - -[node name="HBoxContainer" type="HBoxContainer" parent="ScrollContainer/VBoxContainer"] -layout_mode = 2 - -[node name="Label" type="Label" parent="ScrollContainer/VBoxContainer/HBoxContainer"] -layout_mode = 2 -text = "ResourcePath.cs" - -[node name="Button" type="Button" parent="ScrollContainer/VBoxContainer/HBoxContainer"] -layout_mode = 2 -text = "重新生成" - -[node name="HBoxContainer2" type="HBoxContainer" parent="ScrollContainer/VBoxContainer"] -layout_mode = 2 - -[node name="Label" type="Label" parent="ScrollContainer/VBoxContainer/HBoxContainer2"] -layout_mode = 2 -text = "地牢房间配置" - -[node name="Button" type="Button" parent="ScrollContainer/VBoxContainer/HBoxContainer2"] -layout_mode = 2 -text = "重新打包" - -[connection signal="pressed" from="ScrollContainer/VBoxContainer/HBoxContainer/Button" to="." method="_on_Button_pressed"] -[connection signal="pressed" from="ScrollContainer/VBoxContainer/HBoxContainer2/Button" to="." method="_on_Button2_pressed"] diff --git a/DungeonShooting_Godot/addons/dungeonShooting_plugin/Plugin.cs b/DungeonShooting_Godot/addons/dungeonShooting_plugin/Plugin.cs index 10ccbeb..0132338 100644 --- a/DungeonShooting_Godot/addons/dungeonShooting_plugin/Plugin.cs +++ b/DungeonShooting_Godot/addons/dungeonShooting_plugin/Plugin.cs @@ -37,8 +37,13 @@ var script5 = GD.Load