forked from MapComplete/MapComplete
Add hotkeys, document hotkeys, make 'DefaultGUI' runnable via NodeJS, generate hotkey documentation
This commit is contained in:
parent
e2419c19cd
commit
43613e4ece
16 changed files with 328 additions and 89 deletions
|
|
@ -24,6 +24,10 @@ export default abstract class BaseUIElement {
|
|||
AttachTo(divId: string) {
|
||||
let element = document.getElementById(divId)
|
||||
if (element === null) {
|
||||
if (Utils.runningFromConsole) {
|
||||
this.ConstructElement()
|
||||
return
|
||||
}
|
||||
throw "SEVERE: could not attach UIElement to " + divId
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue