()
| 5760 | } |
| 5761 | } |
| 5762 | createCheatsMenu() { |
| 5763 | const body = this.createPopup("Cheats", { |
| 5764 | "Add Cheat": () => { |
| 5765 | const popups = this.createSubPopup(); |
| 5766 | this.cheatMenu.appendChild(popups[0]); |
| 5767 | popups[1].classList.add("ejs_cheat_parent"); |
| 5768 | popups[1].style.width = "100%"; |
| 5769 | const popup = popups[1]; |
| 5770 | const header = this.createElement("div"); |
| 5771 | header.classList.add("ejs_cheat_header"); |
| 5772 | const title = this.createElement("h2"); |
| 5773 | title.innerText = this.localization("Add Cheat Code"); |
| 5774 | title.classList.add("ejs_cheat_heading"); |
| 5775 | const close = this.createElement("button"); |
| 5776 | close.classList.add("ejs_cheat_close"); |
| 5777 | header.appendChild(title); |
| 5778 | header.appendChild(close); |
| 5779 | popup.appendChild(header); |
| 5780 | this.addEventListener(close, "click", (e) => { |
| 5781 | popups[0].remove(); |
| 5782 | }) |
| 5783 | |
| 5784 | const main = this.createElement("div"); |
| 5785 | main.classList.add("ejs_cheat_main"); |
| 5786 | const header3 = this.createElement("strong"); |
| 5787 | header3.innerText = this.localization("Code"); |
| 5788 | main.appendChild(header3); |
| 5789 | main.appendChild(this.createElement("br")); |
| 5790 | const mainText = this.createElement("textarea"); |
| 5791 | mainText.classList.add("ejs_cheat_code"); |
| 5792 | mainText.style.width = "100%"; |
| 5793 | mainText.style.height = "80px"; |
| 5794 | main.appendChild(mainText); |
| 5795 | main.appendChild(this.createElement("br")); |
| 5796 | const header2 = this.createElement("strong"); |
| 5797 | header2.innerText = this.localization("Description"); |
| 5798 | main.appendChild(header2); |
| 5799 | main.appendChild(this.createElement("br")); |
| 5800 | const mainText2 = this.createElement("input"); |
| 5801 | mainText2.type = "text"; |
| 5802 | mainText2.classList.add("ejs_cheat_code"); |
| 5803 | main.appendChild(mainText2); |
| 5804 | main.appendChild(this.createElement("br")); |
| 5805 | popup.appendChild(main); |
| 5806 | |
| 5807 | const footer = this.createElement("footer"); |
| 5808 | const submit = this.createElement("button"); |
| 5809 | const closeButton = this.createElement("button"); |
| 5810 | submit.innerText = this.localization("Submit"); |
| 5811 | closeButton.innerText = this.localization("Close"); |
| 5812 | submit.classList.add("ejs_button_button"); |
| 5813 | closeButton.classList.add("ejs_button_button"); |
| 5814 | submit.classList.add("ejs_popup_submit"); |
| 5815 | closeButton.classList.add("ejs_popup_submit"); |
| 5816 | submit.style["background-color"] = "rgba(var(--ejs-primary-color),1)"; |
| 5817 | footer.appendChild(submit); |
| 5818 | const span = this.createElement("span"); |
| 5819 | span.innerText = " "; |
no test coverage detected