Widget.AlignMode
Enum
Enum for Widget's alignment mode, indicating when the widget should refresh.
Index
ONCE
ON_WINDOW_RESIZE
ALWAYS
Details
ONCE
Only align once when the Widget is enabled for the first time. This will allow the script or animation to continue controlling the current node. It will only be aligned once before the end of frame when onEnable is called, then immediately disables the Widget.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/components/CCWidget.js:37 |
ON_WINDOW_RESIZE
Align first from the beginning as ONCE, and then realign it every time the window is resized.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/components/CCWidget.js:48 |
ALWAYS
Keep aligning all the way.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/components/CCWidget.js:53 |