mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 05:14:53 -05:00
remake
This commit is contained in:
39
js/frames/packExpeditionBFZ.js
Normal file
39
js/frames/packExpeditionBFZ.js
Normal file
@@ -0,0 +1,39 @@
|
||||
//Create objects for common properties across available frames
|
||||
var masks = [{src:'/img/frames/expedition/bfz/expeditionMaskPinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/m15MaskTitle.png', name:'Title'}, {src:'/img/frames/expedition/bfz/expeditionMaskType.png', name:'Type'}, {src:'/img/frames/expedition/bfz/expeditionMaskTextbox.png', name:'Rules'}, {src:'/img/frames/expedition/bfz/expeditionMaskFrame.png', name:'Frame'}, {src:'/img/frames/m15/regular/m15MaskBorder.png', name:'Border'}];
|
||||
//defines available frames
|
||||
availableFrames = [
|
||||
{name:'White Frame', src:'/img/frames/expedition/bfz/expeditionFrameW.png', masks:masks},
|
||||
{name:'Blue Frame', src:'/img/frames/expedition/bfz/expeditionFrameU.png', masks:masks},
|
||||
{name:'Black Frame', src:'/img/frames/expedition/bfz/expeditionFrameB.png', masks:masks},
|
||||
{name:'Red Frame', src:'/img/frames/expedition/bfz/expeditionFrameR.png', masks:masks},
|
||||
{name:'Green Frame', src:'/img/frames/expedition/bfz/expeditionFrameG.png', masks:masks},
|
||||
{name:'Multicolored Frame', src:'/img/frames/expedition/bfz/expeditionFrameM.png', masks:masks},
|
||||
{name:'Land Frame', src:'/img/frames/expedition/bfz/expeditionFrameL.png', masks:masks},
|
||||
{name:'Colorless Frame', src:'/img/frames/expedition/bfz/expeditionFrameA.png', masks:masks}
|
||||
];
|
||||
//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 = 'expeditionBFZ';
|
||||
//art bounds
|
||||
card.artBounds = {x:0.0754, y:0.111, width:0.8494, height:0.6991};
|
||||
autoFitArt();
|
||||
//set symbol bounds
|
||||
card.setSymbolBounds = {x:0.9214, y:0.8439, width:0.12, height:0.0381, vertical:'center', horizontal: 'right'};
|
||||
resetSetSymbol();
|
||||
//watermark bounds
|
||||
card.watermarkBounds = {x:0.5, y:0.7762, width:0.75, height:0.2305};
|
||||
resetWatermark();
|
||||
//text
|
||||
loadTextOptions({
|
||||
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.8196, width:0.8292, height:0.0543, oneLine:true, font:'belerenb', size:0.0324},
|
||||
rules: {name:'Rules Text', text:'', x:0.09, y:0.5996, width:0.82, height:0.2072, size:0.0362},
|
||||
});
|
||||
}
|
||||
//loads available frames
|
||||
loadFramePack();
|
Reference in New Issue
Block a user