diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-07 17:53:52 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-07 17:53:52 +0200 |
commit | 81324cb33065d3d1c90d9365756cce669fafd5d3 (patch) | |
tree | e3794f5156b121dea1c6e07faae095387f75ee84 | |
parent | 78ac521baf0ff851b2c78e4c90ce71cafcb60071 (diff) | |
download | hurrycurry-81324cb33065d3d1c90d9365756cce669fafd5d3.tar hurrycurry-81324cb33065d3d1c90d9365756cce669fafd5d3.tar.bz2 hurrycurry-81324cb33065d3d1c90d9365756cce669fafd5d3.tar.zst |
book menu adds all pages
-rw-r--r-- | client/menu/book/book.gd | 6 | ||||
-rw-r--r-- | client/menu/book/book.tscn | 2 |
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 |