|
NGUI: Next-Gen UI kit
3.7.2
|
Example script that can be used to show tooltips. More...
Static Public Member Functions | |
| static void | ShowText (string tooltipText) |
| Show a tooltip with the specified text. More... | |
Public Attributes | |
| Camera | uiCamera |
| UILabel | text |
| UISprite | background |
| float | appearSpeed = 10f |
| bool | scalingTransitions = true |
Protected Member Functions | |
| virtual void | Start () |
| Get a list of widgets underneath the tooltip. More... | |
| virtual void | Update () |
| Update the tooltip's alpha based on the target value. More... | |
| virtual void | SetAlpha (float val) |
| Set the alpha of all widgets. More... | |
| virtual void | SetText (string tooltipText) |
| Set the tooltip's text to the specified string. More... | |
Protected Attributes | |
| Transform | mTrans |
| float | mTarget = 0f |
| float | mCurrent = 0f |
| Vector3 | mPos |
| Vector3 | mSize = Vector3.zero |
| UIWidget[] | mWidgets |
Static Protected Attributes | |
| static UITooltip | mInstance |
Properties | |
| static bool | isVisible [get] |
| Whether the tooltip is currently visible. More... | |
Example script that can be used to show tooltips.
|
protectedvirtual |
Set the alpha of all widgets.
|
protectedvirtual |
Set the tooltip's text to the specified string.
|
static |
Show a tooltip with the specified text.
|
protectedvirtual |
Get a list of widgets underneath the tooltip.
|
protectedvirtual |
Update the tooltip's alpha based on the target value.
| float UITooltip.appearSpeed = 10f |
| UISprite UITooltip.background |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| bool UITooltip.scalingTransitions = true |
| UILabel UITooltip.text |
| Camera UITooltip.uiCamera |
|
staticget |
Whether the tooltip is currently visible.