Skip to content

Commit

Permalink
1.11.25
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorako committed Feb 15, 2023
1 parent 28483b8 commit 27de0ba
Show file tree
Hide file tree
Showing 16 changed files with 328 additions and 39 deletions.
16 changes: 12 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
# 1.11.25

- (SWADE) Made the token/portrait avatar setting functional.
- (SWADE) Possibly avoided style collision with SWPF premium module.
- (Fix) Fixed a regression that caused Damage Log messages to lose their background color.
- (Module) Added support for Monk's Scene Navigation.
- (Refinement) Updated support for new PF2e Target Damage features.

# 1.11.24

- (Fix) Fixed an issue where Token Action Hud Core integration was not working as expected due to TAHC registering its settings much later than expected.
- (Fix) Fixed an issue where some Journals were dark-themed regardles of the dark-theme journals setting.

# 1.11.23

- (System) Blacklisted complex SWADE sheets from dark-theme.
- (System) Rejiggered some things to make SWADE journals compatible with dark theme.
- (System) Updated all instanced of 'red' (--primary) in SWADE to be the SWADE accent color.
- (SWADE) Blacklisted complex SWADE sheets from dark-theme.
- (SWADE) Rejiggered some things to make SWADE journals compatible with dark theme.
- (SWADE) Updated all instanced of 'red' (--primary) in SWADE to be the SWADE accent color.

# 1.11.22

- (Refinement) Updated the wrapping-behavior of long in-character and player names. In general more stuff should avoid reflowing.
- (System) Added experimental compatability with SWADE. Lots of stuff expected to work not-quite-right.
- (SWADE) Added experimental compatability with SWADE. Lots of stuff expected to work not-quite-right.

# 1.11.21

