Add EJS_startButtonName (closes #686)

This commit is contained in:
Ethan O'Brien 2023-10-02 11:58:16 -05:00
parent 99aa6bbb24
commit ba0f314acc
3 changed files with 6 additions and 2 deletions

View file

@ -158,7 +158,10 @@
font-weight: bolder;
position: relative;
text-decoration: none;
width: 200px;
width: fit-content;
padding-left: 40px;
padding-right: 40px;
white-space: nowrap;
height: 45px;
border: 0;
color: #fff !important;

View file

@ -430,7 +430,7 @@ class EmulatorJS {
button.classList.add("ejs_start_button_border");
border = 1;
}
button.innerText = this.localization("Start Game");
button.innerText = (typeof this.config.startBtnName === 'string') ? this.config.startBtnName : this.localization("Start Game");
if (this.config.alignStartButton == "top"){
button.style.bottom = "calc(100% - 20px)";
}else if (this.config.alignStartButton == "center"){

View file

@ -80,6 +80,7 @@
config.controlScheme = window.EJS_controlScheme;
config.threads = window.EJS_threads;
config.disableCue = window.EJS_disableCue;
config.startBtnName = window.EJS_startButtonName;
if (typeof window.EJS_language === "string" && window.EJS_language !== "en-US") {
try {