This commit is contained in:
Kyle
2019-07-02 18:13:06 -07:00
parent 2ced0c4549
commit f622269b65
13 changed files with 71 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

@@ -0,0 +1,56 @@
//============================================//
// Vanguard Border //
//============================================//
//General Booleans
cardData.miracle = false
cardData.nyx = false
cardData.legendary = false
cardData.creature = false
cardData.rareStamp = false
//Specific Values
cardData.bottomInfoFunction = "bottomInfoVanguard"
cardData.cardArtX = cwidth(92)
cardData.cardArtY = cheight(113)
cardData.manaSymbolDirection = "none"
cardData.setSymbolAlignment = "none"
cardData.titleFont = "matrixb"
cardData.titleFontSize = cwidth(54)
cardData.titleX = cardWidth / 2
cardData.titleY = cheight(98)
cardData.titleAlignment = "center"
cardData.titleRight = cwidth(616)
cardData.typeFont = "matrix"
cardData.typeFontSize = cwidth(32)
cardData.typeX = cardWidth / 2
cardData.typeY = cheight(640)
cardData.typeAlignment = "center"
cardData.textRight = cwidth(585)
cardData.textX = cwidth(135)
//Images
imgArtMask.load("data/borders/vanguard/imgArtMask.png")
imgFrameMask.load("data/borders/vanguard/imgFrameMask.png")
imgRulesMask.load("data/borders/vanguard/imgRulesMask.png")
imgBorderMask.load("data/borders/vanguard/imgBorderMask.png")
//Loads the Colors
loadColors("white-White,blue-Blue,red-Red,green-Green")
//Finishes loading the border style
document.getElementById("cmmVanguard").style.display = "block"
document.getElementById("inputTextSize").value = 28
finishChangingBorder()
createAlert("conflict", "The Vanguard card's centered rules text doesn't cooperate with my rules text code, so if you choose to use centered text any mana symbols or other codes may throw off the text. I apologize for any inconveniences. I hope to resolve this in the future :)")
function bottomInfoVanguard() {
var infoArtist = "Illus. " + document.getElementById("inputInfoArtist").value
var copyrightNumber = "\u2122 & \u00a9 1993-" + date.getFullYear() + " Wizards of the Coast, Inc. *Not For Sale*" //+ document.getElementById("inputInfoNumber").value
textContext.textAlign = "center"
textContext.fillStyle = "black"
textContext.font = "17px mplantin"
textContext.fillText(infoArtist, cwidth(377), cheight(949))
textContext.font = "13px mplantin"
textContext.fillText(copyrightNumber, cwidth(375), cheight(963))
//special vanguard fun!
textContext.font = "31px mplantin"
textContext.fillText(document.getElementById("inputVanguardHand").value, cwidth(107), cheight(910))
textContext.fillText(document.getElementById("inputVanguardLife").value, cwidth(642), cheight(909))
drawCard()
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 468 KiB

View File

@@ -20,7 +20,7 @@ function textAreaKeyPressed() {
// Anything I Like to Change Often :) // // Anything I Like to Change Often :) //
//============================================// //============================================//
randomizeSampleCards(8) randomizeSampleCards(8)
var cookieUpdate = "1" var cookieUpdate = "2"
//============================================// //============================================//
// Setup Variables/Canvases // // Setup Variables/Canvases //
@@ -86,6 +86,8 @@ function backToDefault(version) {
} }
//Runs the finishing script //Runs the finishing script
loadScript('data/borders/' + version + '/border.js') loadScript('data/borders/' + version + '/border.js')
//Fixes some other values
document.getElementById("inputTextSize").value = 37
} }
function finishChangingBorder() { function finishChangingBorder() {
loadLegendaryImages() loadLegendaryImages()
@@ -704,7 +706,7 @@ function bottomInfoM15() {
function sectionOtherFunction() { function sectionOtherFunction() {
//clears the 'other' canvas //clears the 'other' canvas
otherContext.clearRect(0, 0, cardWidth, cardHeight) otherContext.clearRect(0, 0, cardWidth, cardHeight)
if (document.getElementById("inputCheckboxSetSymbol").checked) { if (document.getElementById("inputCheckboxSetSymbol").checked && cardData.setSymbolAlignment != "none") {
//Set Symbol //Set Symbol
switch(cardData.setSymbolAlignment) { switch(cardData.setSymbolAlignment) {
case "left": case "left":
@@ -1008,7 +1010,7 @@ function checkCookies() {
visitCount += 1 visitCount += 1
setCookie("visits", "" + visitCount) setCookie("visits", "" + visitCount)
if (getCookie("cookieUpdated") != cookieUpdate) { if (getCookie("cookieUpdated") != cookieUpdate) {
createAlert("info", "Card Conjurer has been updated since your last visit and now features old borders! Feel free to contact me at CardConjurerMTG@gmail.com if you would like to request a border style or have any questions.") createAlert("info", "Card Conjurer has been updated since your last visit and now features Vanguard cards! (those old MTG ones, not the other game) Feel free to contact me at CardConjurerMTG@gmail.com if you would like to request a border style or have any questions.")
setCookie("cookieUpdated", cookieUpdate) setCookie("cookieUpdated", cookieUpdate)
} else { } else {
if (visitCount % 50 == 0) { if (visitCount % 50 == 0) {
@@ -1041,7 +1043,7 @@ setTimeout(function(){sectionTextFunction()}, 500)
setTimeout(function(){sectionTextFunction()}, 1000) setTimeout(function(){sectionTextFunction()}, 1000)
// Only for working on frames n' stuff :) // Only for working on frames n' stuff :)
// setTimeout(function(){ // setTimeout(function(){
// document.getElementById("inputCardVersion").value = "old" // document.getElementById("inputCardVersion").value = "vanguard"
// document.getElementById("inputCardVersion").onchange() // document.getElementById("inputCardVersion").onchange()
// }, 500) // }, 500)

View File

@@ -335,6 +335,7 @@ footer {
padding: 0.1em; padding: 0.1em;
} }
.alert.info {background-color: var(--color-primary);} .alert.info {background-color: var(--color-primary);}
.alert.conflict {background-color: #b37d07;}
.alert.warning {background-color: #3b0000;} .alert.warning {background-color: #3b0000;}
.hidden { .hidden {

View File

@@ -64,6 +64,7 @@
<div onclick="toggleView('advanced', 'cmm')">Advanced</div> <div onclick="toggleView('advanced', 'cmm')">Advanced</div>
<div onclick="toggleView('download', 'cmm')">Download</div> <div onclick="toggleView('download', 'cmm')">Download</div>
<div onclick="toggleView('planeswalker', 'cmm')" style="font-size: 85%; display: none;" id="cmmPlaneswalker">Planeswalker</div> <div onclick="toggleView('planeswalker', 'cmm')" style="font-size: 85%; display: none;" id="cmmPlaneswalker">Planeswalker</div>
<div onclick="toggleView('vanguard', 'cmm')" style="display: none;" id="cmmVanguard">Vanguard</div>
</div> </div>
<div class="selectionGridTarget padded"> <div class="selectionGridTarget padded">
<div class="cmm shown" id="cmm-frame"> <div class="cmm shown" id="cmm-frame">
@@ -78,6 +79,7 @@
<option value="tokenTall">Token (Tall)</option> <option value="tokenTall">Token (Tall)</option>
<option value="fullArtLandM15">Full Art Land (M15)</option> <option value="fullArtLandM15">Full Art Land (M15)</option>
<option value="fullArtLandUnstable">Full Art Land (Unstable)</option> <option value="fullArtLandUnstable">Full Art Land (Unstable)</option>
<option value="vanguard">Vanguard</option>
<option value="plane">Plane</option> <option value="plane">Plane</option>
<option value="miniPlane">Mini-Plane</option> <option value="miniPlane">Mini-Plane</option>
</select> </select>
@@ -358,6 +360,12 @@
<input type="text" class="input" id="inputAbilityValue2" value="-1" oninput="planeswalkerAbilityIcons()"> <input type="text" class="input" id="inputAbilityValue2" value="-1" oninput="planeswalkerAbilityIcons()">
<input type="text" class="input" id="inputAbilityValue3" value="" oninput="planeswalkerAbilityIcons()"> <input type="text" class="input" id="inputAbilityValue3" value="" oninput="planeswalkerAbilityIcons()">
</div> </div>
<div class="cmm" id="cmm-vanguard">
Hand Size Modifier
<input type="text" class="input" id="inputVanguardHand" value="+1" oninput="sectionTextFunction()">
Starting Life Modifier
<input type="text" class="input" id="inputVanguardLife" value="+1" oninput="sectionTextFunction()">
</div>
</div> </div>
</div> </div>
<div class="tutorialArea"> <div class="tutorialArea">