mirror of
https://github.com/martindampier/draw-steel-retainer.git
synced 2026-07-22 05:44:15 +00:00
BUG FIX
This commit is contained in:
parent
b347fc8975
commit
cae9e47c47
5 changed files with 12 additions and 6 deletions
|
|
@ -228,7 +228,12 @@ export class InitiativeView extends ItemView {
|
|||
groupRowDrop(e: DragEvent){
|
||||
e.preventDefault();
|
||||
let data = e.dataTransfer?.getData("text");
|
||||
JSON.parse()
|
||||
let creature: Creature ;
|
||||
if (data === "String")
|
||||
{
|
||||
creature = JSON.parse(data);
|
||||
this.createCreatureRow(creature, creature.IsHero)
|
||||
}
|
||||
};
|
||||
|
||||
createCreatureObject(isHero: boolean){
|
||||
|
|
@ -458,6 +463,7 @@ export class InitiativeView extends ItemView {
|
|||
let bodyCell = staminaDiv.createEl('tr').createEl('td').createDiv({cls:"centered contents"});
|
||||
new ButtonComponent(bodyCell).setButtonText('-1').onClick(() => {this.updateStamina(row, (+stamina - 1).toString(), isMinion)});
|
||||
let staminaInput = new TextComponent(bodyCell) ;
|
||||
staminaInput.onChange((value: string) => {stamina = value})
|
||||
staminaInput.inputEl.addClasses(['centerText', 'max60Width']);
|
||||
staminaInput.setValue(stamina.toString()).inputEl.onkeydown = Behaviors.NumbersOnly;
|
||||
new ButtonComponent(bodyCell).setButtonText('+1').onClick(() => {this.updateStamina(row, (+stamina + 1).toString(), isMinion)});
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "draw-steel-retainer",
|
||||
"name": "Draw Steel Retainer",
|
||||
"version": "1.0.18",
|
||||
"version": "1.0.19",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Provides Director facing sidebar tools for the TTRPG Draw Steel",
|
||||
"author": "Herotek",
|
||||
|
|
|
|||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "draw-steel-retainer",
|
||||
"version": "1.0.18",
|
||||
"version": "1.0.19",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "draw-steel-retainer",
|
||||
"version": "1.0.18",
|
||||
"version": "1.0.19",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"debug": "^4.4.3"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "draw-steel-retainer",
|
||||
"version": "1.0.18",
|
||||
"version": "1.0.19",
|
||||
"description": "This plugin creates a initiative tracker that can be used for the MCDM rpg Draw Steel.",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"1.0.18": "0.15.0"
|
||||
"1.0.19": "0.15.0"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue