Browse Source

Fixing Cell Size Y input

pull/1/head
Ryan Reed 1 year ago
parent
commit
a6016240a9
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      world.gd

+ 4
- 4
world.gd View File

@ -24,7 +24,7 @@ enum CellStates {
@onready var generation_world_size_x: LineEdit = $UI/WorldGeneration/VBoxContainer/WorldSize/Input_x @onready var generation_world_size_x: LineEdit = $UI/WorldGeneration/VBoxContainer/WorldSize/Input_x
@onready var generation_world_size_y: LineEdit = $UI/WorldGeneration/VBoxContainer/WorldSize/Input_y @onready var generation_world_size_y: LineEdit = $UI/WorldGeneration/VBoxContainer/WorldSize/Input_y
@onready var generation_cell_size_x: LineEdit = $UI/WorldGeneration/VBoxContainer/CellSize/Input_x @onready var generation_cell_size_x: LineEdit = $UI/WorldGeneration/VBoxContainer/CellSize/Input_x
@onready var gneration_cell_size_y: LineEdit = $UI/WorldGeneration/VBoxContainer/CellSize/Input_y
@onready var generation_cell_size_y: LineEdit = $UI/WorldGeneration/VBoxContainer/CellSize/Input_y
## Other ## Other
@onready var camera: Camera2D = $Camera2D @onready var camera: Camera2D = $Camera2D
@ -62,7 +62,7 @@ func _input(event: InputEvent) -> void:
# #
# UI # UI
# #
## Update the Gneration UI with the current settings
## Update the Generation UI with the current settings
func update_generation_ui() -> void: func update_generation_ui() -> void:
if world_seed: if world_seed:
generation_seed.text = str(world_seed) generation_seed.text = str(world_seed)
@ -71,7 +71,7 @@ func update_generation_ui() -> void:
generation_world_size_x.text = str(world_size.x) generation_world_size_x.text = str(world_size.x)
generation_world_size_y.text = str(world_size.y) generation_world_size_y.text = str(world_size.y)
generation_cell_size_x.text = str(cell_size.x) generation_cell_size_x.text = str(cell_size.x)
generation_cell_size_x.text = str(cell_size.y)
generation_cell_size_y.text = str(cell_size.y)
# #
@ -205,7 +205,7 @@ func _on_run_button_pressed() -> void:
else: else:
world_seed = int(generation_seed.text) world_seed = int(generation_seed.text)
world_size = Vector2(int(generation_world_size_x.text), int(generation_world_size_y.text)) world_size = Vector2(int(generation_world_size_x.text), int(generation_world_size_y.text))
cell_size = Vector2(int(generation_cell_size_x.text), int(generation_cell_size_x.text))
cell_size = Vector2(int(generation_cell_size_x.text), int(generation_cell_size_y.text))
debug_ui.visible = true debug_ui.visible = true
generation_ui.visible = false generation_ui.visible = false


Loading…
Cancel
Save