Skip to content

Commit

Permalink
Add Memory Corridor margins and artifact/land frames
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbirnholz committed Jul 28, 2024
1 parent 1bd91d3 commit d80d600
Show file tree
Hide file tree
Showing 35 changed files with 39 additions and 3 deletions.
Binary file added img/frames/memoryCorridor/a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/aThumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/frames/memoryCorridor/b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/frames/memoryCorridor/g.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/l.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/lThumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/frames/memoryCorridor/m.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/margins/a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/margins/aThumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/margins/b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/margins/bThumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/margins/g.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/margins/gThumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/margins/l.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/margins/lThumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/margins/m.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/margins/mThumb.png
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.
Binary file added img/frames/memoryCorridor/margins/r.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/margins/rThumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/margins/u.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/margins/uThumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/margins/w.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/margins/wThumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/frames/memoryCorridor/pt/a.png
Binary file added img/frames/memoryCorridor/pt/aThumb.png
Binary file added img/frames/memoryCorridor/pt/l.png
Binary file added img/frames/memoryCorridor/pt/lThumb.png
Binary file modified img/frames/memoryCorridor/r.png
Binary file modified img/frames/memoryCorridor/u.png
Binary file modified img/frames/memoryCorridor/w.png
5 changes: 3 additions & 2 deletions js/frames/groupMargin.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
loadFramePacks([
{name:'Generic Margins', value:'Margin-1'},
{name:'Memory Corridor Margins', value:'MarginMemoryCorridor'},
{name:'Breaking News Margin', value:'MarginBreakingNews'},
{name:'Vault Margin', value:'MarginVault'},
{name:'Wanted Poster Margin', value:'MarginWanted'},
{name:'Vault Margins', value:'MarginVault'},
{name:'Wanted Poster Margins', value:'MarginWanted'},
{name:'Enchanting Tales Margins', value:'MarginEnchantingTales'},
{name:'LTR Ring Margins', value:'MarginRing'},
{name:'D&D Module Margins', value:'MarginDNDModule'},
Expand Down
31 changes: 31 additions & 0 deletions js/frames/packMarginMemoryCorridor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//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};
var masks = [{src:'/img/frames/memoryCorridor/margins/maskHighlights.png', name:'Highlights'}];
//defines available frames
availableFrames = [
{name:'White Extension', src:'/img/frames/memoryCorridor/margins/w.png', bounds:bounds, ogBounds:ogBounds, masks:masks},
{name:'Blue Extension', src:'/img/frames/memoryCorridor/margins/u.png', bounds:bounds, ogBounds:ogBounds, masks:masks},
{name:'Black Extension', src:'/img/frames/memoryCorridor/margins/b.png', bounds:bounds, ogBounds:ogBounds, masks:masks},
{name:'Red Extension', src:'/img/frames/memoryCorridor/margins/r.png', bounds:bounds, ogBounds:ogBounds, masks:masks},
{name:'Green Extension', src:'/img/frames/memoryCorridor/margins/g.png', bounds:bounds, ogBounds:ogBounds, masks:masks},
{name:'Multicolored Extension', src:'/img/frames/memoryCorridor/margins/m.png', bounds:bounds, ogBounds:ogBounds, masks:masks},
{name:'Artifact Extension', src:'/img/frames/memoryCorridor/margins/a.png', bounds:bounds, ogBounds:ogBounds, masks:masks},
{name:'Land Extension', src:'/img/frames/memoryCorridor/margins/l.png', bounds:bounds, ogBounds:ogBounds, masks:masks},
];
//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();
6 changes: 5 additions & 1 deletion js/frames/packMemoryCorridor.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ availableFrames = [
{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:'Artifact Frame', src:'/img/frames/memoryCorridor/a.png', masks: masks},
{name:'Land Frame', src:'/img/frames/memoryCorridor/l.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:'Artifact Power/Toughness Box', src:'/img/frames/memoryCorridor/pt/a.png', bounds: bptBounds},
{name:'Land Power/Toughness Box', src:'/img/frames/memoryCorridor/pt/l.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}
Expand All @@ -29,7 +33,7 @@ document.querySelector('#loadFrameVersion').onclick = async function() {
//resets things so that every frame doesn't have to
await resetCardIrregularities();
//sets card version
card.version = 'pipboy';
card.version = 'memoryCorridor';
//art bounds
card.artBounds = {x:0, y:0, width:2010/2010, height:1587/2814};
autoFitArt();
Expand Down

0 comments on commit d80d600

Please sign in to comment.