Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1723a4dd6b | ||
|
|
d17cd3c9b6 | ||
|
|
113315f68f | ||
|
|
3406f2134c | ||
|
|
e8caa591c4 | ||
|
|
3448ce5a4c | ||
|
|
70bc6873d7 | ||
|
|
a4f8718bcd | ||
|
|
64b98dd379 | ||
|
|
7f9eda1c35 | ||
|
|
bde7ea7e2e |
No files matched your search
+8
-1
@@ -3,5 +3,12 @@
|
|||||||
"singleQuote": false,
|
"singleQuote": false,
|
||||||
"tabWidth": 2,
|
"tabWidth": 2,
|
||||||
"printWidth": 100,
|
"printWidth": 100,
|
||||||
"trailingComma": "none"
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": "*.hbs",
|
||||||
|
"options": {
|
||||||
|
"parser": "glimmer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
@@ -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
|
||||||
);
|
);
|
||||||
@@ -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
@@ -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) {
|
||||||
|
|||||||
@@ -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", {
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
@@ -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) {
|
||||||
node.classList.toggle("active");
|
e = window.event || e;
|
||||||
var content = node.nextElementSibling;
|
if (this === e.target) {
|
||||||
content.classList.toggle("active");
|
node.classList.toggle("active");
|
||||||
node.getElementsByTagName("i")[0].classList.toggle("fa-compress");
|
var content = node.nextElementSibling;
|
||||||
|
content.classList.toggle("active");
|
||||||
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------------- */
|
/* -------------------------------------------------- */
|
||||||
|
|||||||
@@ -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) => {
|
||||||
spezLevel = parseInt(e.target.value);
|
if (spezName !== e.target.dataset.name) {
|
||||||
spezName = e.target.dataset.name;
|
spezLevel = parseInt(e.target.value);
|
||||||
|
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");
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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,]+/) });
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------------- */
|
/* -------------------------------------------------- */
|
||||||
|
|||||||
@@ -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
@@ -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
@@ -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
@@ -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"],
|
||||||
|
|||||||
@@ -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,14 +223,15 @@
|
|||||||
>{{legende.name}}
|
>{{legende.name}}
|
||||||
<div>
|
<div>
|
||||||
<i class="fas fa-expand"></i>
|
<i class="fas fa-expand"></i>
|
||||||
<a
|
|
||||||
class="item-control item-edit"
|
|
||||||
title="{{localize 'DOCUMENT.Update' type=item.name}}"
|
|
||||||
data-action="viewDoc"
|
|
||||||
>
|
|
||||||
<i class="fas fa-edit"></i>
|
|
||||||
</a>
|
|
||||||
{{#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=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}}"
|
||||||
|
|||||||
@@ -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>
|
||||||
@@ -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}}
|
||||||
|
|||||||
@@ -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>
|
||||||
{{/each}}
|
{{/if}}
|
||||||
</div>
|
{{/each}}
|
||||||
{{/if}}
|
</div>
|
||||||
{{#if isRoll}}
|
{{#if isRoll}}
|
||||||
{{#each message.content as |roll|}}
|
{{#each message.content as |roll|}}
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
|||||||
@@ -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,55 +35,50 @@
|
|||||||
<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">
|
|
||||||
<div class="segmented-button-row">
|
|
||||||
<!-- Option 1 -->
|
|
||||||
{{#each bonuses}}
|
|
||||||
<label class="segmented-button">
|
|
||||||
<input
|
|
||||||
type="radio"
|
|
||||||
name="spezialisierung-segment"
|
|
||||||
value="{{level}}"
|
|
||||||
data-name="{{name}}"
|
|
||||||
{{#ifeq name preSelectedSpez}}checked{{/ifeq}}
|
|
||||||
/>
|
|
||||||
<span class="segmented-button__content">
|
|
||||||
{{name}}:
|
|
||||||
{{level}}
|
|
||||||
</span>
|
|
||||||
</label>
|
|
||||||
{{/each}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{#if damageRoll}}
|
|
||||||
<div class="col-6">
|
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
style="margin-left: 8px;"
|
|
||||||
name="customRollDamage"
|
name="customRollDamage"
|
||||||
id="rollDamageDisplay"
|
id="rollDamageDisplay"
|
||||||
placeholder="{{damageRoll}}"
|
placeholder="{{damageRoll}}"
|
||||||
value="{{customDamageRoll}}"
|
value="{{customDamageRoll}}"
|
||||||
/>
|
/>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
<div class="col-6 d-flex" style="margin-bottom: 4px">
|
||||||
</div>
|
<div class="segmented-button-row">
|
||||||
<div class="d-flex">
|
<!-- Option 1 -->
|
||||||
<select style="max-width: 15rem; margin-left: 8px" name="rollMode" data-type="String">
|
{{#each bonuses}}
|
||||||
{{selectOptions rollModes selected=rollMode localize=true}}
|
<label class="segmented-button">
|
||||||
</select>
|
<input
|
||||||
|
type="radio"
|
||||||
|
name="spezialisierung-segment"
|
||||||
|
value="{{level}}"
|
||||||
|
data-name="{{name}}"
|
||||||
|
{{#ifeq name preSelectedSpez}}checked{{/ifeq}}
|
||||||
|
/>
|
||||||
|
<span class="segmented-button__content">
|
||||||
|
{{name}}:
|
||||||
|
{{level}}
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-6" style="margin-bottom: 4px">
|
||||||
|
<select name="rollMode" data-type="String">
|
||||||
|
{{selectOptions rollModes selected=rollMode localize=true}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</section>
|
</section>
|
||||||
@@ -24,21 +24,23 @@
|
|||||||
<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">
|
||||||
<select
|
{{#ifeq item.type "legende"}}
|
||||||
class="text right"
|
<select
|
||||||
style="text-align: right"
|
class="text right"
|
||||||
name="system.linkId"
|
style="text-align: right"
|
||||||
value="{{system.linkId}}"
|
name="system.linkId"
|
||||||
id="linkId"
|
value="{{system.linkId}}"
|
||||||
placeholder="{{system.linkId}}"
|
id="linkId"
|
||||||
>
|
placeholder="{{system.linkId}}"
|
||||||
<option {{#unless system.linkId}}selected{{/unless}}value=""></option>
|
>
|
||||||
{{#each schicksalsgaben as |schicksalsgabe|}}
|
<option {{#unless system.linkId}}selected{{/unless}}value="">Keine Schicksalsgabe</option>
|
||||||
<option {{#ifeq schicksalsgabe.id ../system.linkId}}selected{{/ifeq}} value="{{schicksalsgabe.id}}">
|
{{#each schicksalsgaben as |schicksalsgabe|}}
|
||||||
{{schicksalsgabe.name}}
|
<option {{#ifeq schicksalsgabe.id ../system.linkId}}selected{{/ifeq}} value="{{schicksalsgabe.id}}">
|
||||||
</option>
|
{{schicksalsgabe.name}}
|
||||||
{{/each}}
|
</option>
|
||||||
</select>
|
{{/each}}
|
||||||
|
</select>
|
||||||
|
{{/ifeq}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -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}}" />
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<input class="custom-input right text" type="number" placeholder="{{localize "Midgard6.Gegenstand.gewicht"}}" name="system.gewicht" value="{{item.system.gewicht}}" />
|
<input class="custom-input right text" type="number" placeholder="{{localize "Midgard6.Gegenstand.gewicht"}}" name="system.gewicht" value="{{item.system.gewicht}}" />
|
||||||
<i class="fa-solid fa-weight-hanging input-icon right"></i>
|
<i class="fa-solid fa-weight-hanging input-icon right"></i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in new issue
Block a user