MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / onColorsChanged

Method onColorsChanged

tools/mcsim/main.js:215–226  ·  view source on GitHub ↗
(application)

Source from the content-addressed store, hash-verified

213 }
214 }
215 onColorsChanged(application) {
216 let appearance = this.colors;
217 if (appearance == 2)
218 appearance = this.appearance;
219 buildAssets(appearance);
220 if (application.first) {
221 this.quitScreen();
222 application.replace(application.first, new MainContainer(this));
223 this.reloadDevices(application);
224 this.launchScreen();
225 }
226 }
227 // onDisplaying deferred to onAppearanceChanged so that appearance is known
228 onKeyDown(application, key) {
229 if (this.keys[key])

Callers 1

onAppearanceChangedMethod · 0.95

Calls 5

quitScreenMethod · 0.95
reloadDevicesMethod · 0.95
launchScreenMethod · 0.95
buildAssetsFunction · 0.90
replaceMethod · 0.80

Tested by

no test coverage detected