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

Method drawWarning

code/main/Save.ts:314–319  ·  view source on GitHub ↗
(text: string, x: number, y: number, translated: boolean = false)

Source from the content-addressed store, hash-verified

312 }
313
314 private drawWarning(text: string, x: number, y: number, translated: boolean = false): void{
315 if(text != ""){
316 this.renderArea.drawString(text, x, y, translated);
317 this.renderArea.addColor(x, x + text.length, y, new Color(ColorType.SAVE_RED));
318 }
319 }
320
321 private oneSecondCallback(): void{
322 // If there's no last minute or it's different from the current minute

Callers 3

drawLocalLoadMethod · 0.95
drawLocalSaveMethod · 0.95
drawFileSaveMethod · 0.95

Calls 2

drawStringMethod · 0.80
addColorMethod · 0.45

Tested by

no test coverage detected