diff --git a/languages/en.json b/languages/en.json
index 78c64f5..6f19b6c 100644
--- a/languages/en.json
+++ b/languages/en.json
@@ -23,5 +23,6 @@
"bossbar.settings.position.opt0":"Top (default)",
"bossbar.settings.position.opt1":"Bottom (above webcams)",
"bossbar.settings.position.opt2":"Bottom (below webcams)",
- "bossbar.settings.position.opt3":"In player List"
+ "bossbar.settings.position.opt3":"In player List",
+ "bossbar.settings.position.opt4":"Bottom (above hotbar)"
}
\ No newline at end of file
diff --git a/scripts/BossBar.js b/scripts/BossBar.js
index 258d9fa..40a92cf 100644
--- a/scripts/BossBar.js
+++ b/scripts/BossBar.js
@@ -41,7 +41,8 @@ class BossBar {
draw(h) {
if ($("body").find(`div[id="bossBar-${this.id}"]`).length > 0) return; //#navigation
- const bossBarHtml = `
`;
+ let bossBarHtml = `
+ };height:${h}px;width:${this.hpPercent}%">
+ }');height:${h}px;width:${this.hpPercent}%">
{
- canvas.scene._bossBars = {};
- this.clearAll();
- });
+ static async remove() {
+ await canvas.scene.unsetFlag("bossbar", "bossBarActive");
+ canvas.scene._bossBars = {};
+ this.clearAll();
}
static addBossBar(bossBar) {
diff --git a/scripts/main.js b/scripts/main.js
index 08d89eb..e059b1e 100644
--- a/scripts/main.js
+++ b/scripts/main.js
@@ -54,7 +54,8 @@ Hooks.once("ready", function () {
0: game.i18n.localize("bossbar.settings.position.opt0"),
1: game.i18n.localize("bossbar.settings.position.opt1"),
2: game.i18n.localize("bossbar.settings.position.opt2"),
- 3: game.i18n.localize("bossbar.settings.position.opt3")
+ 3: game.i18n.localize("bossbar.settings.position.opt3"),
+ 4: game.i18n.localize("bossbar.settings.position.opt4")
},
default: 0,
});
diff --git a/styles/module.css b/styles/module.css
index 7ce133a..ddce431 100644
--- a/styles/module.css
+++ b/styles/module.css
@@ -1,6 +1,7 @@
.bossBarName {
text-align: left;
font-size: 10px;
+ color: white;
filter: drop-shadow(0 0 0.2rem black);
font-family:'Times New Roman', Times, serif;
padding: 3px;