From 19577eca8cc64a94e783bec101032621ac7a6a41 Mon Sep 17 00:00:00 2001 From: sthag Date: Sat, 4 Apr 2026 09:21:34 +0200 Subject: [PATCH] feat: Change game structure - New template - Rename screens - New partial for menu - New data file for menu content - Separate styles --- source/data/menu.json | 18 ++ source/screens/demo/examples/game/menu.liquid | 15 +- .../examples/game/{fpv.liquid => mwo.liquid} | 7 +- .../examples/game/{new.liquid => tfw.liquid} | 10 +- source/style/modules/_game.scss | 197 +----------------- source/style/modules/game/_mwo.scss | 48 +++++ source/style/modules/game/_tfw.scss | 155 ++++++++++++++ source/style/ui.scss | 2 + source/templates/hippie/game.liquid | 15 ++ .../hippie/partials/game-menu.liquid | 15 ++ 10 files changed, 261 insertions(+), 221 deletions(-) create mode 100644 source/data/menu.json rename source/screens/demo/examples/game/{fpv.liquid => mwo.liquid} (96%) rename source/screens/demo/examples/game/{new.liquid => tfw.liquid} (94%) create mode 100644 source/style/modules/game/_mwo.scss create mode 100644 source/style/modules/game/_tfw.scss create mode 100644 source/templates/hippie/game.liquid create mode 100644 source/templates/hippie/partials/game-menu.liquid diff --git a/source/data/menu.json b/source/data/menu.json new file mode 100644 index 0000000..f437630 --- /dev/null +++ b/source/data/menu.json @@ -0,0 +1,18 @@ +[ + { + "text": "New", + "href": "#new" + }, + { + "text": "Continue", + "href": "#continue" + }, + { + "text": "Settings", + "href": "#options" + }, + { + "text": "Leave", + "href": "/" + } +] \ No newline at end of file diff --git a/source/screens/demo/examples/game/menu.liquid b/source/screens/demo/examples/game/menu.liquid index 34e00e7..c29a2ed 100644 --- a/source/screens/demo/examples/game/menu.liquid +++ b/source/screens/demo/examples/game/menu.liquid @@ -7,20 +7,7 @@ tags: {% layout 'hippie/simple.liquid' %} {% block body %} -
- -
+{% render 'hippie/partials/game-menu.liquid', links: menu %}