fixes v12

This commit is contained in:
rwanoux
2024-06-24 08:41:59 +02:00
parent 9d74f5fe14
commit f4a56aa6b0
61 changed files with 485 additions and 422 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
### les jets de dés
- [ ] redesign de rollDialog => <details>+<sumary>=> rendre moins dense
- [ ] redesign de rollDialog => `<details>+<sumary>`=> rendre moins dense
- [ ] envoyer les spécialités utilisables au rollDialog
- [ ] envoyer les items utilisables au rollDialog
- [ ] gérer le fait de choisir quel totem garder : recalcul des réussites
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -27,7 +27,7 @@ exports.watch = function () {
{
server: false,
proxy: {
target: "https://localhost:443/",
target: "https://localhost:30000/",
ws: true,
}
+1 -1
View File
@@ -9,7 +9,7 @@ export class VermineActorSheet extends ActorSheet {
/** @override */
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
return foundry.utils.mergeObject(super.defaultOptions, {
/*classes: ["vermine2047", "sheet", "actor"],
template: "systems/vermine2047/templates/actor/actor-sheet.hbs",
height: 800,
+1 -1
View File
@@ -11,7 +11,7 @@ export class VermineCharacterSheet extends VermineActorSheet {
/** @override */
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
return foundry.utils.mergeObject(super.defaultOptions, {
classes: ["vermine2047", "sheet", "character", "actor"],
template: "systems/vermine2047/templates/actor/actor-sheet.hbs",
width: "fit-content",
+1 -1
View File
@@ -9,7 +9,7 @@ export class VermineCreatureSheet extends VermineActorSheet {
/** @override */
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
return foundry.utils.mergeObject(super.defaultOptions, {
classes: ["vermine2047", "sheet", "actor", "creature"],
template: "systems/vermine2047/templates/actor/actor-sheet.hbs",
width: 300,
+1 -1
View File
@@ -6,7 +6,7 @@ export class VermineItemSheet extends ItemSheet {
/** @override */
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
return foundry.utils.mergeObject(super.defaultOptions, {
classes: ["vermine2047", "sheet", "item"],
width: "fit-content",
height: "auto",
+3 -10
View File
@@ -10,7 +10,7 @@ export class VermineGroupSheet extends VermineActorSheet {
/** @override */
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
return foundry.utils.mergeObject(super.defaultOptions, {
classes: ["vermine2047", "sheet", "actor", "group"],
template: "systems/vermine2047/templates/actor/actor-sheet.hbs",
width: 500,
@@ -101,16 +101,9 @@ export class VermineGroupSheet extends VermineActorSheet {
context.totem_abilities = this.actor.itemTypes['ability'].filter(i => i.system.type === 'totem');
context.abilities = this.actor.itemTypes['ability'].filter(i => i.system.type !== 'totem');
context.members = [];
context.encounters = [];
context.members = this.actor.system.members;
context.encounters = this.actor.system.encounters;
for (let memberId of context.actor.system.members) {
context.members.push(game.actors.get(memberId));
}
for (let encounterId of context.actor.system.encounters) {
context.encounters.push(game.actors.get(encounterId));
}
}
+1 -1
View File
@@ -9,7 +9,7 @@ export class VermineNpcSheet extends VermineActorSheet {
/** @override */
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
return foundry.utils.mergeObject(super.defaultOptions, {
classes: ["vermine2047", "sheet", "actor", "npc"],
template: "systems/vermine2047/templates/actor/actor-sheet.hbs",
width: 400,
+8 -14
View File
@@ -9,7 +9,7 @@ export class TotemPicker extends Application {
/* -------------------------------------------- */
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
return foundry.utils.mergeObject(super.defaultOptions, {
id: "TOTEM_PICKER",
title: game.i18n.localize("VERMINE.totem_picker"),
template: 'systems/vermine2047/templates/applications/choose-totem.hbs',
@@ -24,12 +24,6 @@ export class TotemPicker extends Application {
// Send data to the template
return {
config: CONFIG.VERMINE,
/*anarchy: this.gmAnarchy.getAnarchy(),
convergences: this.gmConvergence.getConvergences(),
difficultyPools: this.gmDifficulty.getDifficultyData(),
options: {
classes: [game.system.anarchy.styles.selectCssClass()]
}*/
}
}
@@ -61,7 +55,7 @@ export class ActorPicker extends Application {
/* -------------------------------------------- */
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
return foundry.utils.mergeObject(super.defaultOptions, {
id: "ACTOR_PICKER",
title: game.i18n.localize("VERMINE.actor_picker"),
template: 'systems/vermine2047/templates/applications/choose-actor.hbs',
@@ -78,16 +72,16 @@ export class ActorPicker extends Application {
// Send data to the template
const npcs = game.actors.filter(a => a.type == "npc");
const characters = game.actors.filter(a => a.type == "character");
const encounters = game.actors.filter(a => a.type == "npc" || a.type == 'character');
const all = game.actors.filter(a => a.type == "npc" || a.type == 'character');
const type = $(this.linkEl).data('type');
let actorsList = [];
if (type == 'members') {
actorsList = characters;
} else if (type == 'relations') {
actorsList = npc;
actorsList = npc;//[...npc, ...characters];
} else {
actorsList = encounters;
actorsList = all;
}
return {
config: CONFIG.VERMINE,
@@ -95,10 +89,10 @@ export class ActorPicker extends Application {
}
}
activateListeners(html) {
async activateListeners(html) {
super.activateListeners(html);
html.find('.actor').click(event => {
const actorId = $(event.target).parent('div').data('id');
html.find('.actor').click(async (event) => {
const actorId = $(event.target).parent('div').data('actor-id');
const type = $(this.linkEl).data('type');
let actorsList = [];
+1 -1
View File
@@ -5,7 +5,7 @@
export async function initUserDice(dice3d, user) {
let baseColor = user.color;
let baseColor = user.color.css;
dice3d.addColorset({
name: 'regular_' + user.name,
description: "regular dice for " + user.name,
+1 -1
View File
@@ -42,7 +42,7 @@ export const registerHooks = function () {
if (rerollTitle) {
rerollTitle.addEventListener("click", () => { html[0].querySelector(".reroll").classList.toggle('visible') })
}
if (message.user._id != game.user._id || !game.user.isGM) {
if (message.author._id != game.user._id || !game.user.isGM) {
html[0].querySelectorAll("input").forEach(inp => inp.disabled = true);
html[0].querySelectorAll("div.reroll-from-effort").forEach(el => el.style.display = "none")
return
+1 -1
View File
@@ -15,7 +15,7 @@ class CreateActorDialog extends FormApplication {
async _updateObject() {
}
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
return foundry.utils.mergeObject(super.defaultOptions, {
title: game.i18n.format("DOCUMENT.Create", {
type: game.i18n.localize("DOCUMENT.Actor")
}),
+1 -1
View File
@@ -36,7 +36,7 @@ Hooks.once('init', async function () {
// Add custom constants for configuration.
CONFIG.VERMINE = VERMINE;
CONFIG.VERMINE.model = game.system.model
CONFIG.VERMINE.model = game.system.template
/**
* Set an initiative formula for the system
* @type {String}
+1
View File
@@ -6,6 +6,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"launch window Foundry11": "cd C:/Program Files/Foundry Virtual Tabletop_V11/resources/app && node main.js",
"launch Foundry12": "cd C:/Program Files/Foundry Virtual Tabletop_V12/resources/app && node main.js",
"watch": "gulp watch",
"buildStyle": "gulp buildStyles"
},
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000219
MANIFEST-000233
+3 -5
View File
@@ -1,5 +1,3 @@
2024/05/15-08:44:33.750 2d0c Recovering log #220
2024/05/15-08:44:33.750 2d0c Recovering log #222
2024/05/15-08:44:33.755 2d0c Delete type=0 #220
2024/05/15-08:44:33.755 2d0c Delete type=0 #222
2024/05/15-08:44:33.756 2d0c Delete type=3 #219
2024/06/24-07:16:50.211 a308 Recovering log #231
2024/06/24-07:16:50.217 a308 Delete type=0 #231
2024/06/24-07:16:50.217 a308 Delete type=3 #229
+7 -3
View File
@@ -1,3 +1,7 @@
2024/05/13-06:37:40.648 22bc Recovering log #216
2024/05/13-06:37:40.650 22bc Delete type=0 #216
2024/05/13-06:37:40.650 22bc Delete type=3 #215
2024/05/17-09:03:17.265 6020 Recovering log #227
2024/05/17-09:03:17.270 6020 Delete type=0 #227
2024/05/17-09:03:17.270 6020 Delete type=3 #225
2024/05/17-09:03:22.858 1b1c Level-0 table #232: started
2024/05/17-09:03:22.858 1b1c Level-0 table #232: 0 bytes OK
2024/05/17-09:03:22.859 1b1c Delete type=0 #230
2024/05/17-09:03:22.876 1b1c Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end)
Binary file not shown.
View File
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000219
MANIFEST-000233
+3 -5
View File
@@ -1,5 +1,3 @@
2024/05/15-08:44:33.925 2d0c Recovering log #220
2024/05/15-08:44:33.925 2d0c Recovering log #222
2024/05/15-08:44:33.932 2d0c Delete type=0 #220
2024/05/15-08:44:33.932 2d0c Delete type=0 #222
2024/05/15-08:44:33.932 2d0c Delete type=3 #219
2024/06/24-07:16:50.399 b264 Recovering log #231
2024/06/24-07:16:50.405 b264 Delete type=0 #231
2024/06/24-07:16:50.405 b264 Delete type=3 #229
+7 -3
View File
@@ -1,3 +1,7 @@
2024/05/13-06:37:40.710 22bc Recovering log #216
2024/05/13-06:37:40.714 22bc Delete type=0 #216
2024/05/13-06:37:40.715 22bc Delete type=3 #215
2024/05/17-09:03:17.424 6020 Recovering log #227
2024/05/17-09:03:17.430 6020 Delete type=0 #227
2024/05/17-09:03:17.430 6020 Delete type=3 #225
2024/05/17-09:03:22.901 1b1c Level-0 table #232: started
2024/05/17-09:03:22.902 1b1c Level-0 table #232: 0 bytes OK
2024/05/17-09:03:22.903 1b1c Delete type=0 #230
2024/05/17-09:03:22.904 1b1c Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end)
Binary file not shown.
View File
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000203
MANIFEST-000217
+3 -5
View File
@@ -1,5 +1,3 @@
2024/05/15-08:44:33.802 2d0c Recovering log #204
2024/05/15-08:44:33.802 2d0c Recovering log #206
2024/05/15-08:44:33.808 2d0c Delete type=0 #204
2024/05/15-08:44:33.808 2d0c Delete type=0 #206
2024/05/15-08:44:33.808 2d0c Delete type=3 #203
2024/06/24-07:16:50.274 b264 Recovering log #215
2024/06/24-07:16:50.279 b264 Delete type=0 #215
2024/06/24-07:16:50.279 b264 Delete type=3 #213
+7 -3
View File
@@ -1,3 +1,7 @@
2024/05/13-06:37:40.667 22bc Recovering log #200
2024/05/13-06:37:40.671 22bc Delete type=0 #200
2024/05/13-06:37:40.671 22bc Delete type=3 #199
2024/05/17-09:03:17.320 6020 Recovering log #211
2024/05/17-09:03:17.326 6020 Delete type=0 #211
2024/05/17-09:03:17.326 6020 Delete type=3 #209
2024/05/17-09:03:22.892 1b1c Level-0 table #216: started
2024/05/17-09:03:22.892 1b1c Level-0 table #216: 0 bytes OK
2024/05/17-09:03:22.893 1b1c Delete type=0 #214
2024/05/17-09:03:22.895 1b1c Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end)
Binary file not shown.
View File
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000217
MANIFEST-000231
+3 -5
View File
@@ -1,5 +1,3 @@
2024/05/15-08:44:33.906 4440 Recovering log #218
2024/05/15-08:44:33.907 4440 Recovering log #220
2024/05/15-08:44:33.912 4440 Delete type=0 #218
2024/05/15-08:44:33.912 4440 Delete type=0 #220
2024/05/15-08:44:33.912 4440 Delete type=3 #217
2024/06/24-07:16:50.377 b728 Recovering log #229
2024/06/24-07:16:50.382 b728 Delete type=0 #229
2024/06/24-07:16:50.382 b728 Delete type=3 #227
+7 -3
View File
@@ -1,3 +1,7 @@
2024/05/13-06:37:40.698 331c Recovering log #214
2024/05/13-06:37:40.703 331c Delete type=0 #214
2024/05/13-06:37:40.703 331c Delete type=3 #213
2024/05/17-09:03:17.407 3604 Recovering log #225
2024/05/17-09:03:17.412 3604 Delete type=0 #225
2024/05/17-09:03:17.412 3604 Delete type=3 #223
2024/05/17-09:03:22.896 1b1c Level-0 table #230: started
2024/05/17-09:03:22.896 1b1c Level-0 table #230: 0 bytes OK
2024/05/17-09:03:22.898 1b1c Delete type=0 #228
2024/05/17-09:03:22.904 1b1c Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end)
Binary file not shown.
View File
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000113
MANIFEST-000127
+3 -5
View File
@@ -1,5 +1,3 @@
2024/05/15-08:44:33.840 4440 Recovering log #114
2024/05/15-08:44:33.840 4440 Recovering log #116
2024/05/15-08:44:33.847 4440 Delete type=0 #114
2024/05/15-08:44:33.847 4440 Delete type=0 #116
2024/05/15-08:44:33.847 4440 Delete type=3 #113
2024/06/24-07:16:50.305 96dc Recovering log #125
2024/06/24-07:16:50.311 96dc Delete type=0 #125
2024/06/24-07:16:50.311 96dc Delete type=3 #123
+8 -3
View File
@@ -1,3 +1,8 @@
2024/05/13-06:37:40.677 331c Recovering log #110
2024/05/13-06:37:40.682 331c Delete type=0 #110
2024/05/13-06:37:40.682 331c Delete type=3 #109
2024/05/17-09:03:17.348 3604 Recovering log #121
2024/05/17-09:03:17.353 3604 Delete type=0 #121
2024/05/17-09:03:17.353 3604 Delete type=3 #119
2024/05/17-09:03:22.893 1b1c Level-0 table #126: started
2024/05/17-09:03:22.893 1b1c Level-0 table #126: 0 bytes OK
2024/05/17-09:03:22.895 1b1c Delete type=0 #124
2024/05/17-09:03:22.895 1b1c Manual compaction at level-0 from '!items!10vhNURxl8FOwfy0' @ 72057594037927935 : 1 .. '!items!vX832Z4LpasxLIIx' @ 0 : 0; will stop at (end)
2024/05/17-09:03:22.895 1b1c Manual compaction at level-1 from '!items!10vhNURxl8FOwfy0' @ 72057594037927935 : 1 .. '!items!vX832Z4LpasxLIIx' @ 0 : 0; will stop at (end)
Binary file not shown.
View File
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000110
MANIFEST-000124
+3 -5
View File
@@ -1,5 +1,3 @@
2024/05/15-08:44:33.882 2d0c Recovering log #111
2024/05/15-08:44:33.882 2d0c Recovering log #113
2024/05/15-08:44:33.888 2d0c Delete type=0 #111
2024/05/15-08:44:33.888 2d0c Delete type=0 #113
2024/05/15-08:44:33.889 2d0c Delete type=3 #110
2024/06/24-07:16:50.355 a308 Recovering log #122
2024/06/24-07:16:50.360 a308 Delete type=0 #122
2024/06/24-07:16:50.360 a308 Delete type=3 #120
+8 -3
View File
@@ -1,3 +1,8 @@
2024/05/13-06:37:40.684 22bc Recovering log #107
2024/05/13-06:37:40.693 22bc Delete type=0 #107
2024/05/13-06:37:40.693 22bc Delete type=3 #106
2024/05/17-09:03:17.381 6020 Recovering log #118
2024/05/17-09:03:17.386 6020 Delete type=0 #118
2024/05/17-09:03:17.387 6020 Delete type=3 #116
2024/05/17-09:03:22.898 1b1c Level-0 table #123: started
2024/05/17-09:03:22.898 1b1c Level-0 table #123: 0 bytes OK
2024/05/17-09:03:22.901 1b1c Delete type=0 #121
2024/05/17-09:03:22.904 1b1c Manual compaction at level-0 from '!tables!UxgGMRs0kTplpTbe' @ 72057594037927935 : 1 .. '!tables.results!dXo0EN9ieo1tSnRY.ymnitiW2yAuk75M3' @ 0 : 0; will stop at (end)
2024/05/17-09:03:22.904 1b1c Manual compaction at level-1 from '!tables!UxgGMRs0kTplpTbe' @ 72057594037927935 : 1 .. '!tables.results!dXo0EN9ieo1tSnRY.ymnitiW2yAuk75M3' @ 0 : 0; will stop at (end)
Binary file not shown.
View File
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000217
MANIFEST-000231
+3 -5
View File
@@ -1,5 +1,3 @@
2024/05/15-08:44:33.775 4440 Recovering log #218
2024/05/15-08:44:33.776 4440 Recovering log #220
2024/05/15-08:44:33.781 4440 Delete type=0 #218
2024/05/15-08:44:33.782 4440 Delete type=0 #220
2024/05/15-08:44:33.782 4440 Delete type=3 #217
2024/06/24-07:16:50.242 b728 Recovering log #229
2024/06/24-07:16:50.248 b728 Delete type=0 #229
2024/06/24-07:16:50.248 b728 Delete type=3 #227
+7 -3
View File
@@ -1,3 +1,7 @@
2024/05/13-06:37:40.650 331c Recovering log #214
2024/05/13-06:37:40.662 331c Delete type=0 #214
2024/05/13-06:37:40.662 331c Delete type=3 #213
2024/05/17-09:03:17.291 3604 Recovering log #225
2024/05/17-09:03:17.297 3604 Delete type=0 #225
2024/05/17-09:03:17.297 3604 Delete type=3 #223
2024/05/17-09:03:22.890 1b1c Level-0 table #230: started
2024/05/17-09:03:22.890 1b1c Level-0 table #230: 0 bytes OK
2024/05/17-09:03:22.891 1b1c Delete type=0 #228
2024/05/17-09:03:22.895 1b1c Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end)
Binary file not shown.
+22
View File
@@ -0,0 +1,22 @@
.app .actor.choose {
div.actor {
position: relative;
img {
border-radius: 50%;
box-shadow: 0px 0px 8px black;
}
span.actor-name {
position: absolute;
text-align: center;
background-color: rgba(255, 255, 255, 0.562);
border: 5px;
width: 100%;
padding: 0 1rem;
border-radius: 5px;
box-shadow: 0px 0px 8px black;
}
}
}
+8
View File
@@ -105,6 +105,14 @@ input[type="radio"] {
}
}
iframe {
min-height: 500px;
.tabs.moods-headings {
max-width: 1px
}
}
input[type="radio"] {
width: 1rem;
+7 -6
View File
@@ -4,6 +4,7 @@
@import "item-sheet.scss";
@import "dialog.scss";
@import "special-inputs.scss";
@import "special-applications.scss";
// overwrites variables
@@ -18,12 +19,12 @@
--color-text-hyperlink: #5aaf0a;
--color-text-light-0: #fff;
--color-text-light-1: #e0f0f0;
--color-text-light-2: #c0e0e0;
--color-text-light-3: #a0d0d0;
--color-text-light-4: #80c0c0;
--color-text-light-5: #60b0b0;
--color-text-light-6: #40a0a0;
--color-text-light-7: #208080;
--color-text-light-2: #c9e0c0;
--color-text-light-3: #90c4a4;
--color-text-light-4: #80c08b;
--color-text-light-5: #60b06b;
--color-text-light-6: #40a05d;
--color-text-light-7: #208028;
--color-text-dark-1: #111;
--color-text-dark-2: #222;
--color-text-dark-3: #444;
+1 -1
View File
@@ -6,7 +6,7 @@
"compatibility": {
"minimum": "11",
"verified": "11.308",
"maximum": "11"
"maximum": "12"
},
"authors": [
{
@@ -59,12 +59,9 @@
{{/each}}
</div>
<select name="system.skills.{{skey}}.value" class="skill-select">
{{#select skill.value}}
{{#each @root.config.SkillLevels as |level ind|}}
<option value="{{ind}}" title="{{localize level.label}}">
{{localize level.label}}</option>
{{/each}}
{{/select}}
{{selectOptions @root.config.SkillLevels selected=value
localize=true}}
</select>
<span class="hexa">{{skill.value}}</span>
<div class="skill-dots flexrow">
@@ -45,8 +45,10 @@
</div>
<div class="item-controls flexrow">
{{#if item.system.description}}
<i class="fas fa-circle-question"
data-tooltip="{{item.system.description}}"></i>
{{/if}}
<a class="item-control item-delete" title="Delete Item"><i
class="fas fa-trash"></i></a>
</div>
@@ -67,8 +69,10 @@
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
</div>
<div class="item-controls flexrow">
{{#if item.system.description}}
<i class="fas fa-circle-question"
data-tooltip="{{item.system.description}}"></i>
{{/if}}
<a class="item-control item-delete" title="Delete Item"><i
class="fas fa-trash"></i></a>
</div>
@@ -89,8 +93,10 @@
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
</div>
<div class="item-controls flexrow">
{{#if item.system.description}}
<i class="fas fa-circle-question"
data-tooltip="{{item.system.description}}"></i>
{{/if}}
<a class="item-control item-delete" title="Delete Item"><i
class="fas fa-trash"></i></a>
</div>
@@ -111,8 +117,10 @@
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
</div>
<div class="item-controls flexrow">
{{#if item.system.description}}
<i class="fas fa-circle-question"
data-tooltip="{{item.system.description}}"></i>
{{/if}}
<a class="item-control item-delete" title="Delete Item"><i
class="fas fa-trash"></i></a>
</div>
@@ -133,8 +141,10 @@
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
</div>
<div class="item-controls flexrow">
{{#if item.system.description}}
<i class="fas fa-circle-question"
data-tooltip="{{item.system.description}}"></i>
{{/if}}
<a class="item-control item-delete" title="Delete Item"><i
class="fas fa-trash"></i></a>
</div>
+19 -10
View File
@@ -2,16 +2,19 @@
<div>
<h4 class="align-center">
<span>{{ localize 'VERMINE.group_members'}}</span>
<a class="item-control chooseActor" title="Add member" data-type="members"><i class="fas fa-plus"></i></a>
<a class="item-control chooseActor" title="Add member"
data-type="members"><i class="fas fa-plus"></i></a>
</h4>
<ol class="list-item">
<ol class="actor-list">
{{#each members as |actor id|}}
{{log actor}}
<li class="actor flexrow" data-actor-id="{{actor._id}}">
<div class="actor-name" style="flex:4;">
<a class="item-control">{{actor.name}}</a>
</div>
<div class="item-controls flexrow">
<a class="item-control member-delete" title="Delete Member"><i class="fas fa-trash"></i></a>
<a class="item-control member-delete" title="Delete Member"><i
class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
@@ -20,16 +23,18 @@
<div>
<h4 class="align-center">
<span>{{ localize 'VERMINE.encounters'}}</span>
<a class="item-control chooseActor" title="Add member" data-type="encounters"><i class="fas fa-plus"></i></a>
<a class="item-control chooseActor" title="Add member"
data-type="encounters"><i class="fas fa-plus"></i></a>
</h4>
<ol class="list-item">
<ol class="actor-list">
{{#each encounters as |actor id|}}
<li class="actor flexrow" data-actor-id="{{actor._id}}">
<div class="item-name" style="flex:4;">
<a class="item-control">{{actor.name}}</a>
</div>
<div class="item-controls flexrow">
<a class="item-control encounter-delete" title="Delete Encounter"><i class="fas fa-trash"></i></a>
<a class="item-control encounter-delete" title="Delete Encounter"><i
class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
@@ -38,7 +43,8 @@
<div>
<h4 class="align-center">
<span>{{ localize 'VERMINE.boost'}}</span>
<a class="item-control chooseActor" title="Add encounter" data-type="npc"><i class="fas fa-plus"></i></a>
<a class="item-control chooseActor" title="Add encounter"
data-type="npc"><i class="fas fa-plus"></i></a>
</h4>
<ol class="list-item">
{{#each abilities as |item id|}}
@@ -47,7 +53,8 @@
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
</div>
<div class="item-controls flexrow">
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
<a class="item-control item-delete" title="Delete Item"><i
class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
@@ -56,7 +63,8 @@
<div>
<h4 class="align-center">
<span>{{ localize 'VERMINE.totem_abilities'}}</span>
<a class="item-control item-create" title="Create item" data-type="ability"><i class="fas fa-plus"></i></a>
<a class="item-control item-create" title="Create item"
data-type="ability"><i class="fas fa-plus"></i></a>
</h4>
<ol class="list-item">
{{#each totem_abilities as |item id|}}
@@ -65,7 +73,8 @@
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
</div>
<div class="item-controls flexrow">
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
<a class="item-control item-delete" title="Delete Item"><i
class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
+22 -9
View File
@@ -1,41 +1,54 @@
<!-- HEADER -->
<header class="char-header grid grid-12col w-full" style="max-height: 110px;">
<div class="grid-span-2">
<img class="profile-img" src="{{actor.img}}" data-edit="img" width="100" height="100" title="{{actor.name}}" />
<img class="profile-img" src="{{actor.img}}" data-edit="img" width="100"
height="100" title="{{actor.name}}" />
</div>
<section class="char-details grid-span-5">
<h1 class="char-name flexrow flex-group-left w-full">
<label>{{ localize 'IDENTITY.name' }}</label>
<input name="name" type="text" value="{{actor.name}}" placeholder="{{localize "VERMINE.GroupNamePlaceholder"}}" />
<input name="name" type="text" value="{{actor.name}}"
placeholder="{{localize "VERMINE.GroupNamePlaceholder"}}" />
</h1>
<div class="profile flexrow flex-group-center">
<label>{{ localize 'IDENTITY.profile' }}</label>
<input name="system.identity.profile" type="text" value="{{system.identity.profile }}" data-dtype="String" />
<input name="system.identity.profile" type="text"
value="{{system.identity.profile }}" data-dtype="String" />
</div>
<div class="flexrow flex-group-center w-full">
<label for="system.identity.age">{{ localize 'IDENTITY.morale' }}</label>
<label for="system.identity.age">{{ localize 'IDENTITY.morale'
}}</label>
<div class="flexrow row">
<input type="number" name="system.identity.age" value="{{ system.morale.value }}" data-dtype="Number" max="7" min="1" />
<input type="number" name="system.identity.age"
value="{{ system.morale.value }}" data-dtype="Number"
max="7" min="1" />
<span id="moraleLevel">({{ system.morale.level }})</span>
</div>
</div>
</section>
<section class="char-level grid-span-5">
<h1 class="char-vermine2047 flexrow flex-group-left w-full">
<label for="system.identity.totem">{{ localize 'IDENTITY.totem' }}</label>
<label for="system.identity.totem">{{ localize 'IDENTITY.totem'
}}</label>
{{#if (eq system.identity.totem "")}}
<a name="chooseTotem" class="chooseTotem">Choisissez&hellip;</a>
{{ else }}
<a name="chooseTotem" class="chooseTotem">{{ smarttl "TOTEMS" system.identity.totem }}</a>
<a name="chooseTotem" class="chooseTotem">{{ smarttl "TOTEMS"
system.identity.totem }}</a>
{{/if}}
</h1>
<div class="reputation flexrow flex-group-center">
<label>{{ localize 'VERMINE.reputation' }}</label>
<input name="system.reputation.value" type="number" value="{{system.reputation.value }}" data-dtype="Number" min="2" max="10" />
<input name="system.reputation.value" type="number"
value="{{system.reputation.value }}" data-dtype="Number" min="2"
max="10" />
<img src="{{totem}}" alt>
</div>
<div class="experience flexrow flex-group-center">
<label>{{ localize 'VERMINE.level' }}</label>
<input name="system.level.value" type="number" value="{{system.level.value }}" data-dtype="Number" min="0" max="3" />
<input name="system.level.value" type="number"
value="{{system.level.value }}" data-dtype="Number" min="0"
max="3" />
</div>
</section>
</header>
+7 -4
View File
@@ -1,8 +1,11 @@
<div class="actor choose flexrow row" style="flex-wrap: wrap;max-height: 100px;justify-content:center;">
<div class="actor choose grid grid-4col">
{{#each actorsList as | actor akey|}}
<div class="actor rounded-full" data-totem="{{ tk }}" data-id="{{ actor.id }}" style="position:relative; width:100px;height:100px;">
<span class="flexrow w-full flex-group-center flex-align-center" style="position:absolute;z-index:10;width:100px;height:100px;">{{ actor.name }}</span>
<img src="{{ actor.img }}" alt="{{ actor.name }}" width="100" height="100" style="position:relative;min-width:100px;" />
<div class="actor" data-totem="{{ tk }}"
data-actor-id="{{ actor.id }}">
<span class="actor-name">{{
actor.name }}</span>
<img src="{{ actor.img }}" alt="{{ actor.name }}" />
</div>
{{/each}}
</div>
+6 -1
View File
@@ -1,4 +1,8 @@
<div class="totem choose grid grid-2col" style="padding:5px;">
<iframe src="https://app.syrinscape.com/#/" frameborder="0" width="100%"
heihgt="400px"></iframe>
<div class="totem choose grid grid-2col"
style="padding:5px;">
{{#each config.totems as | totem tk|}}
{{#if (ne tk "human")}}
{{#if (ne tk "adapted")}}
@@ -29,4 +33,5 @@
{{/if}}
{{/if}}
{{/each}}
</div>
+14 -23
View File
@@ -1,37 +1,28 @@
<form
class="{{cssClass}}"
autocomplete="off"
>
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img
class="profile-img"
src="{{item.img}}"
data-edit="img"
title="{{item.name}}"
/>
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
<div class="header-fields">
<h1 class="charname"><input
name="name"
type="text"
value="{{item.name}}"
placeholder="Name"
/></h1>
<select
name="system.skill"
class="skill-select"
>
{{#select system.skill}}
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
<select name="system.skill" class="skill-select">
{{#each @root.config.skillCategories as |skillCategory sckey|}}
{{log skillCategory}}
<optgroup label="{{ smarttlk 'SKILLS_CATEGORIES' sckey 'name' }}">
{{log "_____________________________________________==========="}}
{{log @root.config}}
{{#each @root.config.model.Actor.character.skills as |skill key|}}
{{#ife skill.category sckey}}
<option value="{{key}}">{{ smarttlk 'SKILLS' key 'name' }}</option>
<option value="{{key}}" {{#ife key @root.item.system.skill}} selected {{/ife}}>{{ smarttlk 'SKILLS' key 'name' }}</option>
{{/ife}}
{{/each}}
</optgroup>
{{/each}}
{{/select}}
</select>
</div>