MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / setInvertedColors

Method setInvertedColors

code/main/Cfg.ts:165–171  ·  view source on GitHub ↗
(invertedColors: boolean)

Source from the content-addressed store, hash-verified

163 }
164
165 private setInvertedColors(invertedColors: boolean): void{
166 Saving.saveBool("gameInvertedColors", invertedColors);
167 this.getGame().applyInvertedColorsToCss();
168 this.update();
169 this.getGame().updateStatusBar(); // We also update the status bar to fix the selected tab's color
170 this.getGame().updatePlace();
171 }
172
173 private update(): void{
174 // Erase everything

Callers 2

invertColorsCheckedMethod · 0.95
invertColorsUncheckedMethod · 0.95

Calls 5

updateMethod · 0.95
updateStatusBarMethod · 0.80
updatePlaceMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected