diff --git a/creator/index.php b/creator/index.php
index d772b9af..a4ddf49b 100644
--- a/creator/index.php
+++ b/creator/index.php
@@ -154,7 +154,7 @@ include('../globalHTML/header-1.php');
-
+
@@ -196,6 +196,13 @@ include('../globalHTML/header-1.php');
+
+
+
+
+
+
+
-
+
\ No newline at end of file
diff --git a/js/creator-11.js b/js/creator-12.js
similarity index 98%
rename from js/creator-11.js
rename to js/creator-12.js
index 7c9963ae..bd098673 100644
--- a/js/creator-11.js
+++ b/js/creator-12.js
@@ -475,9 +475,15 @@ function uploadFrameOption(imageSource) {
}
//TEXT TAB
var writingText;
-function loadTextOptions(textObject) {
+function loadTextOptions(textObject, replace=true) {
var oldCardText = card.text || {};
- card.text = textObject;
+ if (replace) {
+ card.text = textObject;
+ } else {
+ Object.keys(textObject).forEach(key => {
+ card.text[key] = textObject[key];
+ });
+ }
document.querySelector('#text-options').innerHTML = null;
Object.entries(card.text).forEach(item => {
if (oldCardText[item[0]]) {
@@ -896,6 +902,18 @@ function curlyQuotes(input) {
function pinlineColors(color) {
return color.replace('white', '#fcfeff').replace('blue', '#0075be').replace('black', '#272624').replace('red', '#ef3827').replace('green', '#007b43')
}
+async function addTextbox(textboxType) {
+ if (textboxType == 'Nickname' && !card.text.nickname && card.text.title) {
+ await loadTextOptions({nickname: {name:'Nickname', text:card.text.title.text, x:0.14, y:0.1129, width:0.72, height:0.0243, oneLine:true, font:'mplantini', size:0.0229, color:'white', shadowX:0.0014, shadowY:0.001, align:'center'}}, false);
+ var nickname = card.text.title;
+ nickname.name = 'Nickname';
+ card.text.title = card.text.nickname;
+ card.text.title.name = 'Title';
+ card.text.nickname = nickname;
+ } else if (textboxType == 'Power/Toughness' && !card.text.pt) {
+ loadTextOptions({pt: {name:'Power/Toughness', text:'', x:0.7928, y:0.902, width:0.1367, height:0.0372, size:0.0372, font:'belerenbsc', oneLine:true, align:'center'}}, false);
+ }
+}
//ART TAB
function uploadArt(imageSource, otherParams) {
art.src = imageSource;
@@ -1097,7 +1115,6 @@ function toggleStarDot() {
} else {
card.bottomInfo[key].text = text.replace(' \u2022 ', '*');
}
- // console.log(textObject[1].text)
}
bottomInfoEdited();
}