forked from GithubMirrors/cardconjurer
fixing {roll20} and adventure masks
This commit is contained in:
16
img/frames/adventure/regular/book.svg
Normal file
16
img/frames/adventure/regular/book.svg
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="1500" height="2100" viewBox="0 0 1500 2100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
||||
<rect id="Card" x="0" y="0" width="1500" height="2100" style="fill:none;"/>
|
||||
<g id="Card1" serif:id="Card">
|
||||
<g transform="matrix(1.00667,0,0,1.01135,-0.52,-16.919)">
|
||||
<clipPath id="_clip1">
|
||||
<rect x="0.517" y="16.729" width="1490.07" height="1915.27"/>
|
||||
</clipPath>
|
||||
<g clip-path="url(#_clip1)">
|
||||
<path d="M75.02,1866L76.013,1357C84.221,1349.43 88.46,1342.86 94.02,1330.01L94.02,1315.99C210.453,1334.45 417.669,1320.65 559.624,1320.3C660.269,1320.04 730.068,1317.13 747.5,1340.98C768.194,1319.1 863.498,1319.13 976.955,1319.59C1146.26,1320.27 1350.78,1325.77 1401,1315L1401,1332.85C1406.28,1343.66 1412.09,1352.69 1421.05,1359.98L1421.05,1860.02C1410.07,1864.12 1408.6,1873.51 1401,1882L1401,1932L96,1932L96,1880C90.397,1875.5 81.591,1870.09 75.02,1866Z" style="fill:rgb(0,123,67);"/>
|
||||
<path d="M74.026,1866C74.026,1866.34 74.202,1866.66 74.493,1866.84C80.891,1870.82 89.418,1876.05 95.006,1880.48C95.007,1880.48 95.007,1932 95.007,1932C95.007,1932.55 95.451,1932.99 96,1932.99L1401,1932.99C1401.55,1932.99 1401.99,1932.55 1401.99,1932L1401.99,1882.37C1405.67,1878.18 1407.92,1873.79 1410.58,1869.92C1413.16,1866.16 1416.13,1862.91 1421.39,1860.95C1421.78,1860.8 1422.04,1860.43 1422.04,1860.02L1422.04,1359.98C1422.04,1359.68 1421.91,1359.4 1421.67,1359.21C1412.89,1352.07 1407.18,1343.2 1401.99,1332.63C1401.99,1332.63 1401.99,1315 1401.99,1315C1401.99,1314.7 1401.86,1314.42 1401.62,1314.23C1401.39,1314.04 1401.08,1313.97 1400.79,1314.03C1350.6,1324.8 1146.18,1319.28 976.959,1318.6C897.466,1318.28 826.876,1318.17 784.571,1325.65C766.941,1328.76 754.179,1333.24 747.598,1339.48C740.215,1330.36 724.937,1325.15 702.949,1322.34C669.39,1318.05 620.063,1319.16 559.622,1319.31C417.715,1319.66 210.57,1333.47 94.176,1315.01C93.889,1314.97 93.596,1315.05 93.375,1315.24C93.154,1315.42 93.026,1315.7 93.026,1315.99L93.026,1329.81C87.577,1342.37 83.402,1348.84 75.338,1356.28C75.136,1356.46 75.02,1356.72 75.02,1357L74.026,1866ZM75.02,1866L76.013,1357C84.221,1349.43 88.46,1342.86 94.02,1330.01L94.02,1315.99C210.453,1334.45 417.669,1320.65 559.624,1320.3C660.269,1320.04 730.068,1317.13 747.5,1340.98C768.194,1319.1 863.498,1319.13 976.955,1319.59C1146.26,1320.27 1350.78,1325.77 1401,1315L1401,1332.85C1406.28,1343.66 1412.09,1352.69 1421.05,1359.98L1421.05,1860.02C1410.07,1864.12 1408.6,1873.51 1401,1882L1401,1932L96,1932L96,1880C90.397,1875.5 81.591,1870.09 75.02,1866Z"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.9 KiB |
BIN
img/frames/adventure/regular/bookThumb.png
Normal file
BIN
img/frames/adventure/regular/bookThumb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
@@ -758,6 +758,7 @@ function writeText(textObject, targetContext) {
|
||||
var textFontStyle = textObject.fontStyle || '';
|
||||
var manaPlacementCounter = 0;
|
||||
var realTextAlign = textAlign;
|
||||
savedRollYPosition = null;
|
||||
//variables that track various... things?
|
||||
var newLineSpacing = 0;
|
||||
var textSize = startingTextSize;
|
||||
@@ -1012,8 +1013,8 @@ function writeText(textObject, targetContext) {
|
||||
paragraphContext.drawImage(lineCanvas, horizontalAdjust, currentY);
|
||||
lineY = 0;
|
||||
lineContext.clearRect(0, 0, lineCanvas.width, lineCanvas.height);
|
||||
//boxes for roll a d20 cards
|
||||
if (savedRollYPosition && (newLineSpacing != 0 || !(newLine && !textOneLine))) {
|
||||
// boxes for 'roll a d20' cards
|
||||
if (savedRollYPosition != null && (newLineSpacing != 0 || !(newLine && !textOneLine))) {
|
||||
if (savedRollYPosition != -1) {
|
||||
paragraphContext.globalCompositeOperation = 'destination-over';
|
||||
paragraphContext.globalAlpha = 0.25;
|
||||
|
@@ -1,16 +1,16 @@
|
||||
//Create objects for common properties across available frames
|
||||
var masks = [{src:'/img/frames/adventure/regular/pinline.svg', name:'Pinline'}, {src:'/img/frames/m15/regular/m15MaskTitle.png', name:'Title'}, {src:'/img/frames/m15/regular/m15MaskType.png', name:'Type'}];
|
||||
var masks = [{src:'/img/frames/adventure/regular/pinline.svg', name:'Pinline'}, {src:'/img/frames/m15/regular/m15MaskTitle.png', name:'Title'}, {src:'/img/frames/m15/regular/m15MaskType.png', name:'Type'}, {src:'/img/frames/adventure/regular/book.svg', name:'Rules'}];
|
||||
var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733};
|
||||
//defines available frames
|
||||
availableFrames = [
|
||||
{name:'White Frame', src:'/img/frames/adventure/regular/w.png'},
|
||||
{name:'Blue Frame', src:'/img/frames/adventure/regular/u.png'},
|
||||
{name:'Black Frame', src:'/img/frames/adventure/regular/b.png'},
|
||||
{name:'Red Frame', src:'/img/frames/adventure/regular/r.png'},
|
||||
{name:'Green Frame', src:'/img/frames/adventure/regular/g.png'},
|
||||
{name:'Multicolored Frame', src:'/img/frames/adventure/regular/m.png'},
|
||||
{name:'Artifact Frame', src:'/img/frames/adventure/regular/a.png'},
|
||||
{name:'Land Frame', src:'/img/frames/adventure/regular/l.png'},
|
||||
{name:'White Frame', src:'/img/frames/adventure/regular/w.png', masks:masks},
|
||||
{name:'Blue Frame', src:'/img/frames/adventure/regular/u.png', masks:masks},
|
||||
{name:'Black Frame', src:'/img/frames/adventure/regular/b.png', masks:masks},
|
||||
{name:'Red Frame', src:'/img/frames/adventure/regular/r.png', masks:masks},
|
||||
{name:'Green Frame', src:'/img/frames/adventure/regular/g.png', masks:masks},
|
||||
{name:'Multicolored Frame', src:'/img/frames/adventure/regular/m.png', masks:masks},
|
||||
{name:'Artifact Frame', src:'/img/frames/adventure/regular/a.png', masks:masks},
|
||||
{name:'Land Frame', src:'/img/frames/adventure/regular/l.png', masks:masks},
|
||||
{name:'White Power/Toughness', src:'/img/frames/m15/regular/m15PTW.png', bounds:bounds},
|
||||
{name:'Blue Power/Toughness', src:'/img/frames/m15/regular/m15PTU.png', bounds:bounds},
|
||||
{name:'Black Power/Toughness', src:'/img/frames/m15/regular/m15PTB.png', bounds:bounds},
|
||||
|
Reference in New Issue
Block a user