11 Commits
Author SHA1 Message Date
Byroks 1723a4dd6b #23 Tooltip anpassungen & kleine margin änderungen
Foundry VTT System Release / build-and-release (push) Successful in 3m29s
2026-10-28 18:38:35 +01:00
Byroks d17cd3c9b6 #19 Auto öffne Items nach der erstellung auf dem Charakterbogen 2026-10-28 13:11:13 +01:00
Byroks 113315f68f #18 Nur ein icon für Zauberauswahl 2026-10-28 12:38:07 +01:00
Byroks 3406f2134c #14 Update Roll Dialog
+ Hintergrundfarbe für ausgewählte Spezialisierung & Würfel
+ Maximale Anzahl an Spezialisierungen festgelt + Setting
2026-10-28 12:29:17 +01:00
Byroks e8caa591c4 #20 Traglast Farben anpassung & Tooltip 2026-10-28 11:22:11 +01:00
Byroks 3448ce5a4c Fix leere bubbles bei Angriffwürfen 2026-10-28 10:27:20 +01:00
Byroks 70bc6873d7 Update translation
Es ist nicht möglich den Dropdown für Token Bars zu übersetzen da direkt die Daten pfade dafür angezeigt werden.
2026-10-28 10:16:52 +01:00
Byroks a4f8718bcd Verstecke active effects Tab 2026-10-28 08:57:52 +01:00
Byroks 64b98dd379 Gunst & Makel sind erstellbar auf Charakterbogen
Verhindere das collapsible getriggert wird wenn buttons auf dem item geclickt werden.
2026-10-28 08:28:41 +01:00
Byroks 7f9eda1c35 Fix rüstungsmerkmale update 2026-10-28 07:36:39 +01:00
Byroks bde7ea7e2e Assets werden beim release mit verpackt 2026-10-28 07:19:59 +01:00
24 changed files with 241 additions and 154 deletions

No files matched your search

