mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
Add EJS_startButtonName
(closes #686)
This commit is contained in:
parent
99aa6bbb24
commit
ba0f314acc
3 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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"){
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue