From e3dcd08714b154e78b25a793cf0389c60781ce2f Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Tue, 25 Jun 2024 13:39:56 -0500 Subject: [PATCH] World outlines ? --- constants.json | 6 ++++++ pageUpdater.js | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/constants.json b/constants.json index 836c5e6..e781f54 100644 --- a/constants.json +++ b/constants.json @@ -254,6 +254,12 @@ "bold": true, "italicized": true, "caseInsensitive": true + }, + "Pokerogue": { + "caseInsensitive": true, + "color": "#366383", + "outline": "#d43131", + "bold": true } } } \ No newline at end of file diff --git a/pageUpdater.js b/pageUpdater.js index 6f962cf..fd2841f 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -120,6 +120,13 @@ function highlighter(json, full = true) { style += "font-style: italic;" } + if (termProps.outline) { + var width = 2 + style += `text-shadow: -1px -1px 0 ${termProps.outline}, 1px -1px 0 ${termProps.outline}, -1px 1px 0 ${termProps.outline}, 1px 1px 0 ${termProps.outline};` + // style += `-webkit-text-stroke: 1px ${termProps.outline};` + // ^ Not in use because it looks bad :30 + } + if (termProps.bold) { classes += "bold" }