Expand Down
1 change: 1 addition & 0 deletions languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"disabled": "Disabled"
},
"settings": {
"reset-changes": "Reset Changes",
"theme": {
"name": "Theme Settings",
"label": "Configure Theme Settings",
Expand Down
4 changes: 3 additions & 1 deletion modules/consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export const baseThemeApplications = [...baseThemeCoreFoundryApplications,...bas
export const darkThemeCompatibleApplications = [...darkThemeCompatibleCoreFoundryApplications, ...darkThemeCompatibleModuleApplications, ...darkThemeCompatiblePf2eApplications, ...dorakoUiApplications]

// prettier-ignore
export const premiumModuleSelector = ".pf2e-av, .gatewalkers-wrapper, .gatewalkers, .outlaws-wrapper, .outlaws, .bloodlords-wrapper, .bloodlords, .kingmaker-wrapper, .kingmaker"; //
export const premiumModuleSelector = ".swpf-sheet, .swpf-wrapper, .pf2e-av, .gatewalkers-wrapper, .gatewalkers, .outlaws-wrapper, .outlaws, .bloodlords-wrapper, .bloodlords, .kingmaker-wrapper, .kingmaker"; //
// SWPFSheet
// SWPFJournalSheet

// CLASSES
export class Avatar {
Expand Down
18 changes: 6 additions & 12 deletions modules/message-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,14 +464,13 @@ function addAvatarsToFlags(message) {
game.modules.get("combat-tracker-images")?.active && message.actor
? message.actor.getFlag("combat-tracker-images", "trackerImage")
: null;
let actorImg = message.actor?.img;
let tokenImg = message.token?.texture.src;
let speaker = message.speaker;
const token = game.scenes.get(speaker.scene)?.tokens.get(speaker.token);
let tokenImg = token?.texture.src;
const actor = game.actors.get(speaker.actor);
let actorImg = actor?.img;
let userImg = message.user?.avatar;

// console.log(message.token);
// console.log(message.token?.texture);
// console.log(message.token?.texture.src);

let userAvatar = new Avatar(message.speaker.alias, userImg);

let combatantAvatar = combatantImg ? new CombatantAvatar(message.speaker.alias, combatantImg) : null;
Expand All @@ -480,12 +479,7 @@ function addAvatarsToFlags(message) {

let tokenAvatar = null;
if (tokenImg) {
tokenAvatar = new TokenAvatar(
message.speaker.alias,
tokenImg,
message.token.texture.scaleX,
message.actor.size == "sm"
);
tokenAvatar = new TokenAvatar(message.speaker.alias, tokenImg, token.texture.scaleX, actor.size == "sm");
}

message.updateSource({
Expand Down
4 changes: 4 additions & 0 deletions sass/_messages-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
@import "colors";
@import "mixins";

.dorako-ui.message.chat-message.spell {
padding-bottom: 3px;
}

/* ----------------------------------------- */
/* Glassy Buttons */
/* ----------------------------------------- */
Expand Down
1 change: 1 addition & 0 deletions sass/_messages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
max-width: 160px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}

.portrait-and-name {
Expand Down
2 changes: 1 addition & 1 deletion sass/foundry/_controls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ nav#controls.dorako-ui {
margin-bottom: 8px;

img {
filter: sepia() brightness(0.8) drop-shadow(0px 0px 3px black);
filter: sepia() grayscale(0.9) brightness(0.8) drop-shadow(0px 0px 3px black);
}

&.active,
Expand Down
4 changes: 4 additions & 0 deletions sass/foundry/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ section.chat-sidebar {

#chat-log {
margin-left: 4px;
display: flex;
flex-direction: column;
li.dorako-ui:first-child {
margin-top: 2px;
}
Expand Down Expand Up @@ -84,13 +86,15 @@ section.chat-sidebar {
.dorako-ui {
#chat-controls {
margin: 0px 5px;
gap: 5px;

i.fas {
line-height: 24px; // center-aligns icons
}

.roll-type-select {
margin-left: 0px;
margin-right: 0px;
}
}
}
27 changes: 27 additions & 0 deletions sass/module/_damage-log.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,30 @@ nav.damage-log-nav.tabs {
}
}
}

#damage-log {
margin-left: 4px;
}

.dorako-ui {
/* Styling for damage messages */
&.message.damage-log.damage {
background-color: #ffd9d9;
background-blend-mode: luminosity;
}
/* Styling for healing messages */
&.message.damage-log.healing {
background-color: #d9ffd9;
background-blend-mode: luminosity;
}
/* Dim reverted damage */
&.message.damage-log.reverted.damage {
background-color: #ffeaea;
background-blend-mode: luminosity;
}
/* Dim reverted healing */
&.message.damage-log.reverted.healing {
background-color: #eaffea;
background-blend-mode: luminosity;
}
}
67 changes: 67 additions & 0 deletions sass/module/_monks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -586,3 +586,70 @@ section.readaloud {
border-image: linear-gradient(90deg, #f1edea, #d5cac1) 1 repeat;
border-width: 0 0 1px;
}

/* ----------------------------------------- */
/* Monk's Scene Navigation */
/* ----------------------------------------- */

body.compact-ui #navigation .monks-scene-navigation #nav-toggle {
display: unset;
}

#navigation .nav-item-container {
@include glass;
}

#navigation .monks-scene-navigation .scene-list > li a {
@include glass;
}

#navigation .monks-scene-navigation .scene-list > li {
a {
@include glass;
@include quick-transition;
text-shadow: 0px 0px 3px black;
color: var(--color-text-light-heading);
&:hover {
background-color: var(--primary);
color: var(--color-text-light-heading-highlight);
}
}

&.view a {
background-color: var(--primary);
color: var(--color-text-light-heading-highlight);

&:hover {
background-color: var(--primary-light);
color: white;
}
}

&.gm a {
background-color: var(--secondary);
color: var(--color-text-light-heading-highlight);

&:hover {
background-color: var(--secondary-light);
color: white;
}
}
&.gm.view a {
background-color: var(--secondary-light);
color: white;
}
}
#navigation .monks-scene-navigation .scene-list > li.view a,
#navigation .monks-scene-navigation .scene-list > li.context a {
box-shadow: var(--glassy);
border: none;
}

#navigation .monks-scene-navigation .scene-list > li.active a {
@include glass;
box-shadow: var(--gold-and-glow), var(--glassy);
}

#navigation.background .monks-scene-navigation .scene-list {
@include glass;
}
42 changes: 42 additions & 0 deletions sass/module/_target-damage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,44 @@
/* PF2e Target Damage */
/* ----------------------------------------- */

.dorako-ui.message.chat-message .message-content .pf2e.chat-card .card-buttons .save.pf2e-td {
&.criticalSuccess {
$color: rgb(0, 128, 0);
background-color: $color;
&:hover {
background-color: $color;
box-shadow: 0px 0px 1px 1px var(--tertiary) inset, 0px 0px 5px $color;
}
}

&.success {
$color: rgb(0, 0, 255);
background-color: $color;
&:hover {
background-color: $color;
box-shadow: 0px 0px 1px 1px var(--tertiary) inset, 0px 0px 5px $color;
}
}

&.failure {
$color: rgb(255, 69, 0);
background-color: $color;
&:hover {
background-color: $color;
box-shadow: 0px 0px 1px 1px var(--tertiary) inset, 0px 0px 5px $color;
}
}

&.criticalFailure {
$color: rgb(255, 0, 0);
background-color: $color;
&:hover {
background-color: $color;
box-shadow: 0px 0px 1px 1px var(--tertiary) inset, 0px 0px 5px $color;
}
}
}

.chat-message .message-content .pf2e-td.damage-application button .label {
font-size: var(--font-size-8);
}
Expand All @@ -26,6 +64,10 @@ wrapper.pf2e-td.name-top .pf2e-td.name {
display: none !important; // inline style overwrite
}

.spell-button.pf2e-td.target-button {
@include glass;
}

button.small-button.pf2e-td {
@include glass;
@include quick-transition;
Expand Down
11 changes: 10 additions & 1 deletion styles/dorako-ui.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion styles/dorako-ui.css.map

Large diffs are not rendered by default.

Loading

0 comments on commit 27de0ba

Please sign in to comment.