forked from Investigamer/cardconjurer
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48fa803
commit 4df9434
Showing
89 changed files
with
222 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
//Create objects for common properties across available frames | ||
var ptBounds = {x:1507/2010, y:2488/2814, width:418/2010, height:208/2814}; | ||
var crownBounds = {x:159/2010, y:52/2814, width:1694/2010, height:83/2814}; | ||
//defines available frames | ||
availableFrames = [ | ||
{name:'White Frame', src:'/img/frames/ixalanLegends/w1.png'}, | ||
{name:'Blue Frame', src:'/img/frames/ixalanLegends/u1.png'}, | ||
{name:'Black Frame', src:'/img/frames/ixalanLegends/b1.png'}, | ||
{name:'Red Frame', src:'/img/frames/ixalanLegends/r1.png'}, | ||
{name:'Green Frame', src:'/img/frames/ixalanLegends/g1.png'}, | ||
{name:'Multicolored Frame', src:'/img/frames/ixalanLegends/m1.png'}, | ||
{name:'Artifact Frame', src:'/img/frames/ixalanLegends/a1.png'}, | ||
{name:'Land Frame', src:'/img/frames/ixalanLegends/c1.png'}, | ||
|
||
{name:'White Power/Toughness', src:'/img/frames/ixalanLegends/pt/w.png', bounds: ptBounds}, | ||
{name:'Blue Power/Toughness', src:'/img/frames/ixalanLegends/pt/u.png', bounds: ptBounds}, | ||
{name:'Black Power/Toughness', src:'/img/frames/ixalanLegends/pt/b.png', bounds: ptBounds}, | ||
{name:'Red Power/Toughness', src:'/img/frames/ixalanLegends/pt/r.png', bounds: ptBounds}, | ||
{name:'Green Power/Toughness', src:'/img/frames/ixalanLegends/pt/g.png', bounds: ptBounds}, | ||
{name:'Multicolored Power/Toughness', src:'/img/frames/ixalanLegends/pt/m.png', bounds: ptBounds}, | ||
{name:'Artifact Power/Toughness', src:'/img/frames/ixalanLegends/pt/a.png', bounds: ptBounds}, | ||
{name:'Land Power/Toughness', src:'/img/frames/ixalanLegends/pt/c.png', bounds: ptBounds}, | ||
|
||
{name:'White Legendary Crown', src:'/img/frames/ixalanLegends/crown/w.png', bounds: crownBounds}, | ||
{name:'Blue Legendary Crown', src:'/img/frames/ixalanLegends/crown/u.png', bounds: crownBounds}, | ||
{name:'Black Legendary Crown', src:'/img/frames/ixalanLegends/crown/b.png', bounds: crownBounds}, | ||
{name:'Red Legendary Crown', src:'/img/frames/ixalanLegends/crown/r.png', bounds: crownBounds}, | ||
{name:'Green Legendary Crown', src:'/img/frames/ixalanLegends/crown/g.png', bounds: crownBounds}, | ||
{name:'Multicolored Legendary Crown', src:'/img/frames/ixalanLegends/crown/m.png', bounds: crownBounds}, | ||
{name:'Artifact Legendary Crown', src:'/img/frames/ixalanLegends/crown/a.png', bounds: crownBounds}, | ||
{name:'Land Legendary Crown', src:'/img/frames/ixalanLegends/crown/c.png', bounds: crownBounds} | ||
]; | ||
//disables/enables the "Load Frame Version" button | ||
document.querySelector('#loadFrameVersion').disabled = false; | ||
//defines process for loading this version, if applicable | ||
document.querySelector('#loadFrameVersion').onclick = async function() { | ||
//resets things so that every frame doesn't have to | ||
await resetCardIrregularities(); | ||
//sets card version | ||
card.version = 'ixalanLegends'; | ||
//art bounds | ||
card.artBounds = {x:128/2010, y:323/2814, width:1759/2010, height:1239/2814}; | ||
autoFitArt(); | ||
//set symbol bounds | ||
card.setSymbolBounds = {x:0.9213, y:0.5910, width:0.12, height:0.0410, vertical:'center', horizontal: 'right'}; | ||
resetSetSymbol(); | ||
//watermark bounds | ||
card.watermarkBounds = {x:0.5, y:0.7762, width:0.75, height:0.2305}; | ||
resetWatermark(); | ||
//text | ||
loadTextOptions({ | ||
mana: {name:'Mana Cost', text:'', y:0.0613, width:0.9292, height:71/2100, oneLine:true, size:71/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, | ||
title: {name:'Title', text:'', x:0.0854, y:0.0522, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381}, | ||
type: {name:'Type', text:'', x:0.0854, y:0.5664, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, | ||
rules: {name:'Rules Text', text:'', x:0.086, y:0.6303, width:0.828, height:0.2875, size:0.0362}, | ||
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'} | ||
}); | ||
} | ||
//loads available frames | ||
loadFramePack(); | ||
//Only for the main version as the webpage loads: | ||
if (!card.text) { | ||
document.querySelector('#loadFrameVersion').click(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
//Create objects for common properties across available frames | ||
var ptBounds = {x:1507/2010, y:2488/2814, width:418/2010, height:208/2814}; | ||
var crownBounds = {x:159/2010, y:52/2814, width:1694/2010, height:83/2814}; | ||
//defines available frames | ||
availableFrames = [ | ||
{name:'White Frame', src:'/img/frames/ixalanLegends/w2.png'}, | ||
{name:'Blue Frame', src:'/img/frames/ixalanLegends/u2.png'}, | ||
{name:'Black Frame', src:'/img/frames/ixalanLegends/b2.png'}, | ||
{name:'Red Frame', src:'/img/frames/ixalanLegends/r2.png'}, | ||
{name:'Green Frame', src:'/img/frames/ixalanLegends/g2.png'}, | ||
{name:'Multicolored Frame', src:'/img/frames/ixalanLegends/m2.png'}, | ||
{name:'Artifact Frame', src:'/img/frames/ixalanLegends/a2.png'}, | ||
{name:'Land Frame', src:'/img/frames/ixalanLegends/c2.png'}, | ||
|
||
{name:'White Power/Toughness', src:'/img/frames/ixalanLegends/pt/w.png', bounds: ptBounds}, | ||
{name:'Blue Power/Toughness', src:'/img/frames/ixalanLegends/pt/u.png', bounds: ptBounds}, | ||
{name:'Black Power/Toughness', src:'/img/frames/ixalanLegends/pt/b.png', bounds: ptBounds}, | ||
{name:'Red Power/Toughness', src:'/img/frames/ixalanLegends/pt/r.png', bounds: ptBounds}, | ||
{name:'Green Power/Toughness', src:'/img/frames/ixalanLegends/pt/g.png', bounds: ptBounds}, | ||
{name:'Multicolored Power/Toughness', src:'/img/frames/ixalanLegends/pt/m.png', bounds: ptBounds}, | ||
{name:'Artifact Power/Toughness', src:'/img/frames/ixalanLegends/pt/a.png', bounds: ptBounds}, | ||
{name:'Land Power/Toughness', src:'/img/frames/ixalanLegends/pt/c.png', bounds: ptBounds}, | ||
|
||
{name:'White Legendary Crown', src:'/img/frames/ixalanLegends/crown/w.png', bounds: crownBounds}, | ||
{name:'Blue Legendary Crown', src:'/img/frames/ixalanLegends/crown/u.png', bounds: crownBounds}, | ||
{name:'Black Legendary Crown', src:'/img/frames/ixalanLegends/crown/b.png', bounds: crownBounds}, | ||
{name:'Red Legendary Crown', src:'/img/frames/ixalanLegends/crown/r.png', bounds: crownBounds}, | ||
{name:'Green Legendary Crown', src:'/img/frames/ixalanLegends/crown/g.png', bounds: crownBounds}, | ||
{name:'Multicolored Legendary Crown', src:'/img/frames/ixalanLegends/crown/m.png', bounds: crownBounds}, | ||
{name:'Artifact Legendary Crown', src:'/img/frames/ixalanLegends/crown/a.png', bounds: crownBounds}, | ||
{name:'Land Legendary Crown', src:'/img/frames/ixalanLegends/crown/c.png', bounds: crownBounds} | ||
]; | ||
//disables/enables the "Load Frame Version" button | ||
document.querySelector('#loadFrameVersion').disabled = false; | ||
//defines process for loading this version, if applicable | ||
document.querySelector('#loadFrameVersion').onclick = async function() { | ||
//resets things so that every frame doesn't have to | ||
await resetCardIrregularities(); | ||
//sets card version | ||
card.version = 'ixalanLegends'; | ||
//art bounds | ||
card.artBounds = {x:128/2010, y:323/2814, width:1759/2010, height:1239/2814}; | ||
autoFitArt(); | ||
//set symbol bounds | ||
card.setSymbolBounds = {x:0.9213, y:0.5910, width:0.12, height:0.0410, vertical:'center', horizontal: 'right'}; | ||
resetSetSymbol(); | ||
//watermark bounds | ||
card.watermarkBounds = {x:0.5, y:0.7762, width:0.75, height:0.2305}; | ||
resetWatermark(); | ||
//text | ||
loadTextOptions({ | ||
mana: {name:'Mana Cost', text:'', y:0.0613, width:0.9292, height:71/2100, oneLine:true, size:71/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, | ||
title: {name:'Title', text:'', x:0.0854, y:0.0522, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381}, | ||
type: {name:'Type', text:'', x:0.0854, y:0.5664, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, | ||
rules: {name:'Rules Text', text:'', x:0.086, y:0.6303, width:0.828, height:0.2875, size:0.0362}, | ||
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'} | ||
}); | ||
} | ||
//loads available frames | ||
loadFramePack(); | ||
//Only for the main version as the webpage loads: | ||
if (!card.text) { | ||
document.querySelector('#loadFrameVersion').click(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
//Create objects for common properties across available frames | ||
var ptBounds = {x:1507/2010, y:2488/2814, width:418/2010, height:208/2814}; | ||
var crownBounds = {x:159/2010, y:52/2814, width:1694/2010, height:83/2814}; | ||
//defines available frames | ||
availableFrames = [ | ||
{name:'White Frame', src:'/img/frames/ixalanLegends/w3.png'}, | ||
{name:'Blue Frame', src:'/img/frames/ixalanLegends/u3.png'}, | ||
{name:'Black Frame', src:'/img/frames/ixalanLegends/b3.png'}, | ||
{name:'Red Frame', src:'/img/frames/ixalanLegends/r3.png'}, | ||
{name:'Green Frame', src:'/img/frames/ixalanLegends/g3.png'}, | ||
{name:'Multicolored Frame', src:'/img/frames/ixalanLegends/m3.png'}, | ||
{name:'Artifact Frame', src:'/img/frames/ixalanLegends/a3.png'}, | ||
{name:'Land Frame', src:'/img/frames/ixalanLegends/c3.png'}, | ||
|
||
{name:'White Power/Toughness', src:'/img/frames/ixalanLegends/pt/w.png', bounds: ptBounds}, | ||
{name:'Blue Power/Toughness', src:'/img/frames/ixalanLegends/pt/u.png', bounds: ptBounds}, | ||
{name:'Black Power/Toughness', src:'/img/frames/ixalanLegends/pt/b.png', bounds: ptBounds}, | ||
{name:'Red Power/Toughness', src:'/img/frames/ixalanLegends/pt/r.png', bounds: ptBounds}, | ||
{name:'Green Power/Toughness', src:'/img/frames/ixalanLegends/pt/g.png', bounds: ptBounds}, | ||
{name:'Multicolored Power/Toughness', src:'/img/frames/ixalanLegends/pt/m.png', bounds: ptBounds}, | ||
{name:'Artifact Power/Toughness', src:'/img/frames/ixalanLegends/pt/a.png', bounds: ptBounds}, | ||
{name:'Land Power/Toughness', src:'/img/frames/ixalanLegends/pt/c.png', bounds: ptBounds}, | ||
|
||
{name:'White Legendary Crown', src:'/img/frames/ixalanLegends/crown/w.png', bounds: crownBounds}, | ||
{name:'Blue Legendary Crown', src:'/img/frames/ixalanLegends/crown/u.png', bounds: crownBounds}, | ||
{name:'Black Legendary Crown', src:'/img/frames/ixalanLegends/crown/b.png', bounds: crownBounds}, | ||
{name:'Red Legendary Crown', src:'/img/frames/ixalanLegends/crown/r.png', bounds: crownBounds}, | ||
{name:'Green Legendary Crown', src:'/img/frames/ixalanLegends/crown/g.png', bounds: crownBounds}, | ||
{name:'Multicolored Legendary Crown', src:'/img/frames/ixalanLegends/crown/m.png', bounds: crownBounds}, | ||
{name:'Artifact Legendary Crown', src:'/img/frames/ixalanLegends/crown/a.png', bounds: crownBounds}, | ||
{name:'Land Legendary Crown', src:'/img/frames/ixalanLegends/crown/c.png', bounds: crownBounds} | ||
]; | ||
//disables/enables the "Load Frame Version" button | ||
document.querySelector('#loadFrameVersion').disabled = false; | ||
//defines process for loading this version, if applicable | ||
document.querySelector('#loadFrameVersion').onclick = async function() { | ||
//resets things so that every frame doesn't have to | ||
await resetCardIrregularities(); | ||
//sets card version | ||
card.version = 'ixalanLegends'; | ||
//art bounds | ||
card.artBounds = {x:128/2010, y:323/2814, width:1759/2010, height:1239/2814}; | ||
autoFitArt(); | ||
//set symbol bounds | ||
card.setSymbolBounds = {x:0.9213, y:0.5910, width:0.12, height:0.0410, vertical:'center', horizontal: 'right'}; | ||
resetSetSymbol(); | ||
//watermark bounds | ||
card.watermarkBounds = {x:0.5, y:0.7762, width:0.75, height:0.2305}; | ||
resetWatermark(); | ||
//text | ||
loadTextOptions({ | ||
mana: {name:'Mana Cost', text:'', y:0.0613, width:0.9292, height:71/2100, oneLine:true, size:71/1638, align:'right', shadowX:-0.001, shadowY:0.0029, manaCost:true, manaSpacing:0}, | ||
title: {name:'Title', text:'', x:0.0854, y:0.0522, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0381}, | ||
type: {name:'Type', text:'', x:0.0854, y:0.5664, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324}, | ||
rules: {name:'Rules Text', text:'', x:0.086, y:0.6303, width:0.828, height:0.2875, size:0.0362}, | ||
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'} | ||
}); | ||
} | ||
//loads available frames | ||
loadFramePack(); | ||
//Only for the main version as the webpage loads: | ||
if (!card.text) { | ||
document.querySelector('#loadFrameVersion').click(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//Create objects for common properties across available frames | ||
var bounds = {x:-89/2010, y:-81/2814, width:2188/2010, height:2976/2814}; | ||
var ogBounds = {x:0, y:0, width:1, height:1}; | ||
//defines available frames | ||
availableFrames = [ | ||
{name:'Legends of Ixalan Margins', src:'/img/frames/ixalanLegends/margin.png', bounds:bounds, ogBounds:ogBounds} | ||
]; | ||
//disables/enables the "Load Frame Version" button | ||
document.querySelector('#loadFrameVersion').disabled = false; | ||
|
||
document.querySelector('#loadFrameVersion').onclick = async function() { | ||
loadMarginVersion(); | ||
|
||
await resetCardIrregularities({canvas:[getStandardWidth(), getStandardHeight(), 89/2010, 81/2814], resetOthers:false}); | ||
|
||
drawTextBuffer(); | ||
drawFrames(); | ||
bottomInfoEdited(); | ||
watermarkEdited(); | ||
drawNewGuidelines(); | ||
} | ||
//loads available frames | ||
loadFramePack(); |