Skip to content

Commit

Permalink
1.3.15
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorako committed Apr 26, 2022
1 parent 9031860 commit 0bccb4d
Show file tree
Hide file tree
Showing 8 changed files with 834 additions and 516 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# 1.3.15

Dark-themed sheets are back, courtesy of @Vesselchuck. Disabling macrobar styling is better at its job. Fixed issue with centered macro bar being broken when app-ui styling was disabled.

# 1.3.14

Comaptible with Combat Carousel using Actor images. Small fix for Monk's TokenBar.
Compatible with Combat Carousel using Actor images. Small fix for Monk's TokenBar.

# 1.3.13

Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"description": "Overhauls the Foundry UI and several modules.",
"url": "https://github.com/Dorako/pf2e-dorako-ui",
"author": "Dorako",
"version": "1.3.14",
"version": "1.3.15",
"minimumCoreVersion": "9",
"compatibleCoreVersion": "9",
"system": ["pf2e"],
"scripts": ["scripts/dorako-ui.js"],
"templates": ["templates/*"],
"download": "https://github.com/Dorako/pf2e-dorako-ui/archive/refs/tags/v1.3.14.zip",
"download": "https://github.com/Dorako/pf2e-dorako-ui/archive/refs/tags/v1.3.15.zip",
"manifest": "https://github.com/Dorako/pf2e-dorako-ui/raw/main/module.json"
}
36 changes: 18 additions & 18 deletions scripts/dorako-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ Hooks.once("init", async function () {
if (speaker.token) {
const token = game.scenes.get(speaker.scene).tokens?.get(speaker.token);
if (token) {
// return Actors.instance.get(speaker.actor).data.img;
return token.data.img;
}
}
Expand Down Expand Up @@ -472,22 +473,21 @@ Hooks.once("init", async function () {
},
});

// game.settings.register('pf2e-dorako-ui', 'sheet', {
// name: "Theme used for PC sheets",
// hint: "",
// scope: "world",
// config: true,
// default: "red",
// type: String,
// choices: {
// "red": "Red (default)",
// "dark": "Dark",
// "plain": "Plain"
// },
// onChange: () => {
// debouncedReload();
// }
// });
game.settings.register("pf2e-dorako-ui", "sheet", {
name: "Theme used for PC sheets",
hint: "",
scope: "world",
config: true,
default: "red",
type: String,
choices: {
red: "Default",
dark: "Dark (@Vesselchuck)",
},
onChange: () => {
debouncedReload();
},
});

game.settings.register("pf2e-dorako-ui", "backdrop-filter", {
name: "Frosted glass?",
Expand Down Expand Up @@ -811,8 +811,8 @@ Hooks.once("init", async function () {
if (game.settings.get("pf2e-dorako-ui", "compact-ui"))
injectCSS("compact-ui");
if (game.settings.get("pf2e-dorako-ui", "no-logo")) injectCSS("no-logo");
// setting = game.settings.get("pf2e-dorako-ui", "sheet");
// if (setting == "dark") injectCSS("sheet-dark");
setting = game.settings.get("pf2e-dorako-ui", "sheet");
if (setting == "dark") injectCSS("sheet-dark");
// if (setting == "plain") injectCSS("sheet-plain");
}
});
Expand Down
Loading

0 comments on commit 0bccb4d

Please sign in to comment.