hook_gen.tscn 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. [gd_scene load_steps=2 format=3 uid="uid://cpll5clcnemyj"]
  2. [ext_resource type="Script" path="res://addons/mod_tool/interface/hook_gen/hook_gen.gd" id="1_lrahv"]
  3. [node name="HookGen" type="Window"]
  4. title = "Mod Dev Tool"
  5. initial_position = 1
  6. size = Vector2i(640, 375)
  7. wrap_controls = true
  8. script = ExtResource("1_lrahv")
  9. [node name="Restart" type="Window" parent="."]
  10. unique_name_in_owner = true
  11. title = "Mod Dev Tool"
  12. initial_position = 1
  13. size = Vector2i(440, 117)
  14. visible = false
  15. wrap_controls = true
  16. [node name="MarginContainer" type="MarginContainer" parent="Restart"]
  17. offset_right = 40.0
  18. offset_bottom = 40.0
  19. theme_override_constants/margin_left = 20
  20. theme_override_constants/margin_top = 10
  21. theme_override_constants/margin_right = 20
  22. theme_override_constants/margin_bottom = 10
  23. [node name="VBC" type="VBoxContainer" parent="Restart/MarginContainer"]
  24. layout_mode = 2
  25. theme_override_constants/separation = 20
  26. [node name="LabelInfoText" type="RichTextLabel" parent="Restart/MarginContainer/VBC"]
  27. custom_minimum_size = Vector2(400, 0)
  28. layout_mode = 2
  29. text = "Successfully generated mod hooks.
  30. To start modding, a restart of the editor is required."
  31. fit_content = true
  32. [node name="HBC" type="HBoxContainer" parent="Restart/MarginContainer/VBC"]
  33. layout_mode = 2
  34. size_flags_horizontal = 4
  35. theme_override_constants/separation = 30
  36. [node name="ButtonRestartNow" type="Button" parent="Restart/MarginContainer/VBC/HBC"]
  37. layout_mode = 2
  38. text = "Restart Now"
  39. [node name="ButtonRestartLater" type="Button" parent="Restart/MarginContainer/VBC/HBC"]
  40. layout_mode = 2
  41. text = "Restart Later"
  42. [node name="MarginContainer" type="MarginContainer" parent="."]
  43. anchors_preset = 15
  44. anchor_right = 1.0
  45. anchor_bottom = 1.0
  46. grow_horizontal = 2
  47. grow_vertical = 2
  48. theme_override_constants/margin_left = 20
  49. theme_override_constants/margin_top = 10
  50. theme_override_constants/margin_right = 20
  51. theme_override_constants/margin_bottom = 15
  52. [node name="VBC" type="VBoxContainer" parent="MarginContainer"]
  53. layout_mode = 2
  54. theme_override_constants/separation = 20
  55. [node name="LabelInfoText" type="RichTextLabel" parent="MarginContainer/VBC"]
  56. custom_minimum_size = Vector2(600, 0)
  57. layout_mode = 2
  58. text = "This will modify all existing scripts in the project, so please make sure to save your files before continuing.
  59. The process may take some time depending on the number of scripts."
  60. fit_content = true
  61. [node name="VBC" type="VBoxContainer" parent="MarginContainer/VBC"]
  62. layout_mode = 2
  63. theme_override_constants/separation = 10
  64. [node name="ButtonGenStart" type="Button" parent="MarginContainer/VBC/VBC"]
  65. unique_name_in_owner = true
  66. layout_mode = 2
  67. text = "Generate mod hooks"
  68. [node name="ButtonHooksExist" type="Button" parent="MarginContainer/VBC/VBC"]
  69. unique_name_in_owner = true
  70. layout_mode = 2
  71. text = "Hooks already exist"
  72. [node name="VBC2" type="VBoxContainer" parent="MarginContainer/VBC"]
  73. layout_mode = 2
  74. theme_override_constants/separation = 15
  75. [node name="InfoOutput" type="RichTextLabel" parent="MarginContainer/VBC/VBC2"]
  76. unique_name_in_owner = true
  77. custom_minimum_size = Vector2(600, 100)
  78. layout_mode = 2
  79. size_flags_vertical = 3
  80. scroll_following = true
  81. [connection signal="close_requested" from="." to="." method="_on_close_requested"]
  82. [connection signal="close_requested" from="Restart" to="." method="_on_restart_close_requested"]
  83. [connection signal="pressed" from="Restart/MarginContainer/VBC/HBC/ButtonRestartNow" to="." method="_on_button_restart_now_pressed"]
  84. [connection signal="pressed" from="Restart/MarginContainer/VBC/HBC/ButtonRestartLater" to="." method="_on_button_restart_later_pressed"]
  85. [connection signal="pressed" from="MarginContainer/VBC/VBC/ButtonGenStart" to="." method="_on_button_pressed"]
  86. [connection signal="pressed" from="MarginContainer/VBC/VBC/ButtonHooksExist" to="." method="_on_button_hooks_exist_pressed"]