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

Method addComment

code/main/RenderArea.ts:75–77  ·  view source on GitHub ↗
(x: number, y: number, text: string, otherClass: string)

Source from the content-addressed store, hash-verified

73 }
74
75 public addComment(x: number, y: number, text: string, otherClass: string): boolean{
76 return this.addTag(new RenderTag(x, "<span class=\"aroundComment " + otherClass + "\"><span class=\"comment englishComment\">" + text + "</span></span>"), y);
77 }
78
79 public addEnigma(x1: number, x2: number, y: number, enigmaAnswer: EnigmaAnswer, callbackCollection: CallbackCollection, otherClass: string, wrongClass: string = null, wrongMessage: string = "Wrong"): void{
80 this.addTag(new RenderTag(x1, "<span class=\"aroundTextInput\"><input type=\"text\" class=\"asciiTextInput noHotkeys " + otherClass + "\" style=\"width:" + (x2 - x1).toString() + "ex\"></span>"), y);

Callers 1

addFullCommentMethod · 0.95

Calls 1

addTagMethod · 0.95

Tested by

no test coverage detected