mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 05:14:53 -05:00
inventions + gridlines
This commit is contained in:
BIN
img/frames/m15/invention/phyrexian.png
Normal file
BIN
img/frames/m15/invention/phyrexian.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 520 KiB |
BIN
img/frames/m15/invention/phyrexianPT.png
Normal file
BIN
img/frames/m15/invention/phyrexianPT.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
BIN
img/frames/m15/invention/phyrexianPTThumb.png
Normal file
BIN
img/frames/m15/invention/phyrexianPTThumb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
img/frames/m15/invention/phyrexianThumb.png
Normal file
BIN
img/frames/m15/invention/phyrexianThumb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
@@ -1812,6 +1812,31 @@ function drawNewGuidelines() {
|
|||||||
}
|
}
|
||||||
guidelinesContext.fillStyle = 'red';
|
guidelinesContext.fillStyle = 'red';
|
||||||
guidelinesContext.fillRect(setSymbolX, setSymbolY, setSymbolWidth, setSymbolHeight);
|
guidelinesContext.fillRect(setSymbolX, setSymbolY, setSymbolWidth, setSymbolHeight);
|
||||||
|
// grid
|
||||||
|
guidelinesContext.globalAlpha = 1;
|
||||||
|
guidelinesContext.beginPath();
|
||||||
|
guidelinesContext.strokeStyle = 'gray';
|
||||||
|
guidelinesContext.lineWidth = 1;
|
||||||
|
const boxPadding = 25;
|
||||||
|
for (var x = 0; x <= card.width; x += boxPadding) {
|
||||||
|
guidelinesContext.moveTo(x, 0);
|
||||||
|
guidelinesContext.lineTo(x, card.height);
|
||||||
|
}
|
||||||
|
for (var y = 0; y <= card.height; y += boxPadding) {
|
||||||
|
guidelinesContext.moveTo(0, y);
|
||||||
|
guidelinesContext.lineTo(card.width, y);
|
||||||
|
}
|
||||||
|
guidelinesContext.stroke();
|
||||||
|
//center lines
|
||||||
|
guidelinesContext.beginPath();
|
||||||
|
guidelinesContext.strokeStyle = 'black';
|
||||||
|
guidelinesContext.lineWidth = 3;
|
||||||
|
guidelinesContext.moveTo(card.width / 2, 0);
|
||||||
|
guidelinesContext.lineTo(card.width / 2, card.height);
|
||||||
|
guidelinesContext.moveTo(0, card.height / 2);
|
||||||
|
guidelinesContext.lineTo(card.width, card.height / 2);
|
||||||
|
guidelinesContext.stroke();
|
||||||
|
//draw to card
|
||||||
drawCard();
|
drawCard();
|
||||||
}
|
}
|
||||||
//Various loaders
|
//Various loaders
|
||||||
|
@@ -6,7 +6,9 @@ availableFrames = [
|
|||||||
{name:'Invention Frame', src:'/img/frames/m15/invention/inventionFrameA.png', masks:masks},
|
{name:'Invention Frame', src:'/img/frames/m15/invention/inventionFrameA.png', masks:masks},
|
||||||
{name:'Invention Power/Toughness', src:'/img/frames/m15/invention/inventionPT.png', bounds:bounds},
|
{name:'Invention Power/Toughness', src:'/img/frames/m15/invention/inventionPT.png', bounds:bounds},
|
||||||
{name:'Silver Frame', src:'/img/frames/m15/invention/a.png', masks:masks},
|
{name:'Silver Frame', src:'/img/frames/m15/invention/a.png', masks:masks},
|
||||||
{name:'Silver Power/Toughness', src:'/img/frames/m15/invention/apt.png', bounds:bounds}
|
{name:'Silver Power/Toughness', src:'/img/frames/m15/invention/apt.png', bounds:bounds},
|
||||||
|
{name:'Phyrexian Frame', src:'/img/frames/m15/invention/phyrexian.png', masks:masks},
|
||||||
|
{name:'Phyrexian Power/Toughness', src:'/img/frames/m15/invention/phyrexianPT.png', bounds:bounds}
|
||||||
];
|
];
|
||||||
//disables/enables the "Load Frame Version" button
|
//disables/enables the "Load Frame Version" button
|
||||||
document.querySelector('#loadFrameVersion').disabled = false;
|
document.querySelector('#loadFrameVersion').disabled = false;
|
||||||
|
Reference in New Issue
Block a user