DIFF

class TextWidgetSource

TextWidget Widget Managed

Part of Widget UI system

All members, including inherited

Methods 20

proto native void SetTextSpacing(int horiz, int vert)
proto native void SetTextExactSize(int size)

set text exact size. Exact Text flag must be enabled. 0 equals original size.

proto native void SetTextOffset(int left, int top)
proto native void SetText(string text, bool immedUpdate = true)
proto native void SetOutline(int outlineSize, int argb = 0xFF000000)
proto native int GetOutlineSize()
proto native int GetOutlineColor()
proto native void SetShadow(int shadowSize, int shadowARGB = 0xFF000000, float shadowOpacity = 1, float shadowOffsetX = 0, float shadowOffsetY = 0)
proto native int GetShadowSize()
proto native int GetShadowColor()
proto native float GetShadowOpacity()
proto void GetShadowOffset(out float sx, out float sy)
proto native void SetItalic(bool italic)
proto native bool GetItalic()
proto native bool GetBold()
proto void GetTextSize(out int sx, out int sy)

Returns text size in pixels

proto void SetTextFormat(string text, void param1 = NULL, void param2 = NULL, void param3 = NULL, void param4 = NULL, void param5 = NULL, void param6 = NULL, void param7 = NULL, void param8 = NULL, void param9 = NULL)
proto native float GetTextProportion()

Get text proportion - ratio between button height and button text height in interval <0,1>

proto native void SetTextProportion(float val)

Set text proportion - ratio between button height and button text height in interval <0,1>