mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 05:14:53 -05:00
49 lines
1.9 KiB
JavaScript
49 lines
1.9 KiB
JavaScript
var versionM15ImageList = [
|
|
['White Frame', 'data/images/m15/m15FrameW.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)']],
|
|
['Blue Frame', 'data/images/m15/m15FrameU.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)']],
|
|
['Black Frame', 'data/images/m15/m15FrameB.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)']],
|
|
['Red Frame', 'data/images/m15/m15FrameR.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)']],
|
|
['Green Frame', 'data/images/m15/m15FrameG.png', 0, 0, 1, 1, ['Full', 'Pinline (m15)']]
|
|
]
|
|
var versionM15MaskList = [['Right Half', 'data/images/maskRightHalf.png'], ['Pinline (m15)', 'data/images/m15/m15MaskPinline.png'], ['Full', 'data/images/maskFull.png']]
|
|
if (!loadedVersions.includes('m15')) {
|
|
loadedVersions.push("m15")
|
|
loadMaskImages(versionM15MaskList)
|
|
loadFrameImages(versionM15ImageList)
|
|
}
|
|
loadTextOptions([
|
|
new cardText('Card Title', 'Awesome Card Tho!!!', 0.1, 0.1, 0.8, 0.8, 'belerenb', 0.0177, 'black'),
|
|
new cardText('Card Type', '', 0.1, 0.1, 0.8, 0.8, 'belerenb', 0.0177, 'black'),
|
|
new cardText('Rules Text', '', 0.1, 0.1, 0.8, 0.8, 'mplantin', 0.0177, 'black'),
|
|
new cardText('Power/Toughness', '', 0.1, 0.1, 0.8, 0.8, 'mplantin', 0.0177, 'black')
|
|
])
|
|
|
|
artX = 0
|
|
artY = 0
|
|
artWidth = 1500
|
|
artHeight = 500
|
|
bottomInfoFunction = 'bottomInfoM15'
|
|
|
|
manaCostXPath = 'scaleX(0.05) * manaSymbolIndex'
|
|
manaCostYPath = 'scaleY(0.1)'
|
|
manaCostDiameter = 'scaleX(0.05)'
|
|
manaCostShadowOffset = '[scaleX(-0.01), scaleY(0.01)]'
|
|
|
|
setSymbolX = [scaleX(0.8), 'right']
|
|
setSymbolY = [scaleY(0.5), 'left']
|
|
setSymbolWidth = scaleX(0.1)
|
|
setSymbolHeight = scaleY(0.1)
|
|
|
|
watermarkX = scaleX(0.5)
|
|
watermarkY = scaleY(0.5)
|
|
watermarkWidth = scaleX(1)
|
|
watermarkHeight = scaleY(1)
|
|
|
|
function bottomInfoM15() {
|
|
bottomInfoContext.clearRect(0, 0, cardWidth, cardHeight)
|
|
writeText(
|
|
[
|
|
{text: 'EEEEEEEE', x: 0, y: 0.05, width: 0.8, height: 0.05, font: 'mplantin', fontSize: 0.05, fontColor: 'black', otherParameters: ['oneLine=true']},
|
|
], bottomInfoContext)
|
|
// document.body.appendChild(bottomInfoCanvas)
|
|
} |