Skip to content

Commit

Permalink
10.7 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ironmonk88 committed Feb 28, 2023
1 parent dd155be commit 9a4db2e
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
17 changes: 17 additions & 0 deletions css/monks-little-details.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
.mld-warning {
background: rgba(47, 80, 132, 0.8);
margin-bottom: 0.5em;
padding: 6px 8px;
line-height: 20px;
border: 1px solid var(--color-level-info);
border-radius: 5px;
box-shadow: 0 0 10px var(--color-shadow-dark);
color: var(--color-text-light-1);
font-size: var(--font-size-14);
text-shadow: 1px 1px black;
}

.mld-warning a {
color: var(--color-text-hyperlink);
}

.group-header {
font-weight: bold;
padding: 8px 20px;
Expand Down
4 changes: 2 additions & 2 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"MonksLittleDetails.alter-hud.hint": "Alter the Token HUD to show detailed status effects and allow to clear all effects.",
"MonksLittleDetails.alter-hud-colour.name": "Highlight Token HUD status effects",
"MonksLittleDetails.alter-hud-colour.hint": "When a status is selected in Token HUD change the colour to highlight it. Disable if you use coloured images.",
"MonksLittleDetails.add-extra-statuses.name": "Add DnD statuses",
"MonksLittleDetails.add-extra-statuses.hint": "Add a handful more status effects that get used in DnD.",
"MonksLittleDetails.add-extra-statuses.name": "Add extra statuses",
"MonksLittleDetails.add-extra-statuses.hint": "Add some more status effects to the token HUD.",
"MonksLittleDetails.change-invisible-image.name": "Use DnD5e invisible icon",
"MonksLittleDetails.change-invisible-image.hint": "Instead of using the Foundry masked man image, use an outlined image",
"MonksLittleDetails.scene-palette.name": "Show Scene Palette",
Expand Down
2 changes: 2 additions & 0 deletions monks-little-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export class MonksLittleDetails {
MonksLittleDetails.SOCKET = "module.monks-little-details";

MonksLittleDetails._rejectlist = {
"add-extra-statuses": ["pf2e"]
}
MonksLittleDetails._onlylist = {
"sort-by-columns": ["dnd5e"],
Expand Down Expand Up @@ -663,6 +664,7 @@ Hooks.on('renderSceneConfig', async (app, html, options) => {
});

Hooks.on("renderSettingsConfig", (app, html, data) => {
$('<p>').addClass('mld-warning').append('<i class="fas fa-circle-question"></i> Where have all of my features gone? ').append($('<a>').html("Click here").on("click", () => { new ModuleWarning().render(true); })).insertBefore($('[name="monks-little-details.swap-buttons"]').parents('div.form-group:first'));
$('<div>').addClass('form-group group-header').html(i18n("MonksLittleDetails.SystemChanges")).insertBefore($('[name="monks-little-details.swap-buttons"]').parents('div.form-group:first'));
$('<div>').addClass('form-group group-header').html(i18n("MonksLittleDetails.AddedFeatures")).insertBefore($('[name="monks-little-details.scene-palette"]').parents('div.form-group:first'));
});
Expand Down
5 changes: 3 additions & 2 deletions settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ export const registerSettings = function () {
name: i18n("MonksLittleDetails.add-extra-statuses.name"),
hint: i18n("MonksLittleDetails.add-extra-statuses.hint"),
scope: "world",
config: true,
default: true,
config: game.system.id != "pf2e",
default: game.system.id == "dnd5e",
type: Boolean,
});
game.settings.register(modulename, "change-invisible-image", {
Expand Down Expand Up @@ -108,6 +108,7 @@ export const registerSettings = function () {
hint: i18n("MonksLittleDetails.scene-palette.hint"),
scope: "world",
config: true,
config: true,
default: true,
type: Boolean,
});
Expand Down
2 changes: 1 addition & 1 deletion templates/module-warning.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<td>Monk's Combat Details</td>
<td>
All of the combat features that Little Details had has moved to this module.<br />
Including round notification, automatically opening the combat tracker when a combat starts, closing the combat tracker when combat ends, <br />
Including round notification, automatically opening the combat tracker when a combat starts, closing the combat tracker when combat ends,
showing an image of where your token started their movement from, hiding creature tokens until it's their turn, remembering pervious targets, combat CR, and more.<br />
<a href="https://foundryvtt.com/packages/monks-combat-details" target="_blank">Find more information here</a>
</td>
Expand Down

0 comments on commit 9a4db2e

Please sign in to comment.