Fix templates for new appv2
All checks were successful
Release Creation / build (release) Successful in 2m31s

This commit is contained in:
LeRatierBretonnien 2025-06-02 23:25:49 +02:00
parent c25320755a
commit a0f42204d5
24 changed files with 421 additions and 113 deletions

View File

@ -79,6 +79,11 @@ select,
:root { :root {
/* =================== 2. DEBUGGING HIGHLIGHTERS ============ */ /* =================== 2. DEBUGGING HIGHLIGHTERS ============ */
/* =================== 3. some constants ============ */ /* =================== 3. some constants ============ */
--fieldset-background: url(/ui/parchment.jpg);
--rdd-color-text-primary: rgba(10, 10, 10, 0.9);
--rdd-input-background: rgba(0, 0, 0, 0.05);
--rdd-color-border-input: rgba(0, 0, 0, 0.2);
--rdd-bg-input: rgba(255, 255, 255, 0.1);
--color-controls: rgba(0, 0, 0, 0.9); --color-controls: rgba(0, 0, 0, 0.9);
--color-controls-light: hsla(0, 0%, 20%, 0.8); --color-controls-light: hsla(0, 0%, 20%, 0.8);
--color-controls-hover: hsla(60, 100%, 75%, 0.7); --color-controls-hover: hsla(60, 100%, 75%, 0.7);
@ -139,30 +144,274 @@ select,
/*when navigating through the items using the arrow keys:*/ /*when navigating through the items using the arrow keys:*/
/*************************************************************/ /*************************************************************/
} }
.system-foundryvtt-reve-de-dragon .application.sheet.fvtt-rdd .window-content { .system-foundryvtt-reve-de-dragon .monnaie-content {
padding: 0px;
background: #011d33 url(../assets/ui/bg_header.webp) no-repeat left top;
color: #ffffff;
}
.system-foundryvtt-reve-de-dragon .monnaie-content .editor,
.system-foundryvtt-reve-de-dragon .monnaie-content .editor-content {
height: auto;
min-height: 100px;
background: var(--rdd-bg-input-alt);
padding: 5px;
border-radius: 3px;
color: var(--rdd-color-text-primary);
}
.system-foundryvtt-reve-de-dragon .monnaie-content .window-content {
font-family: CaslonAntique; font-family: CaslonAntique;
text-align: justify; text-align: justify;
font-size: 1rem; font-size: 1rem;
letter-spacing: 1px; letter-spacing: 1px;
padding: 0% 0 0 0;
font-size: calc(var(--font-size-standard) * 1); font-size: calc(var(--font-size-standard) * 1);
color: var(--color-dark-1); color: var(--color-dark-1);
background: var(--background-image-base) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
.system-foundryvtt-reve-de-dragon .application.sheet.fvtt-rdd section.window-content { .system-foundryvtt-reve-de-dragon .monnaie-content fieldset {
padding: 0rem; background: var(--fieldset-background);
color: var(--rdd-color-text-primary);
margin-bottom: 4px;
border-radius: 6px;
border-color: var(--rdd-color-text-primary);
border-width: 2px;
} }
.system-foundryvtt-reve-de-dragon .application.sheet.fvtt-rdd section.window-content section header.sheet-header { .system-foundryvtt-reve-de-dragon .monnaie-content .form-group {
background: #011d33 url(../assets/ui/bg_header.webp) no-repeat left top; display: flex;
color: #ffffff; flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
align-items: center;
padding: 2px 0;
border-bottom: 1px solid var(--rdd-color-shadow-primary);
font-size: 0.9rem;
} }
.system-foundryvtt-reve-de-dragon .application.sheet.fvtt-rdd section.window-content section header.sheet-header :is( .system-foundryvtt-reve-de-dragon .monnaie-content .form-group label {
font-weight: normal;
flex: 2;
padding-left: 5px;
margin: 0;
color: var(--rdd-color-text-primary);
}
.system-foundryvtt-reve-de-dragon .monnaie-content .form-group .attribute-value,
.system-foundryvtt-reve-de-dragon .monnaie-content .form-group input[type="text"],
.system-foundryvtt-reve-de-dragon .monnaie-content .form-group input[type="number"],
.system-foundryvtt-reve-de-dragon .monnaie-content .form-group select {
flex: 3;
background: var(--rdd-input-background);
border: 1px solid var(--rdd-color-border-input);
color: var(--rdd-color-text-input);
padding: 2px 2px;
border-radius: 3px;
}
.system-foundryvtt-reve-de-dragon .monnaie-content .form-group input[type="checkbox"] {
flex: 0 0 20px;
margin-left: 5px;
}
.system-foundryvtt-reve-de-dragon .monnaie-content .sheet-header-row {
display: flex;
flex-direction: row;
align-items: center;
}
.system-foundryvtt-reve-de-dragon .monnaie-content .sheet-header-row h1,
.system-foundryvtt-reve-de-dragon .monnaie-content .sheet-header-row input {
font-family: CaslonAntique;
font-size: 2.5rem;
font-weight: normal;
color: var(--window-header-title-color);
margin: 4px;
height: 3rem;
}
.system-foundryvtt-reve-de-dragon .monnaie-content :is(
input[type="text"], input[type="text"],
input[type="number"], input[type="number"],
input[type="password"], input[type="password"],
input[type="datetime-local"], input[type="datetime-local"],
input[type="date"], input[type="date"],
input[type="time"]) { input[type="time"]
) {
color: rgba(255, 255, 255, 0.75);
background: rgba(255, 255, 255, 0.1);
border: 0 none;
margin-bottom: 0.2rem;
}
.system-foundryvtt-reve-de-dragon .munition-content {
padding: 0px;
background: #011d33 url(../assets/ui/bg_header.webp) no-repeat left top;
color: #ffffff;
}
.system-foundryvtt-reve-de-dragon .munition-content .editor,
.system-foundryvtt-reve-de-dragon .munition-content .editor-content {
height: auto;
min-height: 100px;
background: var(--rdd-bg-input-alt);
padding: 5px;
border-radius: 3px;
color: var(--rdd-color-text-primary);
}
.system-foundryvtt-reve-de-dragon .munition-content .window-content {
font-family: CaslonAntique;
text-align: justify;
font-size: 1rem;
letter-spacing: 1px;
padding: 0% 0 0 0;
font-size: calc(var(--font-size-standard) * 1);
color: var(--color-dark-1);
background-size: 100% 100%;
}
.system-foundryvtt-reve-de-dragon .munition-content fieldset {
background: var(--fieldset-background);
color: var(--rdd-color-text-primary);
margin-bottom: 4px;
border-radius: 6px;
border-color: var(--rdd-color-text-primary);
border-width: 2px;
}
.system-foundryvtt-reve-de-dragon .munition-content .form-group {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
align-items: center;
padding: 2px 0;
border-bottom: 1px solid var(--rdd-color-shadow-primary);
font-size: 0.9rem;
}
.system-foundryvtt-reve-de-dragon .munition-content .form-group label {
font-weight: normal;
flex: 2;
padding-left: 5px;
margin: 0;
color: var(--rdd-color-text-primary);
}
.system-foundryvtt-reve-de-dragon .munition-content .form-group .attribute-value,
.system-foundryvtt-reve-de-dragon .munition-content .form-group input[type="text"],
.system-foundryvtt-reve-de-dragon .munition-content .form-group input[type="number"],
.system-foundryvtt-reve-de-dragon .munition-content .form-group select {
flex: 3;
background: var(--rdd-input-background);
border: 1px solid var(--rdd-color-border-input);
color: var(--rdd-color-text-input);
padding: 2px 2px;
border-radius: 3px;
}
.system-foundryvtt-reve-de-dragon .munition-content .form-group input[type="checkbox"] {
flex: 0 0 20px;
margin-left: 5px;
}
.system-foundryvtt-reve-de-dragon .munition-content .sheet-header-row {
display: flex;
flex-direction: row;
align-items: center;
}
.system-foundryvtt-reve-de-dragon .munition-content .sheet-header-row h1,
.system-foundryvtt-reve-de-dragon .munition-content .sheet-header-row input {
font-family: CaslonAntique;
font-size: 2.5rem;
font-weight: normal;
color: var(--window-header-title-color);
margin: 4px;
height: 3rem;
}
.system-foundryvtt-reve-de-dragon .munition-content :is(
input[type="text"],
input[type="number"],
input[type="password"],
input[type="datetime-local"],
input[type="date"],
input[type="time"]
) {
color: rgba(255, 255, 255, 0.75);
background: rgba(255, 255, 255, 0.1);
border: 0 none;
margin-bottom: 0.2rem;
}
.system-foundryvtt-reve-de-dragon .tarot-content {
padding: 0px;
background: #011d33 url(../assets/ui/bg_header.webp) no-repeat left top;
color: #ffffff;
}
.system-foundryvtt-reve-de-dragon .tarot-content .editor,
.system-foundryvtt-reve-de-dragon .tarot-content .editor-content {
height: auto;
min-height: 100px;
background: var(--rdd-bg-input-alt);
padding: 5px;
border-radius: 3px;
color: var(--rdd-color-text-primary);
}
.system-foundryvtt-reve-de-dragon .tarot-content .window-content {
font-family: CaslonAntique;
text-align: justify;
font-size: 1rem;
letter-spacing: 1px;
padding: 0% 0 0 0;
font-size: calc(var(--font-size-standard) * 1);
color: var(--color-dark-1);
background-size: 100% 100%;
}
.system-foundryvtt-reve-de-dragon .tarot-content fieldset {
background: var(--fieldset-background);
color: var(--rdd-color-text-primary);
margin-bottom: 4px;
border-radius: 6px;
border-color: var(--rdd-color-text-primary);
border-width: 2px;
}
.system-foundryvtt-reve-de-dragon .tarot-content .form-group {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
align-items: center;
padding: 2px 0;
border-bottom: 1px solid var(--rdd-color-shadow-primary);
font-size: 0.9rem;
}
.system-foundryvtt-reve-de-dragon .tarot-content .form-group label {
font-weight: normal;
flex: 2;
padding-left: 5px;
margin: 0;
color: var(--rdd-color-text-primary);
}
.system-foundryvtt-reve-de-dragon .tarot-content .form-group .attribute-value,
.system-foundryvtt-reve-de-dragon .tarot-content .form-group input[type="text"],
.system-foundryvtt-reve-de-dragon .tarot-content .form-group input[type="number"],
.system-foundryvtt-reve-de-dragon .tarot-content .form-group select {
flex: 3;
background: var(--rdd-input-background);
border: 1px solid var(--rdd-color-border-input);
color: var(--rdd-color-text-input);
padding: 2px 2px;
border-radius: 3px;
}
.system-foundryvtt-reve-de-dragon .tarot-content .form-group input[type="checkbox"] {
flex: 0 0 20px;
margin-left: 5px;
}
.system-foundryvtt-reve-de-dragon .tarot-content .sheet-header-row {
display: flex;
flex-direction: row;
align-items: center;
}
.system-foundryvtt-reve-de-dragon .tarot-content .sheet-header-row h1,
.system-foundryvtt-reve-de-dragon .tarot-content .sheet-header-row input {
font-family: CaslonAntique;
font-size: 2.5rem;
font-weight: normal;
color: var(--window-header-title-color);
margin: 4px;
height: 3rem;
}
.system-foundryvtt-reve-de-dragon .tarot-content :is(
input[type="text"],
input[type="number"],
input[type="password"],
input[type="datetime-local"],
input[type="date"],
input[type="time"]
) {
color: rgba(255, 255, 255, 0.75); color: rgba(255, 255, 255, 0.75);
background: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.1);
border: 0 none; border: 0 none;

View File

@ -19,7 +19,7 @@ const css = gulp.series(compileLESS);
/* ----------------------------------------- */ /* ----------------------------------------- */
/* Watch Updates /* Watch Updates
/* ----------------------------------------- */ /* ----------------------------------------- */
const SIMPLE_LESS = ["less/*.less"]; const SIMPLE_LESS = ["less/*.less", "less/item/*.less"];
function watchUpdates() { function watchUpdates() {
gulp.watch(SIMPLE_LESS, css); gulp.watch(SIMPLE_LESS, css);

View File

@ -1,15 +1,21 @@
:root { :root {
/* =================== 2. DEBUGGING HIGHLIGHTERS ============ */ /* =================== 2. DEBUGGING HIGHLIGHTERS ============ */
// --debug-background-color-red: #ff000054; // --debug-background-color-red: #ff000054;
// --debug-background-color-blue: #1d00ff54; // --debug-background-color-blue: #1d00ff54;
// --debug-background-color-green: #54ff0054; // --debug-background-color-green: #54ff0054;
// --debug-box-shadow-red: inset 0 0 2px red; // --debug-box-shadow-red: inset 0 0 2px red;
// --debug-box-shadow-blue: inset 0 0 2px blue; // --debug-box-shadow-blue: inset 0 0 2px blue;
// --debug-box-shadow-green: inset 0 0 2px green; // --debug-box-shadow-green: inset 0 0 2px green;
/* =================== 3. some constants ============ */ /* =================== 3. some constants ============ */
--fieldset-background: url(/ui/parchment.jpg);
--rdd-color-text-primary: rgba(10, 10, 10, 0.9);
--rdd-input-background:rgba(0, 0, 0, 0.05);
--rdd-color-border-input: rgba(0, 0, 0, 0.2);
--rdd-bg-input: rgba(255, 255, 255, 0.1);
--color-controls:rgba(0, 0, 0, 0.9); --color-controls:rgba(0, 0, 0, 0.9);
--color-controls-light:hsla(0, 0%, 20%, 0.8); --color-controls-light:hsla(0, 0%, 20%, 0.8);
--color-controls-hover:hsla(60, 100%, 75%, 0.7); --color-controls-hover:hsla(60, 100%, 75%, 0.7);
@ -30,9 +36,9 @@
hsla(250, 30%, 30%, 0.7) 50%, hsla(250, 30%, 30%, 0.7) 50%,
hsla(250, 50%, 40%, 0.1) 75%, hsla(250, 50%, 40%, 0.1) 75%,
hsla(30, 30%, 40%, 0.1) 75%, hsla(30, 30%, 40%, 0.1) 75%,
hsla(50, 100%, 80%, 0.7) hsla(50, 100%, 80%, 0.7)
); );
--background-custom-button: linear-gradient(to bottom, rgba(33, 55, 74, 0.988) 5%, rgba(21, 40, 51, 0.671) 100%); --background-custom-button: linear-gradient(to bottom, rgba(33, 55, 74, 0.988) 5%, rgba(21, 40, 51, 0.671) 100%);
--background-custom-button-hover: linear-gradient(to bottom, rgb(128, 0, 0) 5%, rgb(62, 1, 1) 100%); --background-custom-button-hover: linear-gradient(to bottom, rgb(128, 0, 0) 5%, rgb(62, 1, 1) 100%);
--background-control-selected: linear-gradient(to bottom, hsla(0, 100%, 25%, 0.5) 5%, hsla(0, 100%, 12%, 0.5) 100%); --background-control-selected: linear-gradient(to bottom, hsla(0, 100%, 25%, 0.5) 5%, hsla(0, 100%, 12%, 0.5) 100%);
@ -42,4 +48,3 @@
--background-error:hsla(16, 100%, 50%, 0.8); --background-error:hsla(16, 100%, 50%, 0.8);
--color-profile-border: hsla(0, 0%, 80%, 0.05); --color-profile-border: hsla(0, 0%, 80%, 0.05);
} }

View File

@ -4,6 +4,8 @@
.system-foundryvtt-reve-de-dragon { .system-foundryvtt-reve-de-dragon {
@import "sheets.less"; @import "sheets.less";
@import "item/monnaie.less"; @import "item/monnaie.less";
@import "item/munition.less";
@import "item/tarot.less";
// body { // body {
// --input-height: 1.4rem; // --input-height: 1.4rem;

View File

@ -1,10 +1,7 @@
.application.sheet.fvtt-rdd { // Styles pour la feuille d'objet Monnaie
.sheet-common(); .monnaie-content {
section.window-content{
padding: 0rem; .item-sheet-common();
.item-sheet-header();
section header.sheet-header {
.sheet-header();
}
}
} }

7
less/item/munition.less Normal file
View File

@ -0,0 +1,7 @@
// Styles pour la feuille d'objet Monnaie
.munition-content {
.item-sheet-common();
.item-sheet-header();
}

7
less/item/tarot.less Normal file
View File

@ -0,0 +1,7 @@
// Styles pour la feuille d'objet Monnaie
.tarot-content {
.item-sheet-common();
.item-sheet-header();
}

View File

@ -1,21 +1,96 @@
.sheet-common() { .item-sheet-common() {
padding: 0px;
.window-content{ // Styles pour la section de description, si le partiel utilise une structure standard
.editor,
.editor-content {
height: auto; // Ajuster selon le besoin
min-height: 100px; // Hauteur minimale pour la description
background: var(--rdd-bg-input-alt); // Une couleur de fond alternative
padding: 5px;
border-radius: 3px;
color: var(--rdd-color-text-primary);
}
.window-content {
font-family: CaslonAntique; font-family: CaslonAntique;
text-align: justify; text-align: justify;
font-size: 1rem; font-size: 1rem;
letter-spacing: 1px; letter-spacing: 1px;
padding: 0% 0 0 0;
font-size: calc(var(--font-size-standard) * 1); font-size: calc(var(--font-size-standard) * 1);
color: var(--color-dark-1); color: var(--color-dark-1);
background: var(--background-image-base) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
fieldset {
background: var(--fieldset-background);
color: var(--rdd-color-text-primary);
margin-bottom: 4px;
border-radius: 6px;
border-color: var(--rdd-color-text-primary);
border-width: 2px;
}
.form-group {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
align-items: center;
padding: 2px 0;
border-bottom: 1px solid var(--rdd-color-shadow-primary);
font-size: 0.9rem;
label {
font-weight: normal;
flex: 2;
padding-left: 5px;
margin: 0;
color: var(
--rdd-color-text-primary
); // Assurez-vous que cette variable existe dans colors.less
}
.attribute-value,
input[type="text"],
input[type="number"],
select {
flex: 3;
background: var(--rdd-input-background);
border: 1px solid var(--rdd-color-border-input); // Assurez-vous que cette variable existe
color: var(
--rdd-color-text-input
); // Assurez-vous que cette variable existe
padding: 2px 2px; // Augmentation du padding vertical
border-radius: 3px;
}
input[type="checkbox"] {
flex: 0 0 20px; // Taille fixe pour les cases à cocher
margin-left: 5px;
}
}
} }
.sheet-header() { .item-sheet-header() {
background: #011d33 url(../assets/ui/bg_header.webp) no-repeat left top; background: #011d33 url(../assets/ui/bg_header.webp) no-repeat left top;
color: rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1);
.sheet-header-row {
display: flex;
flex-direction: row;
align-items: center;
h1,
input {
font-family: CaslonAntique;
font-size: 2.5rem;
font-weight: normal;
color: var(--window-header-title-color);
margin: 4px;
height: 3rem;
}
}
:is( :is(
input[type="text"], input[type="text"],
@ -23,10 +98,11 @@
input[type="password"], input[type="password"],
input[type="datetime-local"], input[type="datetime-local"],
input[type="date"], input[type="date"],
input[type="time"]) { input[type="time"]
color: rgba(255, 255, 255, 0.75); ) {
background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.75);
border: 0 none; background: rgba(255, 255, 255, 0.1);
margin-bottom: 0.2rem; border: 0 none;
margin-bottom: 0.2rem;
} }
} }

View File

@ -15,6 +15,7 @@ import { ItemAction } from "../item/item-actions.js";
* @extends {ActorSheet} * @extends {ActorSheet}
*/ */
export class RdDBaseActorSheet extends foundry.appv1.sheets.ActorSheet { export class RdDBaseActorSheet extends foundry.appv1.sheets.ActorSheet {
static _warnedAppV1 = true
/** @override */ /** @override */
static get defaultOptions() { static get defaultOptions() {

View File

@ -53,7 +53,7 @@ export default class RdDItemBaseSheet extends HandlebarsApplicationMixin(foundry
static DEFAULT_OPTIONS = { static DEFAULT_OPTIONS = {
classes: ["fvtt-rdd", "item"], classes: ["fvtt-rdd", "item"],
position: { position: {
width: 600, width: 448,
height: "auto", height: "auto",
}, },
form: { form: {

View File

@ -13,7 +13,7 @@ export default class RdDMonnaieSheet extends RdDItemBaseSheet {
RdDItemBaseSheet.DEFAULT_OPTIONS, RdDItemBaseSheet.DEFAULT_OPTIONS,
{ {
classes: ["fvtt-rdd", "item", "monnaie"], classes: ["fvtt-rdd", "item", "monnaie"],
position: { width: 400 }, position: { width: 448 },
window: { contentClasses: ["monnaie-content"] } window: { contentClasses: ["monnaie-content"] }
}) })

View File

@ -12,7 +12,7 @@ export default class RdDMunitionSheet extends RdDItemBaseSheet {
RdDItemBaseSheet.DEFAULT_OPTIONS, RdDItemBaseSheet.DEFAULT_OPTIONS,
{ {
classes: ["fvtt-rdd", "item", "munition"], classes: ["fvtt-rdd", "item", "munition"],
position: { width: 400 }, position: { width: 448 },
window: { contentClasses: ["munition-content"] } window: { contentClasses: ["munition-content"] }
}) })

View File

@ -12,7 +12,7 @@ export default class RdDTarotSheet extends RdDItemBaseSheet {
RdDItemBaseSheet.DEFAULT_OPTIONS, RdDItemBaseSheet.DEFAULT_OPTIONS,
{ {
classes: ["fvtt-rdd", "item", "tarot"], classes: ["fvtt-rdd", "item", "tarot"],
position: { width: 400 }, position: { width: 448 },
window: { contentClasses: ["tarot-content"] } window: { contentClasses: ["tarot-content"] }
}) })

View File

@ -1,7 +1,11 @@
import { RdDItem } from "../item.js"; import { RdDItem } from "../item.js";
export default class RdDItemMonnaie extends RdDItem { export default class RdDItemMonnaie extends RdDItem {
static get defaultIcon() {
return 'systems/foundryvtt-reve-de-dragon/icons/objets/piece_etain_poisson.webp' constructor(data, context) {
if (!data.img) {
data.img = 'systems/foundryvtt-reve-de-dragon/icons/objets/piece_etain_poisson.webp'
}
super(data, context);
} }
} }

View File

@ -2,6 +2,6 @@ import { RdDItem } from "../item.js";
export default class RdDItemTarot extends RdDItem { export default class RdDItemTarot extends RdDItem {
static get defaultIcon() { static get defaultIcon() {
return 'systems/foundryvtt-reve-de-dragon/icons/objets/tarot.webp' return 'systems/foundryvtt-reve-de-dragon/icons/tarots/dos-tarot.webp'
} }
} }

View File

@ -78,6 +78,8 @@ export const defaultItemImg = {
souffle: "systems/foundryvtt-reve-de-dragon/icons/souffle_dragon.webp", souffle: "systems/foundryvtt-reve-de-dragon/icons/souffle_dragon.webp",
tarot: "systems/foundryvtt-reve-de-dragon/icons/tarots/dos-tarot.webp", tarot: "systems/foundryvtt-reve-de-dragon/icons/tarots/dos-tarot.webp",
tete: "systems/foundryvtt-reve-de-dragon/icons/tete_dragon.webp", tete: "systems/foundryvtt-reve-de-dragon/icons/tete_dragon.webp",
monnaie:"systems/foundryvtt-reve-de-dragon/icons/objets/piece_etain_poisson.webp",
munition: "systems/foundryvtt-reve-de-dragon/icons/objets/fleche.webp"
} }
/* -------------------------------------------- */ /* -------------------------------------------- */

View File

@ -112,6 +112,7 @@ export class RdDTokenHud {
/* -------------------------------------------- */ /* -------------------------------------------- */
static async addTokenHudExtensions(app, html, tokenId) { static async addTokenHudExtensions(app, html, tokenId) {
console.log(`Adding token HUD extensions for token ${tokenId}`);
const controlIconCombat = $(html).find('.control-icon[data-action=combat]'); const controlIconCombat = $(html).find('.control-icon[data-action=combat]');
if (controlIconCombat.length > 0) { if (controlIconCombat.length > 0) {
controlIconCombat.click(event => { controlIconCombat.click(event => {
@ -129,7 +130,7 @@ export class RdDTokenHud {
/* -------------------------------------------- */ /* -------------------------------------------- */
static async _configureSubMenu(insertionPoint, template, hudData, onMenuItem) { static async _configureSubMenu(insertionPoint, template, hudData, onMenuItem) {
const hud = $(await renderTemplate(template, hudData)); const hud = $(await foundry.applications.handlebars.renderTemplate(template, hudData));
const list = hud.find('div.rdd-hud-list'); const list = hud.find('div.rdd-hud-list');
RdDTokenHud._toggleHudListActive(hud, list); RdDTokenHud._toggleHudListActive(hud, list);

View File

@ -15,6 +15,8 @@ const TEMPLATE_CALENDRIER = "systems/foundryvtt-reve-de-dragon/templates/time/ca
const INITIAL_CALENDAR_POS = { top: 200, left: 200, horlogeAnalogique: true }; const INITIAL_CALENDAR_POS = { top: 200, left: 200, horlogeAnalogique: true };
/* -------------------------------------------- */ /* -------------------------------------------- */
export class RdDCalendrier extends Application { export class RdDCalendrier extends Application {
static _warnedAppV1 = true
static initSettings() { static initSettings() {
game.settings.register(SYSTEM_RDD, "liste-nombre-astral", { game.settings.register(SYSTEM_RDD, "liste-nombre-astral", {
name: "liste-nombre-astral", name: "liste-nombre-astral",
@ -242,7 +244,7 @@ export class RdDCalendrier extends Application {
} }
/** /**
* *
* @param {*} indexDate la date pour laquelle obtenir le nombre astral. Si undefined, on prend la date du jour * @param {*} indexDate la date pour laquelle obtenir le nombre astral. Si undefined, on prend la date du jour
* @returns le nombre astral pour la date, ou pour la date du jour si la date n'est pas fournie. * @returns le nombre astral pour la date, ou pour la date du jour si la date n'est pas fournie.
* Si aucun nombre astral n'est trouvé, retourne 0 (cas où l'on demanderait un nombre astral en dehors des 12 jours courant et à venir) * Si aucun nombre astral n'est trouvé, retourne 0 (cas où l'on demanderait un nombre astral en dehors des 12 jours courant et à venir)

View File

@ -1,14 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
{{>"systems/foundryvtt-reve-de-dragon/templates/header-item.hbs"}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="informations">Informations</a>
{{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-tab-environnement.hbs"}}
</nav>
<section class="sheet-body">
<div class="tab items flexcol" data-group="primary" data-tab="informations">
{{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-inventaire.hbs"}}
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-item-description.hbs"}}
</div>
{{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-environnement.hbs"}}
</section>
</form>

View File

@ -1,14 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
{{>"systems/foundryvtt-reve-de-dragon/templates/header-item.hbs"}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="informations">Informations</a>
{{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-tab-environnement.hbs"}}
</nav>
<section class="sheet-body">
<div class="tab items flexcol" data-group="primary" data-tab="informations">
{{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-inventaire.hbs"}}
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-item-description.hbs"}}
</div>
{{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-environnement.hbs"}}
</section>
</form>

View File

@ -1,14 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
{{>"systems/foundryvtt-reve-de-dragon/templates/header-item.hbs"}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="informations">Informations</a>
{{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-tab-environnement.hbs"}}
</nav>
<section class="sheet-body">
<div class="tab items flexcol" data-group="primary" data-tab="informations">
{{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-inventaire.hbs"}}
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-item-description.hbs"}}
</div>
{{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-environnement.hbs"}}
</section>
</form>

View File

@ -1,27 +0,0 @@
<form class="rdd-item-sheet-tarot" autocomplete="off">
<header class="sheet-header">
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
<section class="sheet-body">
<div class="flexrow">
<img class="profile-img" src="{{img}}" data-edit="img" data-tooltip="{{name}}"/>
<div class="flexcol">
<div class="form-group">
<label for="system.concept">Aspect</label>
<input class="attribute-value" type="text" name="system.concept" value="{{system.concept}}" data-dtype="String" />
</div>
<div class="form-group">
<label for="system.aspect">Sens</label>
<select name="system.aspect" data-dtype="String">
{{#select system.aspect}}
{{>"systems/foundryvtt-reve-de-dragon/templates/enum-aspect-tarot.hbs"}}
{{/select}}
</select>
</div>
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-item-frequence.hbs"}}
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-item-description.hbs"}}
</div>
</section>
</form>

View File

@ -1,6 +1,8 @@
<header class="sheet-header"> <header class="sheet-header">
<div class="sheet-header-row">
<img class="profile-img" src="{{item.img}}" data-edit="img" data-action="editImage" data-tooltip="{{item.name}}"/> <img class="profile-img" src="{{item.img}}" data-edit="img" data-action="editImage" data-tooltip="{{item.name}}"/>
<div class="header-fields"> <div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1> <h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
</div> </div>
</div>
</header> </header>

View File

@ -0,0 +1,22 @@
<section>
{{> "systems/foundryvtt-reve-de-dragon/templates/sheets/item/common/header.hbs"}}
<fieldset>
<div class="form-group">
<label for="system.concept">Concept</label>
<input type="text" name="system.concept" value="{{system.concept}}" />
</div>
<div class="form-group">
<label for="system.aspect">Aspect</label>
<input type="text" name="system.aspect" value="{{system.aspect}}" />
</div>
<div class="form-group">
<label for="system.frequence">Fréquence</label>
<input type="number" name="system.frequence" value="{{system.frequence}}" data-dtype="Number" />
</div>
</fieldset>
{{>"systems/foundryvtt-reve-de-dragon/templates/sheets/item/common/template-description.hbs"}}
</section>