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
5b905df
commit 96a8e25
Showing
67 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
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,52 @@ | ||
//Create objects for common properties across available frames | ||
var masks = [{src:'/img/frames/memoryCorridor/mask.png', name:'Highlights'}]; | ||
var bptBounds = {x:1545/2010, y:2464/2814, width:369/2010, height:191/2814}; | ||
var stampBounds = {x:860/2010, y:2544/2814, width:290/2010, height:123/2814}; | ||
|
||
//defines available frames | ||
availableFrames = [ | ||
{name:'White Frame', src:'/img/frames/memoryCorridor/w.png', masks: masks}, | ||
{name:'Blue Frame', src:'/img/frames/memoryCorridor/u.png', masks: masks}, | ||
{name:'Black Frame', src:'/img/frames/memoryCorridor/b.png', masks: masks}, | ||
{name:'Red Frame', src:'/img/frames/memoryCorridor/r.png', masks: masks}, | ||
{name:'Green Frame', src:'/img/frames/memoryCorridor/g.png', masks: masks}, | ||
{name:'Multicolored Frame', src:'/img/frames/memoryCorridor/m.png', masks: masks}, | ||
|
||
{name:'White Power/Toughness Box', src:'/img/frames/memoryCorridor/pt/w.png', bounds: bptBounds}, | ||
{name:'Blue Power/Toughness Box', src:'/img/frames/memoryCorridor/pt/u.png', bounds: bptBounds}, | ||
{name:'Black Power/Toughness Box', src:'/img/frames/memoryCorridor/pt/b.png', bounds: bptBounds}, | ||
{name:'Red Power/Toughness Box', src:'/img/frames/memoryCorridor/pt/r.png', bounds: bptBounds}, | ||
{name:'Green Power/Toughness Box', src:'/img/frames/memoryCorridor/pt/g.png', bounds: bptBounds}, | ||
{name:'Multicolored Power/Toughness Box', src:'/img/frames/memoryCorridor/pt/m.png', bounds: bptBounds}, | ||
|
||
{name:'Gold Holo Stamp', src: '/img/frames/memoryCorridor/stamp-gold.png', bounds: stampBounds}, | ||
{name:'Gray Holo Stamp', src: '/img/frames/memoryCorridor/stamp.png', bounds: stampBounds} | ||
]; | ||
//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 = 'pipboy'; | ||
//art bounds | ||
card.artBounds = {x:0, y:0, width:2010/2010, height:1587/2814}; | ||
autoFitArt(); | ||
//set symbol bounds | ||
card.setSymbolBounds = {x:1834/2010, y:1641/2814, 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:150/2010, y:0.0522, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:(63/2814)*1.34, allCaps: true, font:'dinnextbold'}, | ||
type: {name:'Type', text:'', x:151/2010, y:1635/2814, width:0.8292, height:(53/2814), oneLine:true, font:'belerenb', size:(53/2814)*1.34, allCaps: true, color:'white', font:'dinnextmedium'}, | ||
rules: {name:'Rules Text', text:'', x:172.86/2010, y:1743.6642/2814, width:1664.28/2010, height:839.6892/2814, size:0.0362}, | ||
pt: {name:'Power/Toughness', text:'', x:1613.528/2010, y:2529.228/2814, width:0.1367, height:0.0372, size:(81/2814)*1.43, font:'belerenbsc', oneLine:true, align:'center', color:'white', font:'dinnextmedium'} | ||
}); | ||
} | ||
//loads available frames | ||
loadFramePack(); |