Skip to content

Commit

Permalink
Add Marker card frame (#46)
Browse files Browse the repository at this point in the history
This is the frame that is used for Plot and On an Adventure marker
cards.
  • Loading branch information
Ape authored Sep 29, 2024
1 parent aeae369 commit 48c3fa7
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
Binary file added img/frames/token/marker/marker.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/token/marker/markerThumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion js/frameSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ const frameNames = new Map ([
['Tall Tokens', 'TokenTall-1'],
['Short Tokens', 'TokenShort-1'],
['Monarch Token', 'TokenMonarch'],
['Marker Card', 'TokenMarker'],
['Initiative Token', 'TokenInitiative'],
['Day/Night Marker', 'TokenDayNight'],
['Planeswalker Emblems', 'Emblem'],
Expand Down Expand Up @@ -325,4 +326,4 @@ function autocomplete(inp, arr) {
document.addEventListener("click", function (e) {
closeAllLists(e.target);
});
}
}
3 changes: 2 additions & 1 deletion js/frames/groupToken-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ loadFramePacks([
{name:'Tall', value:'TokenTall-1'},
{name:'Short', value:'TokenShort-1'},
{name:'Monarch Token', value:'TokenMonarch'},
{name:'Marker Card', value:'TokenMarker'},
{name:'Initiative Token', value:'TokenInitiative'},
{name:'Day/Night Marker', value:'TokenDayNight'},
{name:'Planeswalker Emblems', value:'Emblem'},
Expand All @@ -24,4 +25,4 @@ loadFramePacks([
{name:'"The List" Stamp', value:'TheList'},
{name:'Custom Addons', value:'disabled'},
{name:'Brawl Legend Crowns', value:'Brawl'}
])
])
29 changes: 29 additions & 0 deletions js/frames/packTokenMarker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//defines available frames
availableFrames = [
{name:'Marker Frame', src:'/img/frames/token/marker/marker.png'}
];
//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 = 'tokenMarker';
//art bounds
card.artBounds = {x:0.04, y:0.0286, width:0.92, height:0.8953};
autoFitArt();
//set symbol bounds
card.setSymbolBounds = {x:0.9213, y:0.7024, width:0.12, height:0.0410, vertical:'center', horizontal: 'right'};
resetSetSymbol();
//watermark bounds
card.watermarkBounds = {x:0.5, y:0.8458, width:0.75, height:0.1191};
resetWatermark();
//text
loadTextOptions({
title: {name:'Title', text:'', x:0.0854, y:0.6781, width:0.8292, height:0.0543, oneLine:true, font:'belerenbsc', size:0.0381, color:'white', align:'center'},
rules: {name:'Rules Text', text:'', x:0.086, y:0.7424, width:0.828, height:0.1767, size:0.0362, color:'white'},
});
}
//loads available frames
loadFramePack();

0 comments on commit 48c3fa7

Please sign in to comment.