diff --git a/img/frames/breakingNews/margin.png b/img/frames/breakingNews/margin.png new file mode 100644 index 00000000..68b64d68 Binary files /dev/null and b/img/frames/breakingNews/margin.png differ diff --git a/img/frames/breakingNews/marginThumb.png b/img/frames/breakingNews/marginThumb.png new file mode 100644 index 00000000..acbfd89a Binary files /dev/null and b/img/frames/breakingNews/marginThumb.png differ diff --git a/js/frames/groupMargin.js b/js/frames/groupMargin.js index 37527c91..3cc40439 100644 --- a/js/frames/groupMargin.js +++ b/js/frames/groupMargin.js @@ -1,5 +1,6 @@ loadFramePacks([ {name:'Generic Margins', value:'Margin-1'}, + {name:'Breaking News Margin', value:'MarginBreakingNews'}, {name:'Vault Margin', value:'MarginVault'}, {name:'Wanted Poster Margin', value:'MarginWanted'}, {name:'Enchanting Tales Margins', value:'MarginEnchantingTales'}, diff --git a/js/frames/packMarginBreakingNews.js b/js/frames/packMarginBreakingNews.js new file mode 100644 index 00000000..d08abea2 --- /dev/null +++ b/js/frames/packMarginBreakingNews.js @@ -0,0 +1,13 @@ +//Create objects for common properties across available frames +var bounds = {x:-88.5/2010, y:-79/2817, width:2185/2010, height:2975/2817}; +var ogBounds = {x:0, y:0, width:1, height:1}; +//defines available frames +availableFrames = [ + {name:'Wanted Extension', src:'/img/frames/breakingNews/margin.png', bounds:bounds, ogBounds:ogBounds} +]; +//disables/enables the "Load Frame Version" button +document.querySelector('#loadFrameVersion').disabled = false; +//defines process for loading this version, if applicable +document.querySelector('#loadFrameVersion').onclick = loadMarginVersion; +//loads available frames +loadFramePack(); \ No newline at end of file