diff --git a/CHANGELOG.md b/CHANGELOG.md index 558fd87..08976a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 1.2.5 +Unbroke the new hand buttons +# 1.2.4 # 1.2.3 Fixed a mystery man, added toggles for minimal-ui inspired compact controls, and an experimental toggle for dark sheets. # 1.2.2 diff --git a/module.json b/module.json index f4b766a..4f769f7 100644 --- a/module.json +++ b/module.json @@ -4,7 +4,7 @@ "description": "Overhauls the Foundry UI and several modules.", "url": "https://github.com/Dorako/pf2e-dorako-ui", "author": "Dorako", - "version": "1.2.4", + "version": "1.2.5", "minimumCoreVersion": "9", "compatibleCoreVersion": "9", "system": ["pf2e"], @@ -14,6 +14,6 @@ "templates": [ "templates/*" ], - "download": "https://github.com/Dorako/pf2e-dorako-ui/archive/refs/tags/v1.2.4.zip", + "download": "https://github.com/Dorako/pf2e-dorako-ui/archive/refs/tags/v1.2.5.zip", "manifest": "https://github.com/Dorako/pf2e-dorako-ui/raw/main/module.json" } \ No newline at end of file diff --git a/scripts/dorako-ui.js b/scripts/dorako-ui.js index fc34004..2b5be51 100644 --- a/scripts/dorako-ui.js +++ b/scripts/dorako-ui.js @@ -34,6 +34,10 @@ Hooks.on("ready", async function () { // setTimeout(myInject, 10000); // }); +Hooks.on("renderSettings", (e, a) => { + const toInsert = $(``); + a.find("#settings-game").append(toInsert) +}); Hooks.on("renderChatMessage", (chatMessage, html, messageData) => { @@ -46,7 +50,6 @@ function injectPlayerName(html, messageData) { if (messageData.author === undefined) return; if (game.settings.get('pf2e-dorako-ui', 'enable-player-tags')) { const messageSenderElem = html.find('.sender-wrapper'); - // const messageSenderElem = html.find('.message-sender'); const playerName = messageData.author.name; const playerNameElem = document.createElement('span'); playerNameElem.appendChild(document.createTextNode(playerName)); diff --git a/styles/chat-dark.css b/styles/chat-dark.css index 6570c6d..2d5a842 100644 --- a/styles/chat-dark.css +++ b/styles/chat-dark.css @@ -1,5 +1,5 @@ :root { - --bg-current: var(--bg-dark); + --bg-current: var(--sheet-light); --pf2e-body-primary: hsl(0, 0%, 100%); --pf2e-body-secondary: hsl(0, 0%, 60%); --pf2e-body-inverse: hsl(0, 0%, 00%); diff --git a/styles/chat-rainbow.css b/styles/chat-rainbow.css index 13a9fbb..3c35801 100644 --- a/styles/chat-rainbow.css +++ b/styles/chat-rainbow.css @@ -3,7 +3,7 @@ } #chat-log .message { - background: var(--bg-light); + background: var(--sheet-light); /* background-image: linear-gradient(to bottom, var(--paizo-red), var(--paizo-blue)), var(--bg-current); */ /* background-image: linear-gradient(to bottom right, rgba(0, 47, 75, .5), rgba(220, 66, 37, .5), rgba(136, 30, 71, 0.74)), var(--bg-current); */ /* background-image: linear-gradient(135deg, orange 60%, cyan), var(--bg-current); */ diff --git a/styles/chat.css b/styles/chat.css index ae892de..35a2667 100644 --- a/styles/chat.css +++ b/styles/chat.css @@ -520,9 +520,9 @@ button { --header-text-shadow: var(--pf2e-shadow-is-dark); --pf2e-header-text-color: var(--pf2e-body-primary); - --bg-current: var(--bg-light); + --bg-current: var(--sheet-light); - /* --bg-current: var(--bg-dark); + /* --bg-current: var(--sheet-light); --pf2e-body-primary: hsl(0, 0%, 100%); --pf2e-body-secondary: hsl(0, 0%, 60%); --pf2e-body-inverse: hsl(0, 0%, 00%); diff --git a/styles/core-trim.css b/styles/core-trim.css index c06478a..462d35b 100644 --- a/styles/core-trim.css +++ b/styles/core-trim.css @@ -89,7 +89,7 @@ --dorako-bg-glass: rgba(120, 120, 120, 0.20); --dorako-bg-glass: rgba(120, 120, 120, 0.50); - --dorako-bg-dark: rgba(20, 20, 20, 0.60); + --dorako-sheet-light: rgba(20, 20, 20, 0.60); --dorako-orange: rgba(255, 100, 0, 0.5); /* --dorako-bg-current: var(--dorako-bg-glass); */ --dorako-bg-current: hsla(0, 50%, 50%, 50%); @@ -138,8 +138,8 @@ --img-red: url(/systems/pf2e/assets/sheet/nav-item.webp); --pf2e-nav-inactive: url(/systems/pf2e/assets/sheet/nav-item-inactive.webp); --pf2e-sheets-bg: url(/systems/pf2e/assets/sheet/background.webp); - --bg-light: url(/systems/pf2e/assets/sheet/background.webp); - --bg-dark: url(/modules/pf2e-dorako-ui/img/background-dark.webp); + --sheet-light: url(/systems/pf2e/assets/sheet/background.webp); + --sheet-light: url(/modules/pf2e-dorako-ui/img/background-dark.webp); --dorako-text-shadow: 0px 0px 3px black; --dorako-box-shadow: 0px 0px 3px black; diff --git a/styles/dorako-ui.css b/styles/dorako-ui.css index f031444..bf70a75 100644 --- a/styles/dorako-ui.css +++ b/styles/dorako-ui.css @@ -8,10 +8,10 @@ --dorako-bg-glass: rgba(120, 120, 120, 0.20); --dorako-bg-glass: rgba(120, 120, 120, 0.50); - --dorako-bg-dark: rgba(20, 20, 20, 0.60); + --dorako-sheet-light: rgba(20, 20, 20, 0.60); --dorako-orange: rgba(255, 100, 0, 0.5); /* --dorako-bg-current: var(--dorako-bg-glass); */ - --dorako-bg-current: var(--dorako-bg-dark); + --dorako-bg-current: var(--dorako-sheet-light); /* --dorako-bg-current: hsl(0,0%, 10%); */ --blind-bg: #A57aA5; @@ -57,8 +57,8 @@ --img-red: url(/systems/pf2e/assets/sheet/nav-item.webp); --pf2e-nav-inactive: url(/systems/pf2e/assets/sheet/nav-item-inactive.webp); --pf2e-sheets-bg: url(/systems/pf2e/assets/sheet/background.webp); - --bg-light: url(/systems/pf2e/assets/sheet/background.webp); - --bg-dark: url(/modules/pf2e-dorako-ui/img/background-dark.webp); + --sheet-light: url(/systems/pf2e/assets/sheet/background.webp); + --sheet-dark: url(/modules/pf2e-dorako-ui/img/background-dark.webp); --dorako-text-shadow: 0px 0px 3px black; --dorako-box-shadow: 0px 0px 3px black; @@ -104,6 +104,7 @@ form button { border: 1px solid var(--color-border-light-tertiary); box-shadow: none; margin: 0px; + cursor: pointer; } .sheet header.sheet-header { diff --git a/styles/header-blue.css b/styles/header-blue.css index 677f261..6803d85 100644 --- a/styles/header-blue.css +++ b/styles/header-blue.css @@ -1,7 +1,7 @@ #chat-log .message .message-header { --pf2e-header-text-color: white; background-color:var(--paizo-blue); - background-image: var(--bg-light); + background-image: var(--sheet-light); background-size: cover; background-blend-mode: multiply; box-shadow: var(--gold-and-glow); diff --git a/styles/header-red.css b/styles/header-red.css index b8020cd..87c2bfb 100644 --- a/styles/header-red.css +++ b/styles/header-red.css @@ -1,7 +1,7 @@ #chat-log .message .message-header { --pf2e-header-text-color: white; background-color:var(--paizo-red); - background-image: var(--bg-light); + background-image: var(--sheet-light); background-size: cover; background-blend-mode: multiply; box-shadow: var(--gold-and-glow); diff --git a/styles/sheet-dark.css b/styles/sheet-dark.css index 6c2e9a3..5f2d6ef 100644 --- a/styles/sheet-dark.css +++ b/styles/sheet-dark.css @@ -1,5 +1,5 @@ .crb-style { - background: url(/systems/pf2e/assets/sheet/header.webp), var(--bg-dark); + background: url(/systems/pf2e/assets/sheet/header.webp), var(--sheet-light); background-attachment: local; background-repeat: repeat-x, no-repeat; background-size: auto 89px, cover;