From 1f6d034b1497c9b1f60502f7294cf4f6d71acf5c Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Thu, 15 Sep 2022 00:34:14 +0300 Subject: [PATCH] Analyzer add patch badge --- app/modules/analyzer/types.ts | 1 - app/routes/analyzer.tsx | 5 +++++ app/styles/analyzer.css | 9 +++++++++ public/locales/en/analyzer.json | 1 + 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/app/modules/analyzer/types.ts b/app/modules/analyzer/types.ts index b3d992e19..c599fe730 100644 --- a/app/modules/analyzer/types.ts +++ b/app/modules/analyzer/types.ts @@ -23,7 +23,6 @@ export interface MainWeaponParams { InkConsumeMinCharge?: number; /** How much ink one full charge of splatling consumes? */ InkConsumeFullChargeSplatling?: number; - // xxx: morph with another swing one below /** How much ink one swing of brush consumes? */ InkConsume_WeaponSwingParam?: number; /** How much ink one vertical swing of roller consumes? */ diff --git a/app/routes/analyzer.tsx b/app/routes/analyzer.tsx index b3166a300..6da52efb7 100644 --- a/app/routes/analyzer.tsx +++ b/app/routes/analyzer.tsx @@ -12,6 +12,8 @@ import styles from "~/styles/analyzer.css"; import { Image } from "~/components/Image"; import { specialWeaponImageUrl, subWeaponImageUrl } from "~/utils/urls"; +export const CURRENT_PATCH = "1.1"; + export const links: LinksFunction = () => { return [{ rel: "stylesheet", href: styles }]; }; @@ -46,6 +48,9 @@ export default function BuildAnalyzerPage() { +
+ {t("patch")} {CURRENT_PATCH} +
diff --git a/app/styles/analyzer.css b/app/styles/analyzer.css index 7b0abaffd..075ee1a6a 100644 --- a/app/styles/analyzer.css +++ b/app/styles/analyzer.css @@ -95,3 +95,12 @@ color: var(--text-lighter); font-size: var(--fonts-xxs); } + +.analyzer__patch { + background-color: var(--theme-transparent); + border-radius: var(--rounded); + font-size: var(--fonts-xxxs); + font-weight: var(--bold); + padding-block: var(--s-0-5); + padding-inline: var(--s-1); +} diff --git a/public/locales/en/analyzer.json b/public/locales/en/analyzer.json index 8d6137cd1..da77d8816 100644 --- a/public/locales/en/analyzer.json +++ b/public/locales/en/analyzer.json @@ -25,5 +25,6 @@ "base": "Base", "value": "Value", "build": "Build", + "patch": "Patch:", "consumptionExplanation": "This chart shows the amount of actions left to perform with main weapon after using sub 0-{{maxSubsToUse}} times. Max amount of consecutive subs to use with full ink tank is {{maxSubsToUse}}." }