Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Japanese Showcase & Holostamp (DSK) #45

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
1 change: 1 addition & 0 deletions js/frameSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const frameNames = new Map ([
['Colorshifted (Planar Chaos)', 'Colorshifted'],
['Brawl Legend Crowns', 'Brawl'],
//showcase
['Japan', 'JapanShowcase'],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make it say "Japan Showcase" here as well?

['Paranormal (DSK)', 'Paranormal'],
['Bloomburrow Borderless (BLB)', 'BloomburrowBorderless'],
['Woodland (BLB)', 'Woodland'],
Expand Down
3 changes: 2 additions & 1 deletion js/frames/groupShowcase-5.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ loadFramePacks([
{name:'Generic Showcase Frames', value:'disabled'},
{name:'Borderless', value:'GenericShowcase'},
{name:'Borderless (Alt)', value:'Borderless'},
{name:'Japan', value:'JapanShowcase'},
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make it say "Japan Showcase" here as well?

{name:'Fullart', value:'M15ClearTextboxes'},
{name:'Nickname ("Godzilla")', value:'M15Nickname'},
{name:'Extended Art (Regular)', value:'M15BoxTopper'},
Expand All @@ -67,7 +68,7 @@ loadFramePacks([
{name:'Etched (Snow)', value:'EtchedSnow'},
{name:'Legend Crowns (Etched)', value:'LegendCrownsEtched'},
{name:'Inner Crowns (Etched)', value:'InnerCrownsEtched'},

{name:'Universes Beyond', value:'disabled'},
{name:'Universes Beyond', value:'UB'},
{name:'Universes Beyond (Full art)', value:'UBFull'},
Expand Down
60 changes: 60 additions & 0 deletions js/frames/packJapanShowcase.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/m15/japaneseShowcase/japaneseShowcaseMaskPinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/m15MaskTitle.png', name:'Title'}, {src:'/img/frames/m15/regular/m15MaskType.png', name:'Type'}, {src:'/img/frames/m15/regular/m15MaskRules.png', name:'Rules'}, {src:'/img/frames/m15/regular/m15MaskBorder.png', name:'Border'}];
var bounds = {x:0.7771, y:0.8876, width:0.1720, height:0.0593};
var boundsStamp = {x:0.4365, y:0.902, width:0.1264, height:0.0452};
//defines available frames
availableFrames = [
{name:'White Frame', src:'/img/frames/m15/japaneseShowcase/japaneseShowcaseFrameW.png', masks:masks},
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make the frame file names be just "w.png", "u.png", etc?
P/T and Holo Stamps can go in their own subdirectory, so the path would be /pt/u.png, and stamps would be /stamp/u.png, for example.
I have been using this naming scheme for my new frames so that they can easily be added to the Autoframe system in the future.

{name:'Blue Frame', src:'/img/frames/m15/japaneseShowcase/japaneseShowcaseFrameU.png', masks:masks},
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And finally, can we change the "japaneseShowcase" in the filepath here to "japanShowcase"?

{name:'Black Frame', src:'/img/frames/m15/japaneseShowcase/japaneseShowcaseFrameB.png', masks:masks},
{name:'Red Frame', src:'/img/frames/m15/japaneseShowcase/japaneseShowcaseFrameR.png', masks:masks},
{name:'Green Frame', src:'/img/frames/m15/japaneseShowcase/japaneseShowcaseFrameG.png', masks:masks},
{name:'Multicolored Frame', src:'/img/frames/m15/japaneseShowcase/japaneseShowcaseFrameM.png', masks:masks},
{name:'Artifact Frame', src:'/img/frames/m15/japaneseShowcase/japaneseShowcaseFrameA.png', masks:masks},
{name:'Land Frame', src:'/img/frames/m15/japaneseShowcase/japaneseShowcaseFrameL.png', masks:masks},

{name:'White Power/Toughness', src:'/img/frames/m15/japaneseShowcase/japaneseShowcasePTW.png', bounds:bounds},
{name:'Blue Power/Toughness', src:'/img/frames/m15/japaneseShowcase/japaneseShowcasePTU.png', bounds:bounds},
{name:'Black Power/Toughness', src:'/img/frames/m15/japaneseShowcase/japaneseShowcasePTB.png', bounds:bounds},
{name:'Red Power/Toughness', src:'/img/frames/m15/japaneseShowcase/japaneseShowcasePTR.png', bounds:bounds},
{name:'Green Power/Toughness', src:'/img/frames/m15/japaneseShowcase/japaneseShowcasePTG.png', bounds:bounds},
{name:'Multicolored Power/Toughness', src:'/img/frames/m15/japaneseShowcase/japaneseShowcasePTM.png', bounds:bounds},
{name:'Artifact Power/Toughness', src:'/img/frames/m15/japaneseShowcase/japaneseShowcasePTA.png', bounds:bounds},

{name:'White Holo Stamp', src:'/img/frames/m15/japaneseShowcase/japaneseShowcaseHolostampW.png', bounds:boundsStamp},
{name:'Blue Holo Stamp', src:'/img/frames/m15/japaneseShowcase/japaneseShowcaseHolostampU.png', bounds:boundsStamp},
{name:'Black Holo Stamp', src:'/img/frames/m15/japaneseShowcase/japaneseShowcaseHolostampB.png', bounds:boundsStamp},
{name:'Red Holo Stamp', src:'/img/frames/m15/japaneseShowcase/japaneseShowcaseHolostampR.png', bounds:boundsStamp},
{name:'Green Holo Stamp', src:'/img/frames/m15/japaneseShowcase/japaneseShowcaseHolostampG.png', bounds:boundsStamp},
{name:'Multicolored Holo Stamp', src:'/img/frames/m15/japaneseShowcase/japaneseShowcaseHolostampM.png', bounds:boundsStamp},
{name:'Artifact Holo Stamp', src:'/img/frames/m15/japaneseShowcase/japaneseShowcaseHolostampA.png', bounds:boundsStamp},
{name:'Land Holo Stamp', src:'/img/frames/m15/japaneseShowcase/japaneseShowcaseHolostampL.png', bounds:boundsStamp},
];
//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 = 'japaneseShowcase';
//art bounds
card.artBounds = {x:0, y:0, width:1, height:0.9224};
autoFitArt();
//set symbol bounds
card.setSymbolBounds = {x:0.91, y:0.635, 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:65/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, outlineWidth:0.008, color:'white'},
type: {name:'Type', text:'', x:0.0854, y:0.612, width:0.71, height:0.0543, oneLine:true, font:'belerenb', size:0.0279, outlineWidth:0.008, color:'white'},
rules: {name:'Rules Text', text:'', x:0.086, y:0.692, width:0.771, height:0.206, size:0.033, outlineWidth:0.008, color:'white'},
pt: {name:'Power/Toughness', text:'', x:0.804, y:0.896, width:0.1180, height:0.049, size:0.04, font:'belerenbsc', oneLine:true, align:'center', color:'white'}
});
}
//loads available frames
loadFramePack();