From 81324cb33065d3d1c90d9365756cce669fafd5d3 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 7 Jul 2024 17:53:52 +0200 Subject: book menu adds all pages --- client/menu/book/book.gd | 6 ++++-- client/menu/book/book.tscn | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'client') diff --git a/client/menu/book/book.gd b/client/menu/book/book.gd index 2dd5a4d2..966fd610 100644 --- a/client/menu/book/book.gd +++ b/client/menu/book/book.gd @@ -1,5 +1,7 @@ extends Menu - func _ready(): - pass + for i in range(1, 6): + var texture = TextureRect.new() + texture.texture = load("res://menu/book/book_%d.svg" % i) + $ScrollContainer/VBoxContainer.add_child(texture) diff --git a/client/menu/book/book.tscn b/client/menu/book/book.tscn index d8266ed9..2a908c54 100644 --- a/client/menu/book/book.tscn +++ b/client/menu/book/book.tscn @@ -21,3 +21,5 @@ grow_vertical = 2 [node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer"] layout_mode = 2 +size_flags_horizontal = 4 +size_flags_vertical = 4 -- cgit v1.2.3-70-g09d2