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

Method drawCfgInvertColors

code/main/Cfg.ts:78–85  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

76 }
77
78 private drawCfgInvertColors(x: number, y: number): void{
79 // Text
80 this.renderArea.drawString(Database.getText("cfgInvertColors"), x, y);
81 this.renderArea.drawString(Database.getTranslatedText("cfgInvertColors"), x, y + 1, true);
82
83 // The checkbox
84 this.renderArea.addCheckbox(x + Algo.takeBiggest(Database.getText("cfgInvertColors").length, Database.getTranslatedText("cfgInvertColors").length) + 2, y, new CallbackCollection(this.invertColorsChecked.bind(this)), new CallbackCollection(this.invertColorsUnchecked.bind(this)), "cfgInvertColorsCheckbox", Saving.loadBool("gameInvertedColors"));
85 }
86
87 private drawCfgLanguage(x: number, y: number): void{
88 // Text

Callers 1

updateMethod · 0.95

Calls 4

drawStringMethod · 0.80
addCheckboxMethod · 0.80
bindMethod · 0.80
getTextMethod · 0.45

Tested by

no test coverage detected