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

Method addFullComment

code/main/RenderArea.ts:109–113  ·  view source on GitHub ↗
(x: number, y: number, english: string, translated: string, otherClass: string)

Source from the content-addressed store, hash-verified

107 }
108
109 public addFullComment(x: number, y: number, english: string, translated: string, otherClass: string): boolean{
110 if(this.addComment(Algo.correctIfUnderZero(x - (english.length/2)), y, english, otherClass) == false)
111 return false;
112 else return this.addTranslatedComment(Algo.correctIfUnderZero(x - (translated.length/2)), y + 1, translated, otherClass);
113 }
114
115 public addHiddenClass(x1: number, x2: number, y: number, className: string): boolean{
116 return this.addTwoTags(x1, x2, y, "<span visibility=\"hidden\" class=\"" + className + "\">", "</span>");

Callers 15

loadFirstHouseMethod · 0.80
loadSecondHouseMethod · 0.80
loadThirdHouseMethod · 0.80
loadForgeMethod · 0.80
loadFourthHouseMethod · 0.80
loadFifthHouseMethod · 0.80
drawBigRoomMethod · 0.80
drawCastleEntranceMethod · 0.80
drawNougatMonsterMethod · 0.80
drawRoom1Method · 0.80
drawRoom2Method · 0.80
drawRoom3Method · 0.80

Calls 2

addCommentMethod · 0.95
addTranslatedCommentMethod · 0.95

Tested by

no test coverage detected