resize taquin to 2/3rd of the window
This commit is contained in:
parent
dc520e33f6
commit
45fd683168
2 changed files with 7 additions and 3 deletions
|
@ -4,6 +4,7 @@ onready var container = $GridContainer
|
|||
onready var taquin = $GridContainer/Taquin
|
||||
|
||||
func _ready():
|
||||
taquin.rect_min_size = get_viewport().get_visible_rect().size * (2.0 / 3.0)
|
||||
layout_reflow()
|
||||
load_game()
|
||||
print("Starting state: ", taquin.current_state_name())
|
||||
|
@ -27,6 +28,7 @@ func layout_reflow():
|
|||
else:
|
||||
# landscape
|
||||
container.columns = 2
|
||||
update()
|
||||
|
||||
# https://docs.godotengine.org/en/3.2/tutorials/io/saving_games.html
|
||||
func save_game():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue