| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- [gd_scene load_steps=2 format=3 uid="uid://cpll5clcnemyj"]
- [ext_resource type="Script" path="res://addons/mod_tool/interface/hook_gen/hook_gen.gd" id="1_lrahv"]
- [node name="HookGen" type="Window"]
- title = "Mod Dev Tool"
- initial_position = 1
- size = Vector2i(640, 375)
- wrap_controls = true
- script = ExtResource("1_lrahv")
- [node name="Restart" type="Window" parent="."]
- unique_name_in_owner = true
- title = "Mod Dev Tool"
- initial_position = 1
- size = Vector2i(440, 117)
- visible = false
- wrap_controls = true
- [node name="MarginContainer" type="MarginContainer" parent="Restart"]
- offset_right = 40.0
- offset_bottom = 40.0
- theme_override_constants/margin_left = 20
- theme_override_constants/margin_top = 10
- theme_override_constants/margin_right = 20
- theme_override_constants/margin_bottom = 10
- [node name="VBC" type="VBoxContainer" parent="Restart/MarginContainer"]
- layout_mode = 2
- theme_override_constants/separation = 20
- [node name="LabelInfoText" type="RichTextLabel" parent="Restart/MarginContainer/VBC"]
- custom_minimum_size = Vector2(400, 0)
- layout_mode = 2
- text = "Successfully generated mod hooks.
- To start modding, a restart of the editor is required."
- fit_content = true
- [node name="HBC" type="HBoxContainer" parent="Restart/MarginContainer/VBC"]
- layout_mode = 2
- size_flags_horizontal = 4
- theme_override_constants/separation = 30
- [node name="ButtonRestartNow" type="Button" parent="Restart/MarginContainer/VBC/HBC"]
- layout_mode = 2
- text = "Restart Now"
- [node name="ButtonRestartLater" type="Button" parent="Restart/MarginContainer/VBC/HBC"]
- layout_mode = 2
- text = "Restart Later"
- [node name="MarginContainer" type="MarginContainer" parent="."]
- anchors_preset = 15
- anchor_right = 1.0
- anchor_bottom = 1.0
- grow_horizontal = 2
- grow_vertical = 2
- theme_override_constants/margin_left = 20
- theme_override_constants/margin_top = 10
- theme_override_constants/margin_right = 20
- theme_override_constants/margin_bottom = 15
- [node name="VBC" type="VBoxContainer" parent="MarginContainer"]
- layout_mode = 2
- theme_override_constants/separation = 20
- [node name="LabelInfoText" type="RichTextLabel" parent="MarginContainer/VBC"]
- custom_minimum_size = Vector2(600, 0)
- layout_mode = 2
- text = "This will modify all existing scripts in the project, so please make sure to save your files before continuing.
- The process may take some time depending on the number of scripts."
- fit_content = true
- [node name="VBC" type="VBoxContainer" parent="MarginContainer/VBC"]
- layout_mode = 2
- theme_override_constants/separation = 10
- [node name="ButtonGenStart" type="Button" parent="MarginContainer/VBC/VBC"]
- unique_name_in_owner = true
- layout_mode = 2
- text = "Generate mod hooks"
- [node name="ButtonHooksExist" type="Button" parent="MarginContainer/VBC/VBC"]
- unique_name_in_owner = true
- layout_mode = 2
- text = "Hooks already exist"
- [node name="VBC2" type="VBoxContainer" parent="MarginContainer/VBC"]
- layout_mode = 2
- theme_override_constants/separation = 15
- [node name="InfoOutput" type="RichTextLabel" parent="MarginContainer/VBC/VBC2"]
- unique_name_in_owner = true
- custom_minimum_size = Vector2(600, 100)
- layout_mode = 2
- size_flags_vertical = 3
- scroll_following = true
- [connection signal="close_requested" from="." to="." method="_on_close_requested"]
- [connection signal="close_requested" from="Restart" to="." method="_on_restart_close_requested"]
- [connection signal="pressed" from="Restart/MarginContainer/VBC/HBC/ButtonRestartNow" to="." method="_on_button_restart_now_pressed"]
- [connection signal="pressed" from="Restart/MarginContainer/VBC/HBC/ButtonRestartLater" to="." method="_on_button_restart_later_pressed"]
- [connection signal="pressed" from="MarginContainer/VBC/VBC/ButtonGenStart" to="." method="_on_button_pressed"]
- [connection signal="pressed" from="MarginContainer/VBC/VBC/ButtonHooksExist" to="." method="_on_button_hooks_exist_pressed"]
|