Home Reference Source Test
public class | source

UIText

Extends:

src/entry.js~UIElement → UIText

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

text: *

public

Method Summary

Public Methods
public

end()

public

getText(): *

public
public
public
public

setColor(r: *, g: *, b: *, a: *)

public

setDepth(depth: *)

public

setPosition(x: *, y: *)

public

setText(text: *, scale: *)

public

translate(x: *, y: *)

Public Constructors

public constructor() source

Public Members

public currentTextScale: number source

public text: * source

public textObject: * source

Public Methods

public end() source

public getText(): * source

Return:

*

public getTextWidth(): * source

Return:

*

public onPause() source

public onUnpause() source

public setColor(r: *, g: *, b: *, a: *) source

Params:

NameTypeAttributeDescription
r *
g *
b *
a *

public setDepth(depth: *) source

Params:

NameTypeAttributeDescription
depth *

public setPosition(x: *, y: *) source

Params:

NameTypeAttributeDescription
x *
y *

public setText(text: *, scale: *) source

Params:

NameTypeAttributeDescription
text *
scale *
  • optional

public translate(x: *, y: *) source

Params:

NameTypeAttributeDescription
x *
y *