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

Method addSimpleInput

code/main/RenderArea.ts:201–205  ·  view source on GitHub ↗
(x1: number, x2: number, y: number, callbackCollection: CallbackCollection, otherClass: string, defaultValue: string = null, hasFocus: boolean = false)

Source from the content-addressed store, hash-verified

199 }
200
201 public addSimpleInput(x1: number, x2: number, y: number, callbackCollection: CallbackCollection, otherClass: string, defaultValue: string = null, hasFocus: boolean = false): void{
202 this.addTag(new RenderTag(x1, "<span class=\"aroundTextInput\"><input type=\"text\" class=\"asciiTextInput noHotkeys " + otherClass + "\" style=\"width:" + (x2 - x1).toString() + "ex\"></span>"), y);
203
204 this.addLinkSimpleInput("." + otherClass, callbackCollection, defaultValue, hasFocus);
205 }
206
207 public addTag(tag: RenderTag, y: number): boolean{
208 // BUGS

Callers 1

drawActionsMethod · 0.80

Calls 2

addTagMethod · 0.95
addLinkSimpleInputMethod · 0.95

Tested by

no test coverage detected