aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-20 19:52:30 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-20 19:52:30 +0200
commit663d4251b3fd7fa1e1ffcc1461631d98c2a70072 (patch)
treeb419e8734c6ddc9ff1655ca36d74e5e6132a649b
parent73c46431783c3496ef6fdf0441b047f49b7a9bb4 (diff)
parent1cf9055fd1a6811f48e83589a49f56cd498fca24 (diff)
downloadhurrycurry-663d4251b3fd7fa1e1ffcc1461631d98c2a70072.tar
hurrycurry-663d4251b3fd7fa1e1ffcc1461631d98c2a70072.tar.bz2
hurrycurry-663d4251b3fd7fa1e1ffcc1461631d98c2a70072.tar.zst
Merge branch 'master' of https://codeberg.org/hurrycurry/hurrycurry
-rw-r--r--client/menu/book/book.gd5
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