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

Method displayArea

code/main/Game.ts:711–716  ·  view source on GitHub ↗
(renderArea: RenderArea, scrolling: boolean = false, gap: number = 0, defaultScroll: number = 0)

Source from the content-addressed store, hash-verified

709 }
710
711 private displayArea(renderArea: RenderArea, scrolling: boolean = false, gap: number = 0, defaultScroll: number = 0): void{
712 this.mainContentLocation.render(renderArea);
713 this.mainContentLocation.setScrolling(scrolling, defaultScroll);
714 if(scrolling == false) this.mainContentLocation.setContentGap(gap);
715 else this.mainContentLocation.setContentGap(0);
716 }
717
718 private displayPlace(): void{
719 this.displayArea(this.place.getRenderArea(), this.place.getScrolling(), this.place.getGap(), this.place.getDefaultScroll());

Callers 1

displayPlaceMethod · 0.95

Calls 3

setScrollingMethod · 0.80
setContentGapMethod · 0.80
renderMethod · 0.45

Tested by

no test coverage detected