This commit is contained in:
Nikolaj
2025-08-05 09:37:53 +02:00
parent 90daca3ba6
commit 270c7cedca
7 changed files with 16 additions and 18 deletions

View File

@@ -443,7 +443,7 @@
}
select {
background-color: #30da0c;
background-color: transparent;
color: black;
border: black;
width: 80px;
@@ -454,7 +454,6 @@
-moz-border-radius: 20px;
-o-border-radius: 20px;
padding: 5px;
margin: 15px 10px;
display: flex;
flex-direction: column;
@@ -484,7 +483,7 @@
left: 0;
height: 20px;
width: 36px;
background-color: transparent;
background-color: #30da0c;
border-radius: 5px;
margin-right: 8px;

View File

@@ -380,7 +380,7 @@
margin-bottom: 7px;
}
.pokemon.sheet.characterSheet select {
background-color: #30da0c;
background-color: transparent;
color: black;
border: black;
width: 80px;
@@ -389,7 +389,6 @@
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
-o-border-radius: 20px;
padding: 5px;
margin: 15px 10px;
display: flex;
flex-direction: column;
@@ -415,7 +414,7 @@
left: 0;
height: 20px;
width: 36px;
background-color: transparent;
background-color: #30da0c;
border-radius: 5px;
margin-right: 8px;
box-shadow: 0 0 10px #003300 inset;

View File

@@ -26,7 +26,7 @@ Hooks.once("init", async () => {
preloadHandlebarsTemplates();
// Register Additional Handelbar Helpers
registerHandlebarsHelpers();
registerHandlebarsHelpers();
});
Hooks.once("ready", async () => {
@@ -35,7 +35,7 @@ Hooks.once("ready", async () => {
CONFIG.INIT = false;
// Only execute when run as Gamemaster
if(!game.user.isGM) return;
if(!game.user.isGM) return;
});
function preloadHandlebarsTemplates() {
@@ -52,7 +52,7 @@ function preloadHandlebarsTemplates() {
function registerHandlebarsHelpers() {
Handlebars.registerHelper("equals", function(v1, v2) { return (v1 === v2)});
Handlebars.registerHelper("equals", function(v1, v2) { console.log("v1: "+v1+"\nv2: "+v2); return (v1 === v2)});
Handlebars.registerHelper("contains", function(element, search) { return (element.includes(search))});
@@ -79,9 +79,9 @@ function registerHandlebarsHelpers() {
});
Handlebars.registerHelper("times", function(n, content) {
let result = "";
for(let i = 0; i < n; i++)
result += content.fn(i);

View File

@@ -1,5 +1,5 @@
{
"version": "0.1.3",
"version": "0.1.4",
"id": "pokemon",
"title": "Pokémon TTRPG",
"description": "A Pokémon TTRPG",

Binary file not shown.

View File

@@ -5,7 +5,7 @@
<div class="row">
<label class="container">
<input class="radioButton" type="radio" name="system.attackCategory" value="Physical"
{{#if (eq system.attackCategory "Physical")}}checked{{/if}}>
{{#if (equals system.attackCategory "Physical")}}checked{{/if}}>
<span class="checkmark"></span>
Physical
</label>
@@ -13,7 +13,7 @@
<div class="row">
<label class="container">
<input class="radioButton" type="radio" name="system.attackCategory" value="Special"
{{#if (eq system.attackCategory "Special")}}checked{{/if}}>
{{#if (equals system.attackCategory "Special")}}checked{{/if}}>
<span class="checkmark"></span>
Special
</label>
@@ -30,7 +30,7 @@
<div class="row">
<label class="container">
<input class="radioButton" type="radio" name="system.defenseCategory" value="Physical"
{{#if (eq system.defenseCategory "Physical")}}checked{{/if}}>
{{#if (equals system.defenseCategory "Physical")}}checked{{/if}}>
<span class="checkmark"></span>
Physical
</label>
@@ -38,7 +38,7 @@
<div class="row">
<label class="container">
<input class="radioButton" type="radio" name="system.defenseCategory" value="Special"
{{#if (eq system.defenseCategory "Special")}}checked{{/if}}>
{{#if (equals system.defenseCategory "Special")}}checked{{/if}}>
<span class="checkmark"></span>
Special
</label>

View File

@@ -6,13 +6,13 @@
<div class="typeSelectBox">
<select class="{{system.type1}}" name="system.type1">
{{#each types}}
<option value="{{this}}" {{#if (eq system.type1 this)}}selected{{/if}}>{{this}}</option>
<option value="{{this}}" {{#if (equals system.type1 this)}}selected{{/if}}>{{this}}</option>
{{/each}}
</select>
<select class="{{system.type2}}" name="system.type2">
<option value="" {{#if (eq system.type2 "")}}selected{{/if}}></option>
{{#each types}}
<option value="{{this}}" {{#if (eq system.type2 this)}}selected{{/if}}>{{this}}</option>
<option value="{{this}}" {{#if (equals system.type2 this)}}selected{{/if}}>{{this}}</option>
{{/each}}
</select>
</div>