rpg-convers
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -36,3 +36,3 @@ const generateStyle = require("./tools/generateStyle.js") | ||
this.convText.innerHTML = message | ||
this.convText.style.float = isLeft ? "left" : "right" | ||
this.convText.style.left = isLeft ? "10%" : "40%" | ||
this.convNextBtn.innerHTML = btnName ? btnName : "next" | ||
@@ -77,3 +77,3 @@ } | ||
setImageOfSpeaker(imageDirectory,isLeft){ | ||
this.convCharacImg.style.left = isLeft ? "85%" : "0" | ||
this.convCharacImg.style.left = isLeft ? "80%" : "0" | ||
if(imageDirectory){ | ||
@@ -80,0 +80,0 @@ this.convCharacImg.src = imageDirectory |
{ | ||
"name": "rpg-convers", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "An rpg conversation maker, To use first call new Conversation([{name: '', message: '', isLeft: bool define if the speaker will be on left or right, imageDirectory: the file for your image if have}], howfast The speaker is in miliseconds, callback function ) ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,2 +19,3 @@ function generateStyle(element, style, elementType){ | ||
eStyle.transition = ".3s" | ||
eStyle.zIndex = "3" | ||
break | ||
@@ -25,3 +26,2 @@ case "text": | ||
eStyle.width = "70%" | ||
eStyle.float = "left" | ||
eStyle.fontSize = fontSize ? fontSize : "1rem" | ||
@@ -43,3 +43,3 @@ break | ||
eStyle.height = "auto" | ||
eStyle.padding = "3px 15px" | ||
eStyle.padding = "4px 15px" | ||
eStyle.borderRadius = "5px" | ||
@@ -49,2 +49,3 @@ eStyle.border = border ? border : "1px solid #a7a7a7" | ||
eStyle.cursor = "pointer" | ||
eStyle.fontSize = fontSize ? fontSize : "1.1rem" | ||
break; | ||
@@ -51,0 +52,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8185
166