Quick Reference
Setup & Creation 4
| constructor() | Sets up a new instance. |
| loadMainScripts() | Loads the main scripts. |
| makeErrorHtml() | Makes the error html. |
| initEffekseerRuntime() | Initializes the effekseer runtime. |
Checks (True / False) 1
| isPathRandomized() | Whether it is path randomized. |
Actions 2
| run() | Run. |
| showLoadingSpinner() | Shows the loading spinner. |
Events, Commands & Input 6
| onScriptLoad() | Called when script load happens. |
| onScriptError() | Called when script error happens. |
| onWindowLoad() | Called when window load happens. |
| onWindowError() | Called when window error happens. |
| onEffekseerLoad() | Called when effekseer load happens. |
| onEffekseerError() | Called when effekseer error happens. |
Other 7
| askScreenRefresh() | The screen's refresh a second, where the system will say: under Windows, the highest of its video controllers… |
| waitForWebGL() | WebGL that is there in a moment: a graphics driver that refuses the GPU process for a second (it ran out of G… |
| eraseLoadingSpinner() | Erase loading spinner. |
| testXhr() | Test xhr. |
| hookNwjsClose() | Hook nwjs close. |
| afterPluginScripts() | Once every plugin script just added has loaded or failed, as the load event would have waited. |
| printError() | Print error. |
Setup & Creation
constructor
constructor sourcenew Main()
Sets up a new instance.
loadMainScripts
method sourceMain.prototype.loadMainScripts()
Loads the main scripts.
makeErrorHtml
method sourceMain.prototype.makeErrorHtml(name, message)
Makes the error html.
initEffekseerRuntime
method sourceMain.prototype.initEffekseerRuntime()
Initializes the effekseer runtime.
Checks (True / False)
isPathRandomized
method sourceMain.prototype.isPathRandomized()
Whether it is path randomized.
Actions
run
method sourceMain.prototype.run()
Run.
showLoadingSpinner
method sourceMain.prototype.showLoadingSpinner()
Shows the loading spinner.
Events, Commands & Input
onScriptLoad
method sourceMain.prototype.onScriptLoad()
Called when script load happens.
onScriptError
method sourceMain.prototype.onScriptError(e)
Called when script error happens.
onWindowLoad
method sourceMain.prototype.onWindowLoad()
Called when window load happens.
onWindowError
method sourceMain.prototype.onWindowError(event)
Called when window error happens.
onEffekseerLoad
method sourceMain.prototype.onEffekseerLoad()
Called when effekseer load happens.
onEffekseerError
method sourceMain.prototype.onEffekseerError()
Called when effekseer error happens.
Other
askScreenRefresh
method sourceMain.prototype.askScreenRefresh()
The screen's refresh a second, where the system will say: under Windows, the highest of its video controllers (one question to PowerShell, off the game's thread; a second or so).
Details
The screen's refresh a second, where the system will say: under Windows, the highest of its video controllers (one question to PowerShell, off the game's thread; a second or so). Left unknown elsewhere, and when it cannot be had. Read by Graphics.FrameGovernor once the engine is up.
waitForWebGL
method sourceMain.prototype.waitForWebGL(then)
WebGL that is there in a moment: a graphics driver that refuses the GPU process for a second (it ran out of GPU channels, a reset) left the game stopped at "Your browser does not support WebGL" while the next try would have had it.
Details
WebGL that is there in a moment: a graphics driver that refuses the GPU process for a second (it ran out of GPU channels, a reset) left the game stopped at "Your browser does not support WebGL" while the next try would have had it. Asked every half second for ten seconds, each test context given back at once; then one reload of the page (a new page asks for a new GPU process); then on, to the usual message.
eraseLoadingSpinner
method sourceMain.prototype.eraseLoadingSpinner()
Erase loading spinner.
testXhr
method sourceMain.prototype.testXhr()
Test xhr.
hookNwjsClose
method sourceMain.prototype.hookNwjsClose()
Hook nwjs close.
afterPluginScripts
method sourceMain.prototype.afterPluginScripts(then)
Once every plugin script just added has loaded or failed, as the load event would have waited.
printError
method sourceMain.prototype.printError(name, message)
Print error.