105 lines
3.8 KiB
Plaintext
105 lines
3.8 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://dx33ijlgd8m3w"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://dbl3r8426473v" path="res://sources/language_tool/plus_button.tscn" id="1_g3tt5"]
|
|
[ext_resource type="Script" path="res://sources/language_tool/word_list_element.gd" id="1_q2ekb"]
|
|
[ext_resource type="Texture2D" uid="uid://c5jiyxrmmjmdb" path="res://assets/menus/modify_button.png" id="2_i6x6b"]
|
|
[ext_resource type="Texture2D" uid="uid://b8tctfnsj3prx" path="res://assets/menus/minus_button.png" id="3_mgblq"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_emsyu"]
|
|
bg_color = Color(0.254902, 0.329412, 0.572549, 1)
|
|
border_width_bottom = 2
|
|
border_color = Color(0, 0, 0, 1)
|
|
|
|
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_t1yui"]
|
|
|
|
[node name="WordListElement" type="MarginContainer"]
|
|
anchors_preset = 14
|
|
anchor_top = 0.5
|
|
anchor_right = 1.0
|
|
anchor_bottom = 0.5
|
|
offset_top = -110.0
|
|
offset_bottom = 110.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_q2ekb")
|
|
|
|
[node name="Panel" type="Panel" parent="."]
|
|
layout_mode = 2
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_emsyu")
|
|
|
|
[node name="TabContainer" type="TabContainer" parent="."]
|
|
layout_mode = 2
|
|
theme_override_styles/panel = SubResource("StyleBoxEmpty_t1yui")
|
|
tabs_visible = false
|
|
use_hidden_tabs_for_min_size = true
|
|
|
|
[node name="NormalContainer" type="HBoxContainer" parent="TabContainer"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="Word" type="Label" parent="TabContainer/NormalContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_font_sizes/font_size = 100
|
|
text = "Bonjour"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="Graphemes" type="Label" parent="TabContainer/NormalContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_font_sizes/font_size = 100
|
|
text = "b on j ou r"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="EditButton" parent="TabContainer/NormalContainer" instance=ExtResource("1_g3tt5")]
|
|
custom_minimum_size = Vector2(120, 120)
|
|
layout_mode = 2
|
|
|
|
[node name="TextureRect" parent="TabContainer/NormalContainer/EditButton" index="0"]
|
|
texture = ExtResource("2_i6x6b")
|
|
|
|
[node name="EditContainer" type="HBoxContainer" parent="TabContainer"]
|
|
visible = false
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="MinusButton" parent="TabContainer/EditContainer" instance=ExtResource("1_g3tt5")]
|
|
layout_mode = 2
|
|
|
|
[node name="TextureRect" parent="TabContainer/EditContainer/MinusButton" index="0"]
|
|
texture = ExtResource("3_mgblq")
|
|
|
|
[node name="WordEdit" type="LineEdit" parent="TabContainer/EditContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_font_sizes/font_size = 100
|
|
text = "bonjour"
|
|
alignment = 1
|
|
|
|
[node name="GraphemesEdit" type="LineEdit" parent="TabContainer/EditContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_font_sizes/font_size = 100
|
|
text = "b on j ou r"
|
|
alignment = 1
|
|
|
|
[node name="ValidateButton" parent="TabContainer/EditContainer" instance=ExtResource("1_g3tt5")]
|
|
custom_minimum_size = Vector2(120, 120)
|
|
layout_mode = 2
|
|
|
|
[node name="TextureRect" parent="TabContainer/EditContainer/ValidateButton" index="0"]
|
|
texture = ExtResource("2_i6x6b")
|
|
|
|
[connection signal="pressed" from="TabContainer/NormalContainer/EditButton" to="." method="_on_edit_button_pressed"]
|
|
[connection signal="pressed" from="TabContainer/EditContainer/MinusButton" to="." method="_on_minus_button_pressed"]
|
|
[connection signal="text_changed" from="TabContainer/EditContainer/GraphemesEdit" to="." method="_on_graphemes_edit_text_changed"]
|
|
[connection signal="pressed" from="TabContainer/EditContainer/ValidateButton" to="." method="_on_validate_button_pressed"]
|
|
|
|
[editable path="TabContainer/NormalContainer/EditButton"]
|
|
[editable path="TabContainer/EditContainer/MinusButton"]
|
|
[editable path="TabContainer/EditContainer/ValidateButton"]
|