CWinCtrlLabel

Script: LABEL

This is the control to display the label.Unlike a BAR , it does not receive an onClick event.

Callbacks arriving at CWindowBase

This control’s style is set NOHIT flag as default. If you want to receive onDrag callback,you need to set HIT flag to STYLE property.

void onClick(CWinCtrlBase cCtrl)

void onHold(CWinCtrlBase cCtrl)

void onBeginDrag(CWinCtrlBase cCtrl,Vector2 pos)

void onDrag(CWinCtrlBase cCtrl,Vector2 pos,Vector2 dragVelocity)

bool onDragRender(CWinCtrlBase cCtrl,Transform transform)

void onDrop(CWinCtrlBase cCtrl,CWindowBase cDragWindow,CWinCtrlBase cDragCtrl)

void onDropGround(CWinCtrlBase cCtrl)

Example of use

// get control
CWinCtrlLabel  ctrlStart = find(LABEL_Title) as CWinCtrlLabel;