Browse Source

Adding Select on Focus to inputs

pull/1/head
Ryan Reed 1 year ago
parent
commit
54c60ec813
1 changed files with 12 additions and 5 deletions
  1. +12
    -5
      world.tscn

+ 12
- 5
world.tscn View File

@ -91,16 +91,18 @@ custom_minimum_size = Vector2(120, 0)
layout_mode = 2
text = "Seed"
[node name="Input" type="LineEdit" parent="UI/WorldGeneration/VBoxContainer/Seed"]
custom_minimum_size = Vector2(200, 0)
layout_mode = 2
placeholder_text = "Empty for Random"
[node name="Generate" type="Button" parent="UI/WorldGeneration/VBoxContainer/Seed"]
self_modulate = Color(0.501961, 0.501961, 0.501961, 1)
layout_mode = 2
icon = ExtResource("4_fcljs")
[node name="Input" type="LineEdit" parent="UI/WorldGeneration/VBoxContainer/Seed"]
custom_minimum_size = Vector2(200, 0)
layout_mode = 2
placeholder_text = "Empty for Random"
clear_button_enabled = true
select_all_on_focus = true
[node name="WorldSize" type="HBoxContainer" parent="UI/WorldGeneration/VBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 6
@ -119,6 +121,7 @@ custom_minimum_size = Vector2(20, 0)
layout_mode = 2
text = "32"
max_length = 4
select_all_on_focus = true
[node name="Label_y" type="Label" parent="UI/WorldGeneration/VBoxContainer/WorldSize"]
layout_mode = 2
@ -129,6 +132,7 @@ custom_minimum_size = Vector2(20, 0)
layout_mode = 2
text = "32"
max_length = 4
select_all_on_focus = true
[node name="CellSize" type="HBoxContainer" parent="UI/WorldGeneration/VBoxContainer"]
layout_mode = 2
@ -148,6 +152,7 @@ custom_minimum_size = Vector2(20, 0)
layout_mode = 2
text = "16"
max_length = 4
select_all_on_focus = true
[node name="Label_y" type="Label" parent="UI/WorldGeneration/VBoxContainer/CellSize"]
layout_mode = 2
@ -158,6 +163,8 @@ custom_minimum_size = Vector2(20, 0)
layout_mode = 2
text = "16"
max_length = 4
select_all_on_focus = true
[node name="Submit" type="HBoxContainer" parent="UI/WorldGeneration/VBoxContainer"]
layout_mode = 2


Loading…
Cancel
Save