From b177459b5a8dd8136bc39435f7af29d7f700f1db Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 7 Jul 2024 17:45:21 +0200 Subject: add recipe book asseets --- .gitignore | 1 + client/menu/book/book.gd | 5 +++++ client/menu/book/book.tscn | 23 +++++++++++++++++++++++ makefile | 10 ++++++++++ readme.md | 1 + 5 files changed, 40 insertions(+) create mode 100644 client/menu/book/book.gd create mode 100644 client/menu/book/book.tscn create mode 100644 makefile diff --git a/.gitignore b/.gitignore index f3b6d89e..a2ebca17 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ .godot undercooked.pot *.mo +/client/menu/book/book_*.svg* diff --git a/client/menu/book/book.gd b/client/menu/book/book.gd new file mode 100644 index 00000000..2dd5a4d2 --- /dev/null +++ b/client/menu/book/book.gd @@ -0,0 +1,5 @@ +extends Menu + + +func _ready(): + pass diff --git a/client/menu/book/book.tscn b/client/menu/book/book.tscn new file mode 100644 index 00000000..d8266ed9 --- /dev/null +++ b/client/menu/book/book.tscn @@ -0,0 +1,23 @@ +[gd_scene load_steps=2 format=3 uid="uid://bdggwo8un3mys"] + +[ext_resource type="Script" path="res://menu/book/book.gd" id="1_gyisx"] + +[node name="Book" type="Control"] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("1_gyisx") + +[node name="ScrollContainer" type="ScrollContainer" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer"] +layout_mode = 2 diff --git a/makefile b/makefile new file mode 100644 index 00000000..1eafe733 --- /dev/null +++ b/makefile @@ -0,0 +1,10 @@ +.PHONY: client-assets clean +client-assets: client/menu/book/book_1.svg + +clean: + rm client/menu/book/book_*.svg + +client/menu/book/book_1.svg: + @echo Downloading recipe book... + @mkdir -p client/menu/book + @curl -L https://s.metamuffin.org/static/undercooked/book.svg.tar.zst | tar -xC client/menu/book diff --git a/readme.md b/readme.md index 49911be4..f1e6b22a 100644 --- a/readme.md +++ b/readme.md @@ -6,6 +6,7 @@ A cooperative multiplayer game about cooking. ### Building +- `make client-assets` - `cd client` - Import all assets: `godot --import .` -- cgit v1.2.3-70-g09d2