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

View File

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

View File

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

View File

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

Binary file not shown.

View File

@@ -5,7 +5,7 @@
<div class="row"> <div class="row">
<label class="container"> <label class="container">
<input class="radioButton" type="radio" name="system.attackCategory" value="Physical" <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> <span class="checkmark"></span>
Physical Physical
</label> </label>
@@ -13,7 +13,7 @@
<div class="row"> <div class="row">
<label class="container"> <label class="container">
<input class="radioButton" type="radio" name="system.attackCategory" value="Special" <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> <span class="checkmark"></span>
Special Special
</label> </label>
@@ -30,7 +30,7 @@
<div class="row"> <div class="row">
<label class="container"> <label class="container">
<input class="radioButton" type="radio" name="system.defenseCategory" value="Physical" <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> <span class="checkmark"></span>
Physical Physical
</label> </label>
@@ -38,7 +38,7 @@
<div class="row"> <div class="row">
<label class="container"> <label class="container">
<input class="radioButton" type="radio" name="system.defenseCategory" value="Special" <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> <span class="checkmark"></span>
Special Special
</label> </label>

View File

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