From 6e2f57a73eb2fa9a58d4304d13a688d9635b0ebd Mon Sep 17 00:00:00 2001 From: xangelo Date: Mon, 9 May 2022 11:29:05 -0400 Subject: [PATCH] UI updates and bug fixes Fixes: - Resource requirements for construction/training not appearing until you click the build button (which then requires you hitting Build/Train twice) - References to "tick-city" - Resources are now visible and updated on every page - Menu removed from sidebar to give content more room --- package-lock.json | 1 + package.json | 3 +- public/game.html | 57 +++++++++++++++++------------ public/index.html | 7 ++-- public/scifi.css | 66 ++++++++++++++++++++++++---------- src/api.ts | 9 +++-- src/lib/server.ts | 6 ++-- src/render/fight.ts | 3 +- src/render/kingdom-overview.ts | 3 +- src/render/land-development.ts | 6 ++-- src/render/mail.ts | 1 + src/render/topbar.ts | 13 +++++++ src/render/unit-training.ts | 3 +- 13 files changed, 125 insertions(+), 53 deletions(-) create mode 100644 src/render/topbar.ts diff --git a/package-lock.json b/package-lock.json index bb69af8..b9e0719 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,6 +4,7 @@ "requires": true, "packages": { "": { + "name": "tick-city", "dependencies": { "@bull-board/api": "^3.11.0", "@bull-board/express": "^3.11.0", diff --git a/package.json b/package.json index 070db23..25f5e4a 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { - "name": "tick-city", + "name": "antares", + "private": true, "scripts": { "dev": "npx nodemon src/api.ts", "setup:rebels": "npx ts-node scripts/generate-cities.ts", diff --git a/public/game.html b/public/game.html index 07e38fb..dedfa56 100644 --- a/public/game.html +++ b/public/game.html @@ -19,32 +19,45 @@
-