From d6b497c020d2e0874a55382080525c6e241eb343 Mon Sep 17 00:00:00 2001
From: Kyle <41976328+ImKyle4815@users.noreply.github.com>
Date: Thu, 15 Aug 2019 19:01:01 -0700
Subject: [PATCH] life
---
data/life/life.js | 6 ++++--
life.html | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/data/life/life.js b/data/life/life.js
index ab996f34..e34e4a1c 100644
--- a/data/life/life.js
+++ b/data/life/life.js
@@ -94,6 +94,8 @@ function playerBox(playerBoxID, canvasRotation, wide) {
this.color = "#222222"
this.textColor = "#ffffff"
this.image = new Image()
+ this.image.customVarID = playerBoxID
+ this.image.onload = function() {drawPlayerBox(this.customVarID)}
//vars to make navigation easier
this.canvas.customVarID = playerBoxID
this.canvas.customVarContext = this.canvas.getContext("2d")
@@ -144,7 +146,7 @@ function loadImage(event, destination) {
reader.onload = function() {
var dataURL = reader.result
destination.src = dataURL
- setTimeout(function(){drawPlayerBox(parseInt(document.getElementById("inputPlayer").value))}, 500)
+ // setTimeout(function(){drawPlayerBox(parseInt(document.getElementById("inputPlayer").value))}, 500)
}
reader.readAsDataURL(input.files[0])
}
@@ -173,7 +175,7 @@ function inputCardArtName(cardArtNameInput) {
}
function inputCardArtNameNumber(cardArtNameNumberInput) {
playerList[parseInt(document.getElementById('inputPlayer').value) - 1].image.src = cardArtUrlList[cardArtNameNumberInput - 1]
- setTimeout(function(){drawPlayerBox(parseInt(document.getElementById("inputPlayer").value))}, 500)
+ // setTimeout(function(){drawPlayerBox(parseInt(document.getElementById("inputPlayer").value))}, 500)
}
document.getElementById("mainGrid").addEventListener("touchmove", function(event) {
event.preventDefault()
diff --git a/life.html b/life.html
index c1575454..015dda8d 100644
--- a/life.html
+++ b/life.html
@@ -70,7 +70,7 @@
Image:
-
+
Text Color: