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

Method addHtmlLink

code/main/RenderArea.ts:119–122  ·  view source on GitHub ↗
(x: number, y: number, url: string, text: string)

Source from the content-addressed store, hash-verified

117 }
118
119 public addHtmlLink(x: number, y: number, url: string, text: string): void{
120 this.drawString(text, x, y);
121 this.addTwoTags(x, x + text.length, y, "<a target=\"_blank\" href=\"" + url + "\">", "</a>");
122 }
123
124 public addLinkCall(e: string, callbackCollection: CallbackCollection): void{
125 this.links.push(new RenderLinkClick(e, callbackCollection));

Callers 4

updateMethod · 0.80
drawLocalLoadMethod · 0.80
drawAboutMethod · 0.80
drawCfgLanguageMethod · 0.80

Calls 2

drawStringMethod · 0.95
addTwoTagsMethod · 0.95

Tested by

no test coverage detected