aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/menu/book/book.gd6
-rw-r--r--client/menu/book/book.tscn2
2 files changed, 6 insertions, 2 deletions
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