|
|
@ -139,41 +139,30 @@ text = "32" |
|
|
|
max_length = 4 |
|
|
|
select_all_on_focus = true |
|
|
|
|
|
|
|
[node name="CellSize" type="HBoxContainer" parent="UI/WorldGeneration/VBoxContainer"] |
|
|
|
[node name="GenerationSpeed" type="HBoxContainer" parent="UI/WorldGeneration/VBoxContainer"] |
|
|
|
layout_mode = 2 |
|
|
|
theme_override_constants/separation = 6 |
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="UI/WorldGeneration/VBoxContainer/CellSize"] |
|
|
|
custom_minimum_size = Vector2(120, 0) |
|
|
|
[node name="Label" type="Label" parent="UI/WorldGeneration/VBoxContainer/GenerationSpeed"] |
|
|
|
layout_mode = 2 |
|
|
|
text = "Cell Size" |
|
|
|
text = "Generation Speed" |
|
|
|
|
|
|
|
[node name="Padding" type="VSeparator" parent="UI/WorldGeneration/VBoxContainer/CellSize"] |
|
|
|
[node name="Padding" type="VSeparator" parent="UI/WorldGeneration/VBoxContainer/GenerationSpeed"] |
|
|
|
modulate = Color(1, 1, 1, 0) |
|
|
|
layout_mode = 2 |
|
|
|
size_flags_horizontal = 3 |
|
|
|
|
|
|
|
[node name="Label_x" type="Label" parent="UI/WorldGeneration/VBoxContainer/CellSize"] |
|
|
|
layout_mode = 2 |
|
|
|
text = "X:" |
|
|
|
|
|
|
|
[node name="Input_x" type="LineEdit" parent="UI/WorldGeneration/VBoxContainer/CellSize"] |
|
|
|
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"] |
|
|
|
[node name="Input" type="HSlider" parent="UI/WorldGeneration/VBoxContainer/GenerationSpeed"] |
|
|
|
custom_minimum_size = Vector2(200, 0) |
|
|
|
layout_mode = 2 |
|
|
|
text = "Y:" |
|
|
|
tooltip_text = "The higher the speed, the less time between generations. |
|
|
|
|
|
|
|
[node name="Input_y" type="LineEdit" parent="UI/WorldGeneration/VBoxContainer/CellSize"] |
|
|
|
custom_minimum_size = Vector2(20, 0) |
|
|
|
layout_mode = 2 |
|
|
|
text = "16" |
|
|
|
max_length = 4 |
|
|
|
select_all_on_focus = true |
|
|
|
Slowest: 0.1/s |
|
|
|
Fastest: 0.01/s" |
|
|
|
min_value = 1.0 |
|
|
|
max_value = 5.0 |
|
|
|
value = 3.0 |
|
|
|
tick_count = 5 |
|
|
|
ticks_on_borders = true |
|
|
|
|
|
|
|
[node name="FinalRow" type="HBoxContainer" parent="UI/WorldGeneration/VBoxContainer"] |
|
|
|
layout_mode = 2 |
|
|
@ -214,6 +203,7 @@ layout_mode = 2 |
|
|
|
|
|
|
|
[connection signal="timeout" from="GenerationTimer" to="." method="_on_generation_timer_timeout"] |
|
|
|
[connection signal="pressed" from="UI/WorldGeneration/VBoxContainer/Seed/Generate" to="." method="_on_world_seed_generate_pressed"] |
|
|
|
[connection signal="drag_ended" from="UI/WorldGeneration/VBoxContainer/GenerationSpeed/Input" to="." method="_on_generation_speed_drag_ended"] |
|
|
|
[connection signal="toggled" from="UI/WorldGeneration/VBoxContainer/FinalRow/StartPausedButton" to="." method="_on_start_paused_button_toggled"] |
|
|
|
[connection signal="pressed" from="UI/WorldGeneration/VBoxContainer/FinalRow/RunButton" to="." method="_on_run_button_pressed"] |
|
|
|
[connection signal="pressed" from="UI/WorldGeneration/VBoxContainer/FinalRow/QuitButton" to="." method="_on_quit_button_pressed"] |