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

Method loadTheDesert

code/main/MainMap.ts:396–414  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

394 }
395
396 private loadTheDesert(x: number, y: number): void{
397 // Buttons
398 this.renderArea.addMultipleAsciiButtons("mapTheDesertButton",
399 x, x+29, y+2,
400 x, x+29, y+3,
401 x, x+29, y+4,
402 x, x+29, y+5,
403 x, x+29, y+6,
404 x, x+29, y+7,
405 x, x+28, y+8,
406 x, x+27, y+9,
407 x+1, x+26, y+10,
408 x+2, x+25, y+11);
409 // Comments
410 this.renderArea.addFullComment(x + 14, y + 6, Database.getText("mapTheDesertComment"), Database.getTranslatedText("mapTheDesertComment"), "mapTheDesertComment");
411 // Interactions
412 this.renderArea.addLinkOver(".mapTheDesertButton, .mapTheDesertComment", ".mapTheDesertComment");
413 this.renderArea.addLinkCall(".mapTheDesertButton, .mapTheDesertComment", new CallbackCollection(this.goToTheDesert.bind(this)));
414 }
415
416 private loadTheHole(x: number, y: number): void{
417 // Buttons

Callers 1

loadMethod · 0.95

Calls 6

addFullCommentMethod · 0.80
addLinkOverMethod · 0.80
addLinkCallMethod · 0.80
bindMethod · 0.80
getTextMethod · 0.45

Tested by

no test coverage detected