diff --git a/addons/zylann.translation_editor/tools/extractor_dialog.tscn b/addons/zylann.translation_editor/tools/extractor_dialog.tscn index ef3538a..29273d7 100644 --- a/addons/zylann.translation_editor/tools/extractor_dialog.tscn +++ b/addons/zylann.translation_editor/tools/extractor_dialog.tscn @@ -3,393 +3,122 @@ [ext_resource path="res://addons/zylann.translation_editor/tools/extractor_dialog.gd" type="Script" id=1] [node name="ExtractorDialog" type="WindowDialog"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 54.0 margin_top = 68.0 margin_right = 694.0 margin_bottom = 548.0 rect_min_size = Vector2( 640, 480 ) -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -popup_exclusive = false window_title = "String extractor" resizable = true script = ExtResource( 1 ) -_sections_unfolded = [ "Rect" ] -[node name="VBoxContainer" type="VBoxContainer" parent="." index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 +[node name="VBoxContainer" type="VBoxContainer" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 8.0 margin_top = 8.0 margin_right = -8.0 margin_bottom = -8.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 -_sections_unfolded = [ "Margin" ] -[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer" index="0"] - -editor/display_folded = true -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"] margin_right = 624.0 margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 -[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"] margin_top = 5.0 margin_right = 29.0 margin_bottom = 19.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 4 text = "Root" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="RootPathEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="RootPathEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer"] margin_left = 33.0 margin_right = 624.0 margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 1 size_flags_horizontal = 3 -size_flags_vertical = 1 text = "res://" -focus_mode = 2 -context_menu_enabled = true -placeholder_alpha = 0.6 -caret_blink = false -caret_blink_speed = 0.65 -caret_position = 0 -_sections_unfolded = [ "Size Flags" ] -[node name="Options" type="HBoxContainer" parent="VBoxContainer" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Options" type="HBoxContainer" parent="VBoxContainer"] margin_top = 28.0 margin_right = 624.0 margin_bottom = 52.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 -[node name="ExcludedDirsLabel" type="Label" parent="VBoxContainer/Options" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="ExcludedDirsLabel" type="Label" parent="VBoxContainer/Options"] margin_top = 5.0 margin_right = 122.0 margin_bottom = 19.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 4 text = "Ignored directories" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="ExcludedDirsEdit" type="LineEdit" parent="VBoxContainer/Options" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="ExcludedDirsEdit" type="LineEdit" parent="VBoxContainer/Options"] margin_left = 126.0 margin_right = 624.0 margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false hint_tooltip = "Directories seperated by semicolons `;`" -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 1 size_flags_horizontal = 3 -size_flags_vertical = 1 text = "addons" -focus_mode = 2 -context_menu_enabled = true -placeholder_alpha = 0.6 -caret_blink = false -caret_blink_speed = 0.65 -caret_position = 0 -_sections_unfolded = [ "Hint" ] -[node name="StatusBar" type="Control" parent="VBoxContainer" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="StatusBar" type="Control" parent="VBoxContainer"] margin_top = 56.0 margin_right = 624.0 margin_bottom = 80.0 rect_min_size = Vector2( 0, 24 ) -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -_sections_unfolded = [ "Rect" ] -[node name="SummaryLabel" type="Label" parent="VBoxContainer/StatusBar" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="SummaryLabel" type="Label" parent="VBoxContainer/StatusBar"] margin_top = 4.0 margin_right = 624.0 margin_bottom = 18.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 4 align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="ProgressBar" type="ProgressBar" parent="VBoxContainer/StatusBar" index="1"] +[node name="ProgressBar" type="ProgressBar" parent="VBoxContainer/StatusBar"] visible = false -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_right = 624.0 margin_bottom = 16.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 0 -min_value = 0.0 -max_value = 100.0 step = 1.0 -page = 0.0 -value = 0.0 -exp_edit = false -rounded = false -percent_visible = true -_sections_unfolded = [ "Rect" ] -[node name="Results" type="Tree" parent="VBoxContainer" index="3"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Results" type="Tree" parent="VBoxContainer"] margin_top = 84.0 margin_right = 624.0 margin_bottom = 416.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = true -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 size_flags_vertical = 3 -columns = 1 -allow_reselect = false -allow_rmb_select = false -hide_folding = false hide_root = true -drop_mode_flags = 0 select_mode = 1 -_sections_unfolded = [ "Size Flags" ] -[node name="Spacer" type="Control" parent="VBoxContainer" index="4"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Spacer" type="Control" parent="VBoxContainer"] margin_top = 420.0 margin_right = 624.0 margin_bottom = 428.0 rect_min_size = Vector2( 0, 8 ) -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -_sections_unfolded = [ "Rect" ] -[node name="Buttons" type="HBoxContainer" parent="VBoxContainer" index="5"] - -editor/display_folded = true -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Buttons" type="HBoxContainer" parent="VBoxContainer"] margin_top = 432.0 margin_right = 624.0 margin_bottom = 452.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 custom_constants/separation = 16 alignment = 1 -_sections_unfolded = [ "custom_constants" ] -[node name="ExtractButton" type="Button" parent="VBoxContainer/Buttons" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="ExtractButton" type="Button" parent="VBoxContainer/Buttons"] margin_left = 184.0 margin_right = 239.0 margin_bottom = 20.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Extract" -flat = false -align = 1 -[node name="ImportButton" type="Button" parent="VBoxContainer/Buttons" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="ImportButton" type="Button" parent="VBoxContainer/Buttons"] margin_left = 255.0 margin_right = 370.0 margin_bottom = 20.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 disabled = true -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Import selected" -flat = false -align = 1 -[node name="CancelButton" type="Button" parent="VBoxContainer/Buttons" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="CancelButton" type="Button" parent="VBoxContainer/Buttons"] margin_left = 386.0 margin_right = 440.0 margin_bottom = 20.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Cancel" -flat = false -align = 1 -[node name="Spacer2" type="Control" parent="VBoxContainer" index="6"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Spacer2" type="Control" parent="VBoxContainer"] margin_top = 456.0 margin_right = 624.0 margin_bottom = 464.0 rect_min_size = Vector2( 0, 8 ) -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -_sections_unfolded = [ "Rect" ] - [connection signal="pressed" from="VBoxContainer/Buttons/ExtractButton" to="." method="_on_ExtractButton_pressed"] - [connection signal="pressed" from="VBoxContainer/Buttons/ImportButton" to="." method="_on_ImportButton_pressed"] - [connection signal="pressed" from="VBoxContainer/Buttons/CancelButton" to="." method="_on_CancelButton_pressed"] - - diff --git a/addons/zylann.translation_editor/tools/language_selection_dialog.tscn b/addons/zylann.translation_editor/tools/language_selection_dialog.tscn index 5fe791d..7293fb6 100644 --- a/addons/zylann.translation_editor/tools/language_selection_dialog.tscn +++ b/addons/zylann.translation_editor/tools/language_selection_dialog.tscn @@ -2,192 +2,65 @@ [ext_resource path="res://addons/zylann.translation_editor/tools/language_selection_dialog.gd" type="Script" id=1] -[node name="LanguageSelectionDialog" type="WindowDialog" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="LanguageSelectionDialog" type="WindowDialog"] margin_left = 157.0 margin_top = 145.0 margin_right = 507.0 margin_bottom = 481.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -popup_exclusive = false window_title = "Select new language" resizable = true script = ExtResource( 1 ) -[node name="VBoxContainer" type="VBoxContainer" parent="." index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 +[node name="VBoxContainer" type="VBoxContainer" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 8.0 margin_top = 8.0 margin_right = -8.0 margin_bottom = -8.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 -_sections_unfolded = [ "Margin" ] -[node name="FilterEdit" type="LineEdit" parent="VBoxContainer" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="FilterEdit" type="LineEdit" parent="VBoxContainer"] margin_right = 334.0 margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 1 -size_flags_horizontal = 1 -size_flags_vertical = 1 -focus_mode = 2 -context_menu_enabled = true -placeholder_alpha = 0.6 -caret_blink = false -caret_blink_speed = 0.65 -caret_position = 0 -[node name="LanguagesList" type="Tree" parent="VBoxContainer" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="LanguagesList" type="Tree" parent="VBoxContainer"] margin_top = 28.0 margin_right = 334.0 margin_bottom = 284.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = true -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 size_flags_vertical = 3 columns = 2 -allow_reselect = false -allow_rmb_select = false -hide_folding = false hide_root = true -drop_mode_flags = 0 select_mode = 1 -_sections_unfolded = [ "Size Flags" ] -[node name="Spacer" type="Control" parent="VBoxContainer" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Spacer" type="Control" parent="VBoxContainer"] margin_top = 288.0 margin_right = 334.0 margin_bottom = 296.0 rect_min_size = Vector2( 0, 8 ) -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -_sections_unfolded = [ "Rect" ] -[node name="Buttons" type="HBoxContainer" parent="VBoxContainer" index="3"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Buttons" type="HBoxContainer" parent="VBoxContainer"] margin_top = 300.0 margin_right = 334.0 margin_bottom = 320.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 custom_constants/separation = 8 alignment = 1 -_sections_unfolded = [ "custom_constants" ] -[node name="OkButton" type="Button" parent="VBoxContainer/Buttons" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="OkButton" type="Button" parent="VBoxContainer/Buttons"] margin_left = 63.0 margin_right = 163.0 margin_bottom = 20.0 rect_min_size = Vector2( 100, 0 ) -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "OK" -flat = false -align = 1 -_sections_unfolded = [ "Rect" ] -[node name="CancelButton" type="Button" parent="VBoxContainer/Buttons" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="CancelButton" type="Button" parent="VBoxContainer/Buttons"] margin_left = 171.0 margin_right = 271.0 margin_bottom = 20.0 rect_min_size = Vector2( 100, 0 ) -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Cancel" -flat = false -align = 1 -_sections_unfolded = [ "Rect" ] - [connection signal="text_changed" from="VBoxContainer/FilterEdit" to="." method="_on_FilterEdit_text_changed"] - [connection signal="item_activated" from="VBoxContainer/LanguagesList" to="." method="_on_LanguagesList_item_activated"] - [connection signal="item_selected" from="VBoxContainer/LanguagesList" to="." method="_on_LanguagesList_item_selected"] - [connection signal="nothing_selected" from="VBoxContainer/LanguagesList" to="." method="_on_LanguagesList_nothing_selected"] - [connection signal="pressed" from="VBoxContainer/Buttons/OkButton" to="." method="_on_OkButton_pressed"] - [connection signal="pressed" from="VBoxContainer/Buttons/CancelButton" to="." method="_on_CancelButton_pressed"] - - diff --git a/addons/zylann.translation_editor/tools/string_edition_dialog.tscn b/addons/zylann.translation_editor/tools/string_edition_dialog.tscn index 0679a82..9623927 100644 --- a/addons/zylann.translation_editor/tools/string_edition_dialog.tscn +++ b/addons/zylann.translation_editor/tools/string_edition_dialog.tscn @@ -2,183 +2,59 @@ [ext_resource path="res://addons/zylann.translation_editor/tools/string_edition_dialog.gd" type="Script" id=1] -[node name="StringEditionDialog" type="WindowDialog" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="StringEditionDialog" type="WindowDialog"] margin_left = 118.0 margin_top = 154.0 margin_right = 446.0 margin_bottom = 259.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -popup_exclusive = false window_title = "New string ID" -resizable = false script = ExtResource( 1 ) -[node name="VBoxContainer" type="VBoxContainer" parent="." index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 +[node name="VBoxContainer" type="VBoxContainer" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 8.0 margin_top = 8.0 margin_right = -8.0 margin_bottom = -32.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 -_sections_unfolded = [ "Margin" ] -[node name="HintLabel" type="Label" parent="VBoxContainer" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="HintLabel" type="Label" parent="VBoxContainer"] margin_right = 312.0 margin_bottom = 14.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 4 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="LineEdit" type="LineEdit" parent="VBoxContainer" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="LineEdit" type="LineEdit" parent="VBoxContainer"] margin_top = 18.0 margin_right = 312.0 margin_bottom = 42.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 1 -size_flags_horizontal = 1 -size_flags_vertical = 1 -focus_mode = 2 -context_menu_enabled = true -placeholder_alpha = 0.6 -caret_blink = false -caret_blink_speed = 0.65 -caret_position = 0 -[node name="Spacer" type="Control" parent="VBoxContainer" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Spacer" type="Control" parent="VBoxContainer"] margin_top = 46.0 margin_right = 312.0 margin_bottom = 54.0 rect_min_size = Vector2( 0, 8 ) -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -_sections_unfolded = [ "Rect" ] -[node name="Buttons" type="HBoxContainer" parent="VBoxContainer" index="3"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Buttons" type="HBoxContainer" parent="VBoxContainer"] margin_top = 58.0 margin_right = 312.0 margin_bottom = 78.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 custom_constants/separation = 16 alignment = 1 -_sections_unfolded = [ "custom_constants" ] -[node name="OkButton" type="Button" parent="VBoxContainer/Buttons" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="OkButton" type="Button" parent="VBoxContainer/Buttons"] margin_left = 48.0 margin_right = 148.0 margin_bottom = 20.0 rect_min_size = Vector2( 100, 0 ) -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 disabled = true -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "OK" -flat = false -align = 1 -_sections_unfolded = [ "Rect" ] -[node name="CancelButton" type="Button" parent="VBoxContainer/Buttons" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="CancelButton" type="Button" parent="VBoxContainer/Buttons"] margin_left = 164.0 margin_right = 264.0 margin_bottom = 20.0 rect_min_size = Vector2( 100, 0 ) -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Cancel" -flat = false -align = 1 -_sections_unfolded = [ "Rect" ] - [connection signal="text_changed" from="VBoxContainer/LineEdit" to="." method="_on_LineEdit_text_changed"] - [connection signal="text_entered" from="VBoxContainer/LineEdit" to="." method="_on_LineEdit_text_entered"] - [connection signal="pressed" from="VBoxContainer/Buttons/OkButton" to="." method="_on_OkButton_pressed"] - [connection signal="pressed" from="VBoxContainer/Buttons/CancelButton" to="." method="_on_CancelButton_pressed"] - - diff --git a/addons/zylann.translation_editor/tools/translation_editor.tscn b/addons/zylann.translation_editor/tools/translation_editor.tscn index fba3bce..ce71238 100644 --- a/addons/zylann.translation_editor/tools/translation_editor.tscn +++ b/addons/zylann.translation_editor/tools/translation_editor.tscn @@ -4,555 +4,160 @@ [ext_resource path="res://addons/zylann.translation_editor/tools/icons/icon_load.svg" type="Texture" id=2] [ext_resource path="res://addons/zylann.translation_editor/tools/icons/icon_save.svg" type="Texture" id=3] -[node name="TranslationEditor" type="Panel" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 +[node name="TranslationEditor" type="Panel"] anchor_right = 1.0 anchor_bottom = 1.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 size_flags_vertical = 3 script = ExtResource( 1 ) -_sections_unfolded = [ "Margin", "Size Flags" ] +__meta__ = { +"_edit_use_anchors_": false +} -[node name="VBoxContainer" type="VBoxContainer" parent="." index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 +[node name="VBoxContainer" type="VBoxContainer" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 4.0 margin_top = 4.0 margin_right = -4.0 margin_bottom = -4.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 -_sections_unfolded = [ "Margin" ] -[node name="MenuBar" type="HBoxContainer" parent="VBoxContainer" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="MenuBar" type="HBoxContainer" parent="VBoxContainer"] margin_right = 1016.0 margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 -[node name="FileMenu" type="MenuButton" parent="VBoxContainer/MenuBar" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="FileMenu" type="MenuButton" parent="VBoxContainer/MenuBar"] margin_right = 35.0 margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 toggle_mode = false -action_mode = 0 -enabled_focus_mode = 0 -shortcut = null -group = null text = "File" -flat = true -align = 1 -items = [ ] -[node name="EditMenu" type="MenuButton" parent="VBoxContainer/MenuBar" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="EditMenu" type="MenuButton" parent="VBoxContainer/MenuBar"] margin_left = 39.0 margin_right = 75.0 margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 toggle_mode = false -action_mode = 0 -enabled_focus_mode = 0 -shortcut = null -group = null text = "Edit" -flat = true -align = 1 -items = [ ] -[node name="VSeparator" type="VSeparator" parent="VBoxContainer/MenuBar" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="VSeparator" type="VSeparator" parent="VBoxContainer/MenuBar"] margin_left = 79.0 margin_right = 83.0 margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -[node name="OpenButton" type="ToolButton" parent="VBoxContainer/MenuBar" index="3"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="OpenButton" type="ToolButton" parent="VBoxContainer/MenuBar"] margin_left = 87.0 margin_right = 115.0 margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null icon = ExtResource( 2 ) -flat = true -align = 1 -[node name="SaveButton" type="ToolButton" parent="VBoxContainer/MenuBar" index="4"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="SaveButton" type="ToolButton" parent="VBoxContainer/MenuBar"] margin_left = 119.0 margin_right = 147.0 margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null icon = ExtResource( 3 ) -flat = true -align = 1 -[node name="Main" type="HSplitContainer" parent="VBoxContainer" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Main" type="HSplitContainer" parent="VBoxContainer"] margin_top = 28.0 margin_right = 1016.0 margin_bottom = 574.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 size_flags_vertical = 3 split_offset = 100 -collapsed = false -dragger_visibility = 0 -_sections_unfolded = [ "Size Flags" ] -[node name="LeftPane" type="VBoxContainer" parent="VBoxContainer/Main" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="LeftPane" type="VBoxContainer" parent="VBoxContainer/Main"] margin_right = 273.0 margin_bottom = 546.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 -[node name="Search" type="HBoxContainer" parent="VBoxContainer/Main/LeftPane" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Search" type="HBoxContainer" parent="VBoxContainer/Main/LeftPane"] margin_right = 273.0 margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 -[node name="Search" type="LineEdit" parent="VBoxContainer/Main/LeftPane/Search" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Search" type="LineEdit" parent="VBoxContainer/Main/LeftPane/Search"] margin_right = 273.0 margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 1 size_flags_horizontal = 3 -size_flags_vertical = 1 -focus_mode = 2 -context_menu_enabled = true -placeholder_alpha = 0.6 -caret_blink = false -caret_blink_speed = 0.65 -caret_position = 0 -_sections_unfolded = [ "Size Flags" ] - -[node name="ClearSearch" type="Button" parent="VBoxContainer/Main/LeftPane/Search" index="1"] +[node name="ClearSearch" type="Button" parent="VBoxContainer/Main/LeftPane/Search"] visible = false -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 254.0 margin_right = 273.0 margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "x" -flat = false -align = 1 -[node name="StringList" type="ItemList" parent="VBoxContainer/Main/LeftPane" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="StringList" type="ItemList" parent="VBoxContainer/Main/LeftPane"] margin_top = 28.0 margin_right = 273.0 margin_bottom = 522.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = true -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 size_flags_vertical = 3 -items = [ ] -select_mode = 0 -allow_reselect = false -icon_mode = 1 -fixed_icon_size = Vector2( 0, 0 ) -_sections_unfolded = [ "Size Flags" ] -[node name="StringListActions" type="HBoxContainer" parent="VBoxContainer/Main/LeftPane" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="StringListActions" type="HBoxContainer" parent="VBoxContainer/Main/LeftPane"] margin_top = 526.0 margin_right = 273.0 margin_bottom = 546.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 -[node name="AddButton" type="Button" parent="VBoxContainer/Main/LeftPane/StringListActions" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="AddButton" type="Button" parent="VBoxContainer/Main/LeftPane/StringListActions"] margin_right = 37.0 margin_bottom = 20.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Add" -flat = false -align = 1 -[node name="RemoveButton" type="Button" parent="VBoxContainer/Main/LeftPane/StringListActions" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="RemoveButton" type="Button" parent="VBoxContainer/Main/LeftPane/StringListActions"] margin_left = 41.0 margin_right = 105.0 margin_bottom = 20.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Remove" -flat = false -align = 1 -[node name="RenameButton" type="Button" parent="VBoxContainer/Main/LeftPane/StringListActions" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="RenameButton" type="Button" parent="VBoxContainer/Main/LeftPane/StringListActions"] margin_left = 109.0 margin_right = 173.0 margin_bottom = 20.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Rename" -flat = false -align = 1 -[node name="RightPane" type="VBoxContainer" parent="VBoxContainer/Main" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="RightPane" type="VBoxContainer" parent="VBoxContainer/Main"] margin_left = 285.0 margin_right = 1016.0 margin_bottom = 546.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 -[node name="VSplitContainer" type="VSplitContainer" parent="VBoxContainer/Main/RightPane" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="VSplitContainer" type="VSplitContainer" parent="VBoxContainer/Main/RightPane"] margin_right = 731.0 margin_bottom = 546.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 size_flags_vertical = 3 split_offset = 250 -collapsed = false -dragger_visibility = 0 -_sections_unfolded = [ "Size Flags" ] -[node name="TranslationTabContainer" type="TabContainer" parent="VBoxContainer/Main/RightPane/VSplitContainer" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="TranslationTabContainer" type="TabContainer" parent="VBoxContainer/Main/RightPane/VSplitContainer"] margin_right = 731.0 margin_bottom = 286.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 tab_align = 0 -tabs_visible = true -[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/Main/RightPane/VSplitContainer" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/Main/RightPane/VSplitContainer"] margin_top = 298.0 margin_right = 731.0 margin_bottom = 546.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 -[node name="Label" type="Label" parent="VBoxContainer/Main/RightPane/VSplitContainer/VBoxContainer" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Label" type="Label" parent="VBoxContainer/Main/RightPane/VSplitContainer/VBoxContainer"] margin_right = 731.0 margin_bottom = 14.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 4 text = "Notes" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="NotesEdit" type="TextEdit" parent="VBoxContainer/Main/RightPane/VSplitContainer/VBoxContainer" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="NotesEdit" type="TextEdit" parent="VBoxContainer/Main/RightPane/VSplitContainer/VBoxContainer"] margin_top = 18.0 margin_right = 731.0 margin_bottom = 248.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 size_flags_vertical = 3 -text = "" -readonly = false -highlight_current_line = false -syntax_highlighting = false -show_line_numbers = false -highlight_all_occurrences = false -override_selected_font_color = false -context_menu_enabled = true -smooth_scrolling = false -v_scroll_speed = 80.0 -hiding_enabled = 0 -wrap_lines = false -caret_block_mode = false -caret_blink = false -caret_blink_speed = 0.65 -caret_moving_by_right_click = true -_sections_unfolded = [ "Rect", "Size Flags" ] -[node name="StatusBar" type="HBoxContainer" parent="VBoxContainer" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="StatusBar" type="HBoxContainer" parent="VBoxContainer"] margin_top = 578.0 margin_right = 1016.0 margin_bottom = 592.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 -[node name="Label" type="Label" parent="VBoxContainer/StatusBar" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Label" type="Label" parent="VBoxContainer/StatusBar"] margin_right = 39.0 margin_bottom = 14.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 4 text = "Status" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - [connection signal="pressed" from="VBoxContainer/MenuBar/OpenButton" to="." method="_on_OpenButton_pressed"] - [connection signal="pressed" from="VBoxContainer/MenuBar/SaveButton" to="." method="_on_SaveButton_pressed"] - [connection signal="text_changed" from="VBoxContainer/Main/LeftPane/Search/Search" to="." method="_on_Search_text_changed"] - [connection signal="pressed" from="VBoxContainer/Main/LeftPane/Search/ClearSearch" to="." method="_on_ClearSearch_pressed"] - [connection signal="item_selected" from="VBoxContainer/Main/LeftPane/StringList" to="." method="_on_StringList_item_selected"] - [connection signal="pressed" from="VBoxContainer/Main/LeftPane/StringListActions/AddButton" to="." method="_on_AddButton_pressed"] - [connection signal="pressed" from="VBoxContainer/Main/LeftPane/StringListActions/RemoveButton" to="." method="_on_RemoveButton_pressed"] - [connection signal="pressed" from="VBoxContainer/Main/LeftPane/StringListActions/RenameButton" to="." method="_on_RenameButton_pressed"] - [connection signal="text_changed" from="VBoxContainer/Main/RightPane/VSplitContainer/VBoxContainer/NotesEdit" to="." method="_on_NotesEdit_text_changed"] - -