Skip to content

Commit

Permalink
1.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorako committed Feb 13, 2022
1 parent 9002431 commit b41c5dc
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 17 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -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"
}
5 changes: 4 additions & 1 deletion scripts/dorako-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ Hooks.on("ready", async function () {
// setTimeout(myInject, 10000);
// });

Hooks.on("renderSettings", (e, a) => {
const toInsert = $(`<button type="button" disabled style="cursor: wait" data-action="dorako-ui"><i class="fas fa-eye"></i> Dorako UI </button></div>`);
a.find("#settings-game").append(toInsert)
});


Hooks.on("renderChatMessage", (chatMessage, html, messageData) => {
Expand All @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion styles/chat-dark.css
Original file line number Diff line number Diff line change
@@ -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%);
Expand Down
2 changes: 1 addition & 1 deletion styles/chat-rainbow.css
Original file line number Diff line number Diff line change
Expand Up @@ -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); */
Expand Down
4 changes: 2 additions & 2 deletions styles/chat.css
Original file line number Diff line number Diff line change
Expand Up @@ -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%);
Expand Down
6 changes: 3 additions & 3 deletions styles/core-trim.css
Original file line number Diff line number Diff line change
Expand Up @@ -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%);
Expand Down Expand Up @@ -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;
Expand Down
9 changes: 5 additions & 4 deletions styles/dorako-ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion styles/header-blue.css
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
2 changes: 1 addition & 1 deletion styles/header-red.css
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
2 changes: 1 addition & 1 deletion styles/sheet-dark.css
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit b41c5dc

Please sign in to comment.