Auto-submit text and remove button, code improvements

This commit is contained in:
ChaoticByte 2025-08-07 16:53:16 +02:00
parent 0f6d4c6c75
commit 59ee063e5c
No known key found for this signature in database
4 changed files with 8 additions and 32 deletions

View file

@ -180,17 +180,6 @@ offset_bottom = 320.0
alignment = 1
keep_editing_on_text_submit = true
[node name="SubmitButton" type="Button" parent="."]
unique_name_in_owner = true
layout_mode = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = -40.0
offset_top = 344.0
offset_right = 40.0
offset_bottom = 376.0
text = "Submit"
[node name="SettingsMenu" parent="." instance=ExtResource("8_85g3d")]
unique_name_in_owner = true
visible = false
@ -214,6 +203,7 @@ offset_right = 32.0
offset_bottom = -33.7
grow_horizontal = 2
grow_vertical = 0
focus_mode = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_ya4ey")
script = ExtResource("11_ya4ey")
@ -228,4 +218,3 @@ vertical_alignment = 1
[connection signal="pressed" from="ShowSettingsButton" to="." method="_on_settings_button_pressed"]
[connection signal="pressed" from="ShowPhrasesButton" to="." method="_on_show_phrases_button_pressed"]
[connection signal="text_changed" from="AnswerInput" to="." method="_on_answer_input_text_changed"]
[connection signal="pressed" from="SubmitButton" to="." method="_on_submit_button_pressed"]