+8 -1
View File
@@ -3,5 +3,12 @@
"singleQuote": false, "singleQuote": false,
"tabWidth": 2, "tabWidth": 2,
"printWidth": 100, "printWidth": 100,
"trailingComma": "none" "overrides": [
{
"files": "*.hbs",
"options": {
"parser": "glimmer"
}
}
]
} }
-15
View File
@@ -8,20 +8,5 @@ export default tseslint.config(
{ ignores: ["dist/**", "node_modules/**"] }, { ignores: ["dist/**", "node_modules/**"] },
js.configs.recommended, js.configs.recommended,
...tseslint.configs.recommended, ...tseslint.configs.recommended,
{
files: ["src/**/*.{ts,tsx}"],
plugins: { react },
languageOptions: {
globals: { ...globals.browser }
},
rules: {
...react.configs.recommended.rules,
"react/react-in-jsx-scope": "off",
"react/prop-types": "off"
},
settings: {
react: { version: "18.3" }
}
},
prettier prettier
); );
+9
View File
@@ -7,6 +7,7 @@
"Fertigkeit": "Fertigkeit", "Fertigkeit": "Fertigkeit",
"Stufe": "Stufe", "Stufe": "Stufe",
"Schicksalsmünzen": "Schicksalsmünzen", "Schicksalsmünzen": "Schicksalsmünzen",
"Traglast": "Traglast",
"Grad": { "Grad": {
"grad": "Grad", "grad": "Grad",
"frei": "frei", "frei": "frei",
@@ -98,6 +99,7 @@
"effects": "Effekte", "effects": "Effekte",
"zauber": "Zauber", "zauber": "Zauber",
"biographie": "Biographie", "biographie": "Biographie",
"beschreibung": "Beschreibung",
"hintergrund": "Hintergrund", "hintergrund": "Hintergrund",
"sperre": "Sperre" "sperre": "Sperre"
}, },
@@ -170,7 +172,14 @@
"beschreibungChatActive": { "beschreibungChatActive": {
"name": "Chat-Beschreibungen automatisch ausklappen", "name": "Chat-Beschreibungen automatisch ausklappen",
"hint": "Legt fest, ob Beschreibungen von Zaubern und Co. im Chat eingeklappt angezeigt werden oder vollständig." "hint": "Legt fest, ob Beschreibungen von Zaubern und Co. im Chat eingeklappt angezeigt werden oder vollständig."
},
"maxSpezialisierung": {
"name": "Maximale Anzahl an Spezialisierungen pro Skill",
"hint": "Legt die Maximale Anzahl der möglichen Spezialisierungen für einen Skill fest die man besitzen kann."
} }
},
"Warnings": {
"maxSpezReached": "Die Maximale Anzahl erlaubter Spezialisierungen für einen Skill sind erreicht"
} }
}, },
"TYPES": { "TYPES": {
+2 -1
View File
@@ -75,7 +75,8 @@ const filesToInclude = [
"system.json", "system.json",
"templates", "templates",
"dist", // Kopiert den gesamten Inhalt deines echten Vite-Build-Ordners mit in die Zip! "dist", // Kopiert den gesamten Inhalt deines echten Vite-Build-Ordners mit in die Zip!
"lang" "lang",
"assets"
]; ];
for (const file of filesToInclude) { for (const file of filesToInclude) {
+7 -7
View File
@@ -2,7 +2,7 @@ export const loadSettings = async function () {
game.settings.register("midgard6-lvd", "zauberAlsTag", { game.settings.register("midgard6-lvd", "zauberAlsTag", {
name: game.i18n.localize("Midgard6.Settings.zauberAlsTag.name"), name: game.i18n.localize("Midgard6.Settings.zauberAlsTag.name"),
hint: game.i18n.localize("Midgard6.Settings.zauberAlsTag.hint"), hint: game.i18n.localize("Midgard6.Settings.zauberAlsTag.hint"),
scope: "user", scope: "client",
config: true, config: true,
default: false, default: false,
type: Boolean, type: Boolean,
@@ -18,13 +18,13 @@ export const loadSettings = async function () {
type: Boolean type: Boolean
}); });
game.settings.register("midgard6-lvd", "beschreibungChatActive", { game.settings.register("midgard6-lvd", "maxSpezialisierung", {
name: game.i18n.localize("Midgard6.Settings.beschreibungChatActive.name"), name: game.i18n.localize("Midgard6.Settings.maxSpezialisierung.name"),
hint: game.i18n.localize("Midgard6.Settings.beschreibungChatActive.hint"), hint: game.i18n.localize("Midgard6.Settings.maxSpezialisierung.hint"),
scope: "client", scope: "world",
config: true, config: true,
default: false, default: 3,
type: Boolean type: Number
}); });
game.settings.register("midgard6-lvd", "colorSuccessBg", { game.settings.register("midgard6-lvd", "colorSuccessBg", {
+8 -8
View File
@@ -28,11 +28,11 @@ export class M6ArmorSheet extends M6ItemSheet {
{ {
id: "beschreibung", id: "beschreibung",
icon: "fa-feather-pointed" icon: "fa-feather-pointed"
},
{
id: "effects",
icon: "fa-bolt"
} }
// {
// id: "effects",
// icon: "fa-bolt"
// }
], ],
initial: "eigenschaften", initial: "eigenschaften",
labelPrefix: "Midgard6.Sheets.Tabs" labelPrefix: "Midgard6.Sheets.Tabs"
@@ -54,11 +54,11 @@ export class M6ArmorSheet extends M6ItemSheet {
beschreibung: { beschreibung: {
template: systemPath("templates/item/description.hbs"), template: systemPath("templates/item/description.hbs"),
scrollable: [""] scrollable: [""]
},
effects: {
template: systemPath("templates/shared/effects.hbs"),
scrollable: [""]
} }
// effects: {
// template: systemPath("templates/shared/effects.hbs"),
// scrollable: [""]
// }
}; };
static #cycleEquip() { static #cycleEquip() {
+14 -11
View File
@@ -66,11 +66,11 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
{ {
id: "biographie", id: "biographie",
icon: "fa-feather-pointed" icon: "fa-feather-pointed"
},
{
id: "effects",
icon: "fa-bolt"
} }
// {
// id: "effects",
// icon: "fa-bolt"
// }
], ],
initial: "eigenschaften", initial: "eigenschaften",
labelPrefix: "Midgard6.Sheets.Tabs" labelPrefix: "Midgard6.Sheets.Tabs"
@@ -106,11 +106,11 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
biographie: { biographie: {
template: systemPath("templates/actor/biographie.hbs"), template: systemPath("templates/actor/biographie.hbs"),
scrollable: [""] scrollable: [""]
},
effects: {
template: systemPath("templates/shared/effects.hbs"),
scrollable: [""]
} }
// effects: {
// template: systemPath("templates/shared/effects.hbs"),
// scrollable: [""]
// }
}; };
_attachPartListeners(partId, html, bubble) { _attachPartListeners(partId, html, bubble) {
@@ -123,11 +123,14 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
collapsible.forEach((node) => { collapsible.forEach((node) => {
node.addEventListener( node.addEventListener(
"click", "click",
function () { function (e) {
e = window.event || e;
if (this === e.target) {
node.classList.toggle("active"); node.classList.toggle("active");
var content = node.nextElementSibling; var content = node.nextElementSibling;
content.classList.toggle("active"); content.classList.toggle("active");
node.getElementsByTagName("i")[0].classList.toggle("fa-compress"); node.getElementsByTagName("i")[0].classList.toggle("fa-compress");
}
}, },
{ capture: true } { capture: true }
); );
@@ -163,7 +166,6 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
flags: this.actor.flags, flags: this.actor.flags,
config: CONFIG config: CONFIG
}); });
console.warn(context);
return context; return context;
} }
@@ -475,7 +477,8 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
if (["action", "documentClass"].includes(dataKey)) continue; if (["action", "documentClass"].includes(dataKey)) continue;
foundry.utils.setProperty(docData, dataKey, value); foundry.utils.setProperty(docData, dataKey, value);
} }
docCls.create(docData, { parent: this.actor }); const doc = await docCls.create(docData, { parent: this.actor });
doc.sheet.render(true);
} }
/* -------------------------------------------------- */ /* -------------------------------------------------- */
+17 -5
View File
@@ -302,32 +302,44 @@ async function rollDialog(rollDialogRequest) {
const dialogHTML = dialog.element; const dialogHTML = dialog.element;
const display = dialogHTML.querySelector("#rollDisplay"); const display = dialogHTML.querySelector("#rollDisplay");
let mainRoll = `1d20 + ${skillValue}`;
let spezText = "";
// Variable bei jeder Änderung aktualisieren // Variable bei jeder Änderung aktualisieren
document.querySelectorAll('input[name="vorteil-segment"]').forEach((radio) => { document.querySelectorAll('input[name="vorteil-segment"]').forEach((radio) => {
radio.addEventListener("change", (e) => { radio.addEventListener("change", (e) => {
vorteil = parseInt(e.target.value); vorteil = parseInt(e.target.value);
switch (vorteil) { switch (vorteil) {
case 1: case 1:
display.placeholder = `2d20kh + ${skillValue} (Vorteil)`; mainRoll = `2d20kh + ${skillValue} (Vorteil)`;
break; break;
case -1: case -1:
display.placeholder = `2d20kl + ${skillValue} (Nachteil)`; mainRoll = `2d20kl + ${skillValue} (Nachteil)`;
break; break;
default: default:
display.placeholder = `1d20 + ${skillValue}`; mainRoll = `1d20 + ${skillValue}`;
break; break;
} }
display.placeholder = mainRoll + spezText;
}); });
}); });
document.querySelectorAll('input[name="spezialisierung-segment"]').forEach((radio) => { document.querySelectorAll('input[name="spezialisierung-segment"]').forEach((radio) => {
radio.addEventListener("change", (e) => { radio.addEventListener("click", (e) => {
if (spezName !== e.target.dataset.name) {
spezLevel = parseInt(e.target.value); spezLevel = parseInt(e.target.value);
spezName = e.target.dataset.name; spezName = e.target.dataset.name;
spezText = ` + ${spezLevel + 1}`;
} else {
spezLevel = null;
spezName = null;
e.target.checked = false;
spezText = "";
}
display.placeholder = mainRoll + spezText;
}); });
if (radio.dataset.name === preSelectedSpez) { if (radio.dataset.name === preSelectedSpez) {
radio.click(); radio.click();
display.placeholder = mainRoll + spezText;
} }
}); });
}, },
@@ -6,7 +6,12 @@ export async function addSpezialisierung(event, target) {
const path = dataset.path.replace(".value", ""); const path = dataset.path.replace(".value", "");
const name = dataset.name; const name = dataset.name;
const skill = foundry.utils.getProperty(this.actor, path); const skill = foundry.utils.getProperty(this.actor, path);
const maxSpez = game.settings.get("midgard6-lvd", "maxSpezialisierung");
if (skill.bonuses.length >= maxSpez) {
ui.notifications.warn(game.i18n.localize("Midgard6.Warnings.maxSpezReached"));
return;
}
let level = 1; let level = 1;
const templatePath = systemPath("templates/dialog/spezialisierung-dialog.hbs"); const templatePath = systemPath("templates/dialog/spezialisierung-dialog.hbs");
+8 -8
View File
@@ -22,11 +22,11 @@ export class M6HintergrundSheet extends M6ItemSheet {
{ {
id: "beschreibung", id: "beschreibung",
icon: "fa-feather-pointed" icon: "fa-feather-pointed"
},
{
id: "effects",
icon: "fa-bolt"
} }
// {
// id: "effects",
// icon: "fa-bolt"
// }
], ],
initial: "beschreibung", initial: "beschreibung",
labelPrefix: "Midgard6.Sheets.Tabs" labelPrefix: "Midgard6.Sheets.Tabs"
@@ -44,11 +44,11 @@ export class M6HintergrundSheet extends M6ItemSheet {
beschreibung: { beschreibung: {
template: systemPath("templates/hintergrund/description.hbs"), template: systemPath("templates/hintergrund/description.hbs"),
scrollable: [""] scrollable: [""]
},
effects: {
template: systemPath("templates/shared/effects.hbs"),
scrollable: [""]
} }
// effects: {
// template: systemPath("templates/shared/effects.hbs"),
// scrollable: [""]
// }
}; };
_addSpecifics(context) { _addSpecifics(context) {
+10 -9
View File
@@ -38,11 +38,11 @@ export class M6ItemSheet extends api.HandlebarsApplicationMixin(sheets.ItemSheet
{ {
id: "beschreibung", id: "beschreibung",
icon: "fa-feather-pointed" icon: "fa-feather-pointed"
},
{
id: "effects",
icon: "fa-bolt"
} }
// {
// id: "effects",
// icon: "fa-bolt"
// }
], ],
initial: "beschreibung", initial: "beschreibung",
labelPrefix: "Midgard6.Sheets.Tabs" labelPrefix: "Midgard6.Sheets.Tabs"
@@ -62,11 +62,11 @@ export class M6ItemSheet extends api.HandlebarsApplicationMixin(sheets.ItemSheet
beschreibung: { beschreibung: {
template: systemPath("templates/item/description.hbs"), template: systemPath("templates/item/description.hbs"),
scrollable: [""] scrollable: [""]
},
effects: {
template: systemPath("templates/shared/effects.hbs"),
scrollable: [""]
} }
// effects: {
// template: systemPath("templates/shared/effects.hbs"),
// scrollable: [""]
// }
}; };
_attachPartListeners(partId, html, bubble) { _attachPartListeners(partId, html, bubble) {
@@ -88,8 +88,9 @@ export class M6ItemSheet extends api.HandlebarsApplicationMixin(sheets.ItemSheet
event.preventDefault(); event.preventDefault();
const currentInput = event.currentTarget; const currentInput = event.currentTarget;
const value = currentInput.value; const value = currentInput.value;
const location = currentInput.name || currentInput.id;
console.log("Feld verlassen! Aktueller Wert:", value); console.log("Feld verlassen! Aktueller Wert:", value);
this.item.update({ [`${currentInput.name}`]: value.split(/[\s,]+/) }); this.item.update({ [`${location}`]: value.split(/[\s,]+/) });
} }
/* -------------------------------------------------- */ /* -------------------------------------------------- */
+8 -8
View File
@@ -27,11 +27,11 @@ export class M6WeaponSheet extends M6ItemSheet {
{ {
id: "beschreibung", id: "beschreibung",
icon: "fa-feather-pointed" icon: "fa-feather-pointed"
},
{
id: "effects",
icon: "fa-bolt"
} }
// {
// id: "effects",
// icon: "fa-bolt"
// }
], ],
initial: "eigenschaften", initial: "eigenschaften",
labelPrefix: "Midgard6.Sheets.Tabs" labelPrefix: "Midgard6.Sheets.Tabs"
@@ -53,11 +53,11 @@ export class M6WeaponSheet extends M6ItemSheet {
beschreibung: { beschreibung: {
template: systemPath("templates/item/description.hbs"), template: systemPath("templates/item/description.hbs"),
scrollable: [""] scrollable: [""]
},
effects: {
template: systemPath("templates/shared/effects.hbs"),
scrollable: [""]
} }
// effects: {
// template: systemPath("templates/shared/effects.hbs"),
// scrollable: [""]
// }
}; };
async _addSpecifics(context) { async _addSpecifics(context) {
+6 -16
View File
@@ -59,22 +59,22 @@
} }
} }
/* Container für die gesamte Reihe */
.segmented-button-row { .segmented-button-row {
display: inline-flex; display: inline-flex;
overflow: hidden; overflow: visible;
height: 32px; height: 32px;
white-space: nowrap;
flex-wrap: wrap;
} }
/* Einzelnes Segment */
.segmented-button { .segmented-button {
position: relative; position: relative;
cursor: pointer; cursor: pointer;
display: flex; display: flex;
align-items: center; align-items: center;
height: 100%;
} }
/* Versteckt den echten Radio-Button, behält aber die Tastatur-Navigation */
.segmented-button input[type="radio"] { .segmented-button input[type="radio"] {
position: absolute; position: absolute;
opacity: 0; opacity: 0;
@@ -82,7 +82,6 @@
height: 0; height: 0;
} }
/* Inhalt des Segments (Layout & Abstände) */
.segmented-button__content { .segmented-button__content {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -96,19 +95,11 @@
user-select: none; user-select: none;
} }
/* --- ZUSTÄNDE --- */
/* Selektiert (Selected State) */
.segmented-button input[type="radio"]:checked + .segmented-button__content { .segmented-button input[type="radio"]:checked + .segmented-button__content {
// background-color: #e8def8; /* M3 Secondary Container Color */ background-color: var(--M6-background-brown);
text-shadow: 0 0 10px var(--M6-text-brown) !important; color: #1d192b;
color: #1d192b; /* M3 On-Secondary Container Text */
.icon {
text-shadow: 0 0 10px var(--M6-text-brown) !important;
}
} }
/* Hover-Effekt */
.segmented-button:hover .segmented-button__content { .segmented-button:hover .segmented-button__content {
background-color: rgba(73, 69, 79, 0.08); background-color: rgba(73, 69, 79, 0.08);
} }
@@ -116,7 +107,6 @@
background-color: rgba(232, 222, 248, 0.85); background-color: rgba(232, 222, 248, 0.85);
} }
/* Tastatur-Fokus (Barrierefreiheit) */
.segmented-button input[type="radio"]:focus-visible + .segmented-button__content { .segmented-button input[type="radio"]:focus-visible + .segmented-button__content {
outline: 2px solid #6750a4; outline: 2px solid #6750a4;
outline-offset: -2px; outline-offset: -2px;
+30 -14
View File
@@ -18,37 +18,53 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
z-index: 9999; /* Bleibt immer im Vordergrund */ z-index: 100;
}
.tooltip-wrapper {
position: relative;
width: 90%;
cursor: pointer;
} }
/* Der graue Hintergrund des Balkens */
.progress-background { .progress-background {
width: 90%; /* Breite des Balkens auf dem Bildschirm */ width: 100%;
max-width: 800px; /* Maximale Breite auf großen Bildschirmen */
background-color: #e0e0e0; background-color: #e0e0e0;
overflow: hidden; /* Schneidet den inneren Balken sauber ab */ overflow: hidden;
transform: skewX(-30deg); transform: skewX(-30deg);
} }
/* Der eigentliche, animierte Ladebalken */
.progress-bar { .progress-bar {
height: 20px; height: 20px;
background-color: var(--M6-background-brown); /* Grün */ background-color: #808080;
text-align: center;
line-height: 20px;
color: white;
font-size: 12px;
font-weight: bold;
width: 100%; width: 100%;
color: var(--M6-background-brown);
} }
progress::-moz-progress-bar { progress::-moz-progress-bar {
background: var(--M6-background-brown); background: var(--M6-background-brown);
} }
progress::-webkit-progress-value { progress::-webkit-progress-value {
background: var(--M6-background-brown); background: var(--M6-background-brown);
} }
progress {
color: var(--M6-background-brown); .tooltiptext {
visibility: hidden;
background-color: black;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 0;
position: absolute;
width: 130px;
bottom: 120%;
left: 50%;
margin-left: -65px;
z-index: 200;
}
.tooltip-wrapper:hover .tooltiptext {
visibility: visible;
} }
} }
} }
+13 -8
View File
@@ -17,28 +17,33 @@ import { M6ZauberSheet } from "./sheets/zauber-sheet.mjs";
import { M6HintergrundSheet } from "./sheets/hintergrund-sheet.mjs"; import { M6HintergrundSheet } from "./sheets/hintergrund-sheet.mjs";
import { M6ChatMessage } from "./ui/chat-message.mjs"; import { M6ChatMessage } from "./ui/chat-message.mjs";
import "./styles/M6.scss"; import "./styles/M6.scss";
import { localizeHelper } from "./helpers/utils.mjs";
Hooks.once("init", () => { Hooks.once("init", () => {
CONFIG.ChatMessage.documentClass = M6ChatMessage; CONFIG.ChatMessage.documentClass = M6ChatMessage;
CONFIG.ChatMessage.template = systemPath("templates/chat/message-default.hbs"); CONFIG.ChatMessage.template = systemPath("templates/chat/message-default.hbs");
CONFIG.Actor.dataModels.character = CharacterData; CONFIG.Actor.dataModels = {
character: CharacterData
};
CONFIG.Item.dataModels = {
item: ItemData,
geld: ItemData,
weapon: WeaponData,
armor: ArmorData,
zauber: ZauberData,
hintergrund: HintergrundData
};
CONFIG.Actor.trackableAttributes = { CONFIG.Actor.trackableAttributes = {
pc: { pc: {
bar: ["resources.leben", "resources.ausdauer"], bar: ["resources.leben", "resources.ausdauer"],
value: ["level"] value: ["schicksalsmünzen"]
}, },
npc: { npc: {
bar: ["resources.leben", "resources.ausdauer"], bar: ["resources.leben", "resources.ausdauer"],
value: [] value: []
} }
}; };
CONFIG.Item.dataModels.item = ItemData;
CONFIG.Item.dataModels.geld = ItemData;
CONFIG.Item.dataModels.weapon = WeaponData;
CONFIG.Item.dataModels.armor = ArmorData;
CONFIG.Item.dataModels.zauber = ZauberData;
CONFIG.Item.dataModels.hintergrund = HintergrundData;
foundry.applications.apps.DocumentSheetConfig.registerSheet(Actor, "midgard6-lvd", M6ActorSheet, { foundry.applications.apps.DocumentSheetConfig.registerSheet(Actor, "midgard6-lvd", M6ActorSheet, {
types: ["character"], types: ["character"],
+56 -2
View File
@@ -81,6 +81,22 @@
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-6">
{{#with itemTypes.gunst}} {{#with itemTypes.gunst}}
<div class="itemHeader" style="margin-bottom: 8px">
<div class="document-controls">
{{#if @root.editable}}
<a
class="item-control item-create"
title="{{localize 'DOCUMENT.Create' type=this.label}}"
data-action="createDoc"
data-document-class="Item"
data-type="gunst"
>
<i class="fas fa-plus"></i>
{{localize "DOCUMENT.Create" type=this.label}}
</a>
{{/if}}
</div>
</div>
{{#each this.items as |gunst|}} {{#each this.items as |gunst|}}
<div <div
class="collapsible" class="collapsible"
@@ -92,6 +108,13 @@
<div> <div>
<i class="fas fa-expand"></i> <i class="fas fa-expand"></i>
{{#if @root.editable}} {{#if @root.editable}}
<a
class="item-control item-edit"
title="{{localize 'DOCUMENT.Update' type=gunst.name}}"
data-action="viewDoc"
>
<i class="fas fa-edit"></i>
</a>
<a <a
class="item-control item-delete" class="item-control item-delete"
title="{{localize 'DOCUMENT.Delete' type=gunst.name}}" title="{{localize 'DOCUMENT.Delete' type=gunst.name}}"
@@ -112,6 +135,22 @@
</div> </div>
<div class="col-6"> <div class="col-6">
{{#with itemTypes.makel}} {{#with itemTypes.makel}}
<div class="itemHeader" style="margin-bottom: 8px">
<div class="document-controls">
{{#if @root.editable}}
<a
class="item-control item-create"
title="{{localize 'DOCUMENT.Create' type=this.label}}"
data-action="createDoc"
data-document-class="Item"
data-type="makel"
>
<i class="fas fa-plus"></i>
{{localize "DOCUMENT.Create" type=this.label}}
</a>
{{/if}}
</div>
</div>
{{#each this.items as |makel|}} {{#each this.items as |makel|}}
<div <div
type="button" type="button"
@@ -124,9 +163,16 @@
<div> <div>
<i class="fas fa-expand"></i> <i class="fas fa-expand"></i>
{{#if @root.editable}} {{#if @root.editable}}
<a
class="item-control item-edit"
title="{{localize 'DOCUMENT.Update' type=makel.name}}"
data-action="viewDoc"
>
<i class="fas fa-edit"></i>
</a>
<a <a
class="item-control item-delete" class="item-control item-delete"
title="{{localize 'DOCUMENT.Delete' type=gunst.name}}" title="{{localize 'DOCUMENT.Delete' type=makel.name}}"
style="z-index:9999" style="z-index:9999"
data-action="deleteDoc" data-action="deleteDoc"
> >
@@ -177,6 +223,8 @@
>{{legende.name}} >{{legende.name}}
<div> <div>
<i class="fas fa-expand"></i> <i class="fas fa-expand"></i>
{{#if @root.editable}}
<a <a
class="item-control item-edit" class="item-control item-edit"
title="{{localize 'DOCUMENT.Update' type=item.name}}" title="{{localize 'DOCUMENT.Update' type=item.name}}"
@@ -184,7 +232,6 @@
> >
<i class="fas fa-edit"></i> <i class="fas fa-edit"></i>
</a> </a>
{{#if @root.editable}}
<a <a
class="item-control item-delete" class="item-control item-delete"
title="{{localize 'DOCUMENT.Delete' type=legende.name}}" title="{{localize 'DOCUMENT.Delete' type=legende.name}}"
@@ -240,6 +287,13 @@
<div> <div>
<i class="fas fa-expand"></i> <i class="fas fa-expand"></i>
{{#if @root.editable}} {{#if @root.editable}}
<a
class="item-control item-edit"
title="{{localize 'DOCUMENT.Update' type=item.name}}"
data-action="viewDoc"
>
<i class="fas fa-edit"></i>
</a>
<a <a
class="item-control item-delete" class="item-control item-delete"
title="{{localize 'DOCUMENT.Delete' type=schicksalsgabe.name}}" title="{{localize 'DOCUMENT.Delete' type=schicksalsgabe.name}}"
+4
View File
@@ -226,6 +226,9 @@
</div> </div>
</ul> </ul>
<div class="sticky-progress-container"> <div class="sticky-progress-container">
<div class="tooltip-wrapper">
<span class="tooltiptext">{{localize "Midgard6.Traglast"}}: {{gewicht.gewicht}} / {{gewicht.traglast}}</span>
<div class="progress-background"> <div class="progress-background">
<progress <progress
class="progress-bar" class="progress-bar"
@@ -234,4 +237,5 @@
></progress> ></progress>
</div> </div>
</div> </div>
</div>
</section> </section>
+1 -1
View File
@@ -29,7 +29,7 @@
<p class="col-3" style="padding-top: 8px">{{zauber.name}}</p> <p class="col-3" style="padding-top: 8px">{{zauber.name}}</p>
<p class="col-3 item-name">{{zauber.system.eigenschaften.ursprung}}</p> <p class="col-3 item-name">{{zauber.system.eigenschaften.ursprung}}</p>
<p class="col-2 item-name">{{localize "Midgard6.Zauber.stufe"}} {{zauber.system.eigenschaften.stufe}}</p> <p class="col-2 item-name">{{localize "Midgard6.Zauber.stufe"}} {{zauber.system.eigenschaften.stufe}}</p>
<a class="align-self-center col-1 fa-solid {{#if zauber.system.equipped}}fa-book-open{{else}}fa-book{{/if}}" {{#unless @root.editable}}disabled{{/unless}} data-action="cycleEquip" data-item-id="{{zauber._id}}" style="{{#if zauber.system.equipped}}color: var(--M6-text-brown);{{/if}}"></a> <a class="align-self-center col-1 fa-solid fa-book-open" {{#unless @root.editable}}disabled{{/unless}} data-action="cycleEquip" data-item-id="{{zauber._id}}" style="{{#if zauber.system.equipped}}color: var(--M6-text-brown);{{/if}}"></a>
<a class="align-self-center col-2 fa-solid fa-dice-d20" data-action="rollSpell" {{#unless @root.editable}}disabled{{/unless}} data-name="{{zauber.name}}" data-item-id="{{zauber._id}}"></a> <a class="align-self-center col-2 fa-solid fa-dice-d20" data-action="rollSpell" {{#unless @root.editable}}disabled{{/unless}} data-name="{{zauber.name}}" data-item-id="{{zauber._id}}"></a>
<div class="col-1 d-flex document-controls" style="margin: 0.5rem 0; padding: 0"> <div class="col-1 d-flex document-controls" style="margin: 0.5rem 0; padding: 0">
{{#if @root.editable}} {{#if @root.editable}}
+2 -2
View File
@@ -28,13 +28,13 @@
{{/each}} {{/each}}
</div> </div>
{{/if}} {{/if}}
{{#if merkmale}}
<div class="tags"> <div class="tags">
{{#each merkmale as |merkmal|}} {{#each merkmale as |merkmal|}}
{{#if merkmal}}
<div class="tag">{{merkmal}}</div> <div class="tag">{{merkmal}}</div>
{{/if}}
{{/each}} {{/each}}
</div> </div>
{{/if}}
{{#if isRoll}} {{#if isRoll}}
{{#each message.content as |roll|}} {{#each message.content as |roll|}}
<fieldset> <fieldset>
+22 -29
View File
@@ -3,25 +3,23 @@
<legend>Modifikation</legend> <legend>Modifikation</legend>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
{{! <div class="d-flex align-items-center"> }} <div class="col-6" style="margin-bottom: 4px">
<div class="col-6">
<input <input
type="text" type="text"
style="margin-left: 8px;"
name="customRoll" name="customRoll"
id="rollDisplay" id="rollDisplay"
placeholder="1d20 + {{skillValue}}" placeholder="1d20 + {{skillValue}}"
value="{{customRoll}}" value="{{customRoll}}"
/> />
</div> </div>
<div class="d-flex col-6" style="padding-left: 8px;"> <div class="col-6" style="margin-bottom: 4px">
<div class="segmented-button-row"> <div class="segmented-button-row">
<!-- Option 1 --> <!-- Option 1 -->
<label class="segmented-button"> <label class="segmented-button">
<input type="radio" name="vorteil-segment" value="-1" /> <input type="radio" name="vorteil-segment" value="-1" />
<span class="segmented-button__content"> <span class="segmented-button__content">
<i class="icon fa-solid fa-arrow-down" style="color:red"></i> <i class="icon fa-solid fa-caret-down"></i>
<i class="icon fa-solid fa-dice-d20" style=""></i> <i class="icon fa-solid fa-dice-d20"></i>
</span> </span>
</label> </label>
@@ -29,7 +27,7 @@
<label class="segmented-button"> <label class="segmented-button">
<input type="radio" name="vorteil-segment" value="0" checked /> <input type="radio" name="vorteil-segment" value="0" checked />
<span class="segmented-button__content"> <span class="segmented-button__content">
<i class="icon fa-solid fa-dice-d20" style=""></i> <i class="icon fa-solid fa-dice-d20" ></i>
</span> </span>
</label> </label>
@@ -37,16 +35,25 @@
<label class="segmented-button"> <label class="segmented-button">
<input type="radio" name="vorteil-segment" value="1" /> <input type="radio" name="vorteil-segment" value="1" />
<span class="segmented-button__content"> <span class="segmented-button__content">
<i class="icon fa-solid fa-dice-d20" style=""></i> <i class="icon fa-solid fa-dice-d20"></i>
<i class="icon fa-solid fa-arrow-up" style="color:blue"></i> <i class="icon fa-solid fa-caret-up"></i>
</span> </span>
</label> </label>
</div> </div>
</div> </div>
{{! </div> }} <div class="col-6" style="margin-bottom: 4px">
<div class="col-12 d-flex"> {{#if damageRoll}}
<div class="flexrow" style="padding-left: 8px"> <input
type="text"
name="customRollDamage"
id="rollDamageDisplay"
placeholder="{{damageRoll}}"
value="{{customDamageRoll}}"
/>
{{/if}}
</div>
<div class="col-6 d-flex" style="margin-bottom: 4px">
<div class="segmented-button-row"> <div class="segmented-button-row">
<!-- Option 1 --> <!-- Option 1 -->
{{#each bonuses}} {{#each bonuses}}
@@ -66,26 +73,12 @@
{{/each}} {{/each}}
</div> </div>
</div> </div>
</div> <div class="col-6" style="margin-bottom: 4px">
{{#if damageRoll}} <select name="rollMode" data-type="String">
<div class="col-6">
<input
type="text"
style="margin-left: 8px;"
name="customRollDamage"
id="rollDamageDisplay"
placeholder="{{damageRoll}}"
value="{{customDamageRoll}}"
/>
</div>
{{/if}}
</div>
<div class="d-flex">
<select style="max-width: 15rem; margin-left: 8px" name="rollMode" data-type="String">
{{selectOptions rollModes selected=rollMode localize=true}} {{selectOptions rollModes selected=rollMode localize=true}}
</select> </select>
</div> </div>
</div> </div>
</div>
</fieldset> </fieldset>
</section> </section>
+3 -1
View File
@@ -24,6 +24,7 @@
<input class="right" type="text" placeholder="{{localize "Midgard6.Hintergrund.gruppe"}}" name="system.gruppe" value="{{system.gruppe}}" /> <input class="right" type="text" placeholder="{{localize "Midgard6.Hintergrund.gruppe"}}" name="system.gruppe" value="{{system.gruppe}}" />
</div> </div>
<div class="col-6"> <div class="col-6">
{{#ifeq item.type "legende"}}
<select <select
class="text right" class="text right"
style="text-align: right" style="text-align: right"
@@ -32,13 +33,14 @@
id="linkId" id="linkId"
placeholder="{{system.linkId}}" placeholder="{{system.linkId}}"
> >
<option {{#unless system.linkId}}selected{{/unless}}value=""></option> <option {{#unless system.linkId}}selected{{/unless}}value="">Keine Schicksalsgabe</option>
{{#each schicksalsgaben as |schicksalsgabe|}} {{#each schicksalsgaben as |schicksalsgabe|}}
<option {{#ifeq schicksalsgabe.id ../system.linkId}}selected{{/ifeq}} value="{{schicksalsgabe.id}}"> <option {{#ifeq schicksalsgabe.id ../system.linkId}}selected{{/ifeq}} value="{{schicksalsgabe.id}}">
{{schicksalsgabe.name}} {{schicksalsgabe.name}}
</option> </option>
{{/each}} {{/each}}
</select> </select>
{{/ifeq}}
</div> </div>
</div> </div>
+1 -1
View File
@@ -20,7 +20,7 @@
</div> </div>
<div class="col-6"> <div class="col-6">
<input class="custom-input right text" type="number" placeholder="{{localize "Midgard6.Gegenstand.anzahl"}}" name="system.anzahl" value="{{item.system.anzahl}}" /> <input class="custom-input right text" type="number" placeholder="{{localize "Midgard6.Gegenstand.anzahl"}}" name="system.anzahl" value="{{item.system.anzahl}}" />
<i class="fa-solid fa-sack-dollar input-icon left"></i> <i class="input-icon right" style="right: 26px; top: 45%">x</i>
</div> </div>
<div class="col-6"> <div class="col-6">
<input class="custom-input left text" type="number" placeholder="{{localize "Midgard6.Gegenstand.wert"}}" name="system.wert" value="{{item.system.wert}}" /> <input class="custom-input left text" type="number" placeholder="{{localize "Midgard6.Gegenstand.wert"}}" name="system.wert" value="{{item.system.wert}}" />
+1 -1
View File
@@ -8,7 +8,7 @@
<legend>{{localize "Midgard6.Item.Eigenschaften"}}</legend> <legend>{{localize "Midgard6.Item.Eigenschaften"}}</legend>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-6" style="margin-bottom: 4px">
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
<p>{{localize "Midgard6.Item.rüstwert"}}</p> <p>{{localize "Midgard6.Item.rüstwert"}}</p>
<input <input
+6 -6
View File
@@ -8,7 +8,7 @@
<legend>{{localize "Midgard6.Item.Eigenschaften"}}</legend> <legend>{{localize "Midgard6.Item.Eigenschaften"}}</legend>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-6" style="margin-bottom: 4px">
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
<p>{{localize "Midgard6.Item.schaden"}}</p> <p>{{localize "Midgard6.Item.schaden"}}</p>
<input <input
@@ -22,7 +22,7 @@
</div> </div>
</div> </div>
<div class="col-6"></div> <div class="col-6"></div>
<div class="col-6"> <div class="col-6" style="margin-bottom: 4px">
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
<p>{{localize "Midgard6.Item.fertigkeit"}}</p> <p>{{localize "Midgard6.Item.fertigkeit"}}</p>
<select <select
@@ -31,7 +31,7 @@
name="system.fertigkeit" name="system.fertigkeit"
id="fertigkeit" id="fertigkeit"
placeholder="Nahkampf" placeholder="Nahkampf"
/> >
<option {{#ifeq system.fertigkeit "system.skills.kampf.fernkampf"}}selected{{/ifeq}} value="system.skills.kampf.fernkampf">{{localize <option {{#ifeq system.fertigkeit "system.skills.kampf.fernkampf"}}selected{{/ifeq}} value="system.skills.kampf.fernkampf">{{localize
"Midgard6.Skills.fernkampf" "Midgard6.Skills.fernkampf"
}}</option> }}</option>
@@ -50,8 +50,8 @@
name="system.spezialisierung" name="system.spezialisierung"
id="system.spezialisierung" id="system.spezialisierung"
placeholder="" placeholder=""
/> >
<option {{#ifeq system.spezialisierung ""}}selected{{/ifeq}} value=""></option> <option {{#ifeq system.spezialisierung ""}}selected{{/ifeq}} value="">Keine Spezialisierung</option>
{{#each bonuses as |bonus|}} {{#each bonuses as |bonus|}}
<option {{#ifeq bonus.name ../system.spezialisierung}}selected{{/ifeq}} value="{{bonus.name}}"> <option {{#ifeq bonus.name ../system.spezialisierung}}selected{{/ifeq}} value="{{bonus.name}}">
{{bonus.name}} {{bonus.name}}
@@ -63,7 +63,7 @@
<div class="col-12"> <div class="col-12">
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
<p>{{localize "Midgard6.Item.waffenmerkmale"}}</p> <p>{{localize "Midgard6.Item.waffenmerkmale"}}</p>
<input style="margin-left: 8px;" type="text" data-action="splitIntoArray" id="merkmale" name="system.merkmale" list="merkmalOptions" value="{{splitArray system.merkmale}}"> <input style="margin-left: 8px;" type="text" data-action="splitIntoArray" id="system.merkmale" name="system.merkmale" value="{{splitArray system.merkmale}}">
</div> </div>
</div> </div>
</div> </div>