Skip to content
Snippets Groups Projects
Commit 338670b9 authored by anon's avatar anon
Browse files

Embed PA Art

parent 744a4484
No related branches found
No related tags found
No related merge requests found
:: Art JS [script]
/*
Displays assistant images. Currently passage-based.
sizePlacement: Image size/center.
3: Large, right. Example: description.
2: Medium, right. Example: random events.
*/
window.assistantArt = function assistantArt(sizePlacement) {
const V = State.variables;
let fileName = "";
if (V.imageChoice === 0 || V.imageChoice === 1) {
if (V.imageChoice === 1) {
fileName += "'resources/vector/avatar/";
} else /* V.imageChoice === 0*/ {
fileName += "'resources/renders/assistant ";
}
switch (V.assistantAppearance) {
case "monstergirl":
fileName += "monstergirl.png'";
break;
case "shemale":
fileName += "shemale.png'";
break;
case "amazon":
fileName += "amazon.png'";
break;
case "businesswoman":
fileName += "businesswoman.png'";
break;
case "goddess":
fileName += "goddess.png'";
break;
case "schoolgirl":
fileName += "schoolgirl.png'";
break;
case "angel":
fileName += "angel.png'";
break;
case "cherub":
fileName += "cherub.png'";
break;
case "ERROR_1606_APPEARANCE_FILE_CORRUPT":
fileName += "corrupt.png'";
break;
case "fairy":
fileName += "fairy.png'";
break;
case "imp":
fileName += "imp.png'";
break;
case "incubus":
fileName += "incubus.png'";
break;
case "pregnant fairy":
fileName += "pfairy.png'";
break;
case "succubus":
fileName += "succubus.png'";
break;
case "witch":
fileName += "witch.png'";
break;
default:
fileName += "default.png'";
}
if (sizePlacement === 3) {
fileName = `<img src=${fileName} style='float:right; border:3px hidden'/>`;
} else if (V.imageChoice === 1) {
fileName = `<img src=${fileName} style='float:right; border:3px hidden' width='282' height='602'/>`;
} else /* V.imageChoice === 0 */ {
fileName = `<img src=${fileName} style='float:right; border:3px hidden' width='300' height='300'/>`;
}
}
return fileName;
};
window.ArtControlRendered = function ArtControlRendered(slave, sizePlacement) {
const V = State.variables;
let fileName = "'resources/renders/";
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment