Compare commits

...

1 Commits

Author SHA1 Message Date
uberwald 681eb42831 COrrection sur tokenizer
Release Creation / build (release) Successful in 1m4s
2026-06-03 20:44:43 +02:00
60 changed files with 26 additions and 18 deletions
+6 -4
View File
@@ -320,19 +320,22 @@
font-size: 0.6rem; font-size: 0.6rem;
} }
.editor { .application.sheet .editor,
.window-app.sheet .editor {
border: 2; border: 2;
height: 300px; height: 300px;
padding: 0 3px; padding: 0 3px;
} }
.medium-editor { .application.sheet .medium-editor,
.window-app.sheet .medium-editor {
border: 2; border: 2;
height: 240px; height: 240px;
padding: 0 3px; padding: 0 3px;
} }
.small-editor { .application.sheet .small-editor,
.window-app.sheet .small-editor {
border: 2; border: 2;
height: 120px; height: 120px;
padding: 0 3px; padding: 0 3px;
@@ -849,7 +852,6 @@
/* ======================================== */ /* ======================================== */
/* Sidebar CSS */ /* Sidebar CSS */
#sidebar { #sidebar {
font-size: 1rem;
background-position: 100%; background-position: 100%;
color: rgba(220, 220, 220, 0.75); color: rgba(220, 220, 220, 0.75);
} }
@@ -220,14 +220,15 @@ export default class MournbladeActorSheet extends HandlebarsApplicationMixin(fou
* Handle editing the actor image * Handle editing the actor image
* @param {Event} event - The triggering event * @param {Event} event - The triggering event
*/ */
static async #onEditImage(event) { static async #onEditImage(event, target) {
event.preventDefault() event.preventDefault()
const sheet = this const attr = target.dataset.edit || "img"
const current = foundry.utils.getProperty(this.document, attr) ?? this.document.img
const filePicker = new FilePicker({ const filePicker = new FilePicker({
type: "image", type: "image",
current: sheet.document.img, current,
callback: (path) => { callback: (path) => {
sheet.document.update({ img: path }) this.document.update({ [attr]: path })
}, },
}) })
filePicker.browse() filePicker.browse()
@@ -121,13 +121,15 @@ export default class MournbladeItemSheet extends HandlebarsApplicationMixin(foun
* Handle editing the item image * Handle editing the item image
* @param {Event} event - The triggering event * @param {Event} event - The triggering event
*/ */
static async #onEditImage(event) { static async #onEditImage(event, target) {
event.preventDefault() event.preventDefault()
const attr = target.dataset.edit || "img"
const current = foundry.utils.getProperty(this.document, attr) ?? this.document.img
const filePicker = new FilePicker({ const filePicker = new FilePicker({
type: "image", type: "image",
current: this.document.img, current,
callback: (path) => { callback: (path) => {
this.document.update({ img: path }) this.document.update({ [attr]: path })
}, },
}) })
filePicker.browse() filePicker.browse()
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View File
Binary file not shown.
View File
Binary file not shown.
View File
Binary file not shown.
View File
Binary file not shown.
View File
Binary file not shown.
View File
Binary file not shown.
+6 -4
View File
@@ -266,17 +266,20 @@ table {
font-style: italic; font-style: italic;
font-size: 0.6rem; font-size: 0.6rem;
} }
.editor { .application.sheet .editor,
.window-app.sheet .editor {
border: 2; border: 2;
height: 300px; height: 300px;
padding: 0 3px; padding: 0 3px;
} }
.medium-editor { .application.sheet .medium-editor,
.window-app.sheet .medium-editor {
border: 2; border: 2;
height: 240px; height: 240px;
padding: 0 3px; padding: 0 3px;
} }
.small-editor { .application.sheet .small-editor,
.window-app.sheet .small-editor {
border: 2; border: 2;
height: 120px; height: 120px;
padding: 0 3px; padding: 0 3px;
@@ -703,7 +706,6 @@ li {
/* ======================================== */ /* ======================================== */
/* Sidebar CSS */ /* Sidebar CSS */
#sidebar { #sidebar {
font-size: 1rem;
background-position: 100%; background-position: 100%;
color: rgba(220, 220, 220, 0.75); color: rgba(220, 220, 220, 0.75);
} }
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -4,7 +4,7 @@
<header class="sheet-header"> <header class="sheet-header">
<div class="header-fields background-sheet-header"> <div class="header-fields background-sheet-header">
<div class="flexrow"> <div class="flexrow">
<img class="profile-img" src="{{actor.img}}" data-action="editImage" title="{{actor.name}}" /> <img class="profile-img" src="{{actor.img}}" data-action="editImage" data-edit="img" title="{{actor.name}}" />
<div class="flexcol header-main-content"> <div class="flexcol header-main-content">
<div style="display: flex; align-items: center; gap: 0.3rem; width: 100%;"> <div style="display: flex; align-items: center; gap: 0.3rem; width: 100%;">
<h1 class="charname" style="flex: 1; margin: 0; min-width: 0;"><input name="name" type="text" value="{{actor.name}}" placeholder="Name" {{#if isPlayMode}}disabled{{/if}} /></h1> <h1 class="charname" style="flex: 1; margin: 0; min-width: 0;"><input name="name" type="text" value="{{actor.name}}" placeholder="Name" {{#if isPlayMode}}disabled{{/if}} /></h1>
+1 -1
View File
@@ -4,7 +4,7 @@
<header class="sheet-header"> <header class="sheet-header">
<div class="header-fields background-sheet-header-creature"> <div class="header-fields background-sheet-header-creature">
<div class="flexrow"> <div class="flexrow">
<img class="profile-img" src="{{actor.img}}" data-action="editImage" title="{{actor.name}}" /> <img class="profile-img" src="{{actor.img}}" data-action="editImage" data-edit="img" title="{{actor.name}}" />
<div class="flexcol header-main-content"> <div class="flexcol header-main-content">
<div style="display: flex; align-items: center; gap: 0.3rem; width: 100%;"> <div style="display: flex; align-items: center; gap: 0.3rem; width: 100%;">
<h1 class="charname" style="flex: 1; margin: 0; min-width: 0;"><input name="name" type="text" value="{{actor.name}}" placeholder="Name" {{#if isPlayMode}}disabled{{/if}} /></h1> <h1 class="charname" style="flex: 1; margin: 0; min-width: 0;"><input name="name" type="text" value="{{actor.name}}" placeholder="Name" {{#if isPlayMode}}disabled{{/if}} /></h1>
+1
View File
@@ -4,6 +4,7 @@
class="item-sheet-img" class="item-sheet-img"
src="{{item.img}}" src="{{item.img}}"
data-action="editImage" data-action="editImage"
data-edit="img"
title="{{item.name}}" title="{{item.name}}"
/> />
<div class="header-fields"> <div class="header-fields">