diff options
author | tpart <tpart120@proton.me> | 2024-07-20 18:40:03 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-07-20 18:40:53 +0200 |
commit | 1cf9055fd1a6811f48e83589a49f56cd498fca24 (patch) | |
tree | 4ee3e982c8a0d0329fb1a820df6d956f98699839 | |
parent | 89ba8a6b62b90ac72547e2ca9ea5eeae7bbc6500 (diff) | |
download | hurrycurry-1cf9055fd1a6811f48e83589a49f56cd498fca24.tar hurrycurry-1cf9055fd1a6811f48e83589a49f56cd498fca24.tar.bz2 hurrycurry-1cf9055fd1a6811f48e83589a49f56cd498fca24.tar.zst |
Fix book scaling
-rw-r--r-- | client/menu/book/book.gd | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/menu/book/book.gd b/client/menu/book/book.gd index 594d0a4b..43df3ebe 100644 --- a/client/menu/book/book.gd +++ b/client/menu/book/book.gd @@ -18,8 +18,11 @@ extends Menu func _ready(): super() for i in range(1, 6): - var texture = TextureRect.new() + var texture := TextureRect.new() texture.texture = load("res://menu/book/book_%d.webp" % i) + texture.expand_mode = TextureRect.EXPAND_FIT_WIDTH + texture.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED + texture.custom_minimum_size = get_viewport_rect().size $ScrollContainer/VBoxContainer.add_child(texture) func menu_anim_open(): pass |