[gd_scene load_steps=2 format=3 uid="uid://x6k08vebvl8b"] [ext_resource type="Script" uid="uid://uu3ra0v727ro" path="res://addons/mod_tool/interface/config_editor/json_editor.gd" id="1"] [node name="Mod Config Editor" type="PanelContainer"] visible = false anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 offset_top = 24.0 [node name="VBox" type="VBoxContainer" parent="."] layout_mode = 2 [node name="HBox" type="HBoxContainer" parent="VBox"] layout_mode = 2 [node name="Label" type="Label" parent="VBox/HBox"] layout_mode = 2 size_flags_horizontal = 3 text = "Default json for user mod configuration" [node name="ErrorLabel" type="Label" parent="VBox/HBox"] unique_name_in_owner = true layout_mode = 2 text = "JSON is valid" [node name="ShouldValidate" type="CheckButton" parent="VBox/HBox"] unique_name_in_owner = true layout_mode = 2 flat = true [node name="VSeparator" type="VSeparator" parent="VBox/HBox"] layout_mode = 2 [node name="SaveConfig" type="Button" parent="VBox/HBox"] layout_mode = 2 text = "Save config to manifest.json" [node name="ConfigEditor" type="TextEdit" parent="VBox"] unique_name_in_owner = true layout_mode = 2 size_flags_vertical = 3 text = "{ }" highlight_all_occurrences = true highlight_current_line = true script = ExtResource("1") [node name="ValidationDelay" type="Timer" parent="VBox/ConfigEditor"] one_shot = true [connection signal="text_changed" from="VBox/ConfigEditor" to="VBox/ConfigEditor" method="_on_text_changed"] [connection signal="timeout" from="VBox/ConfigEditor/ValidationDelay" to="VBox/ConfigEditor" method="_on_ValidationDelay_timeout"]