2014-12-31 16:28:14 +08:00
|
|
|
if nil == ccui then
|
|
|
|
return
|
|
|
|
end
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-10-11 01:27:12 +08:00
|
|
|
ccui.BrightStyle =
|
2014-03-10 14:04:58 +08:00
|
|
|
{
|
|
|
|
none = -1,
|
|
|
|
normal = 0,
|
|
|
|
highlight = 1,
|
|
|
|
}
|
|
|
|
|
2014-10-11 01:27:12 +08:00
|
|
|
ccui.TextureResType =
|
2014-03-10 14:04:58 +08:00
|
|
|
{
|
|
|
|
localType = 0,
|
|
|
|
plistType = 1,
|
|
|
|
}
|
|
|
|
|
2014-10-11 01:27:12 +08:00
|
|
|
ccui.TouchEventType =
|
2014-03-10 14:04:58 +08:00
|
|
|
{
|
|
|
|
began = 0,
|
|
|
|
moved = 1,
|
|
|
|
ended = 2,
|
|
|
|
canceled = 3,
|
|
|
|
}
|
|
|
|
|
2014-10-11 01:27:12 +08:00
|
|
|
ccui.SizeType =
|
2014-03-10 14:04:58 +08:00
|
|
|
{
|
|
|
|
absolute = 0,
|
|
|
|
percent = 1,
|
|
|
|
}
|
|
|
|
|
|
|
|
ccui.PositionType = {
|
|
|
|
absolute = 0,
|
|
|
|
percent = 1,
|
|
|
|
}
|
|
|
|
|
2014-10-11 01:27:12 +08:00
|
|
|
ccui.CheckBoxEventType =
|
2014-03-10 14:04:58 +08:00
|
|
|
{
|
|
|
|
selected = 0,
|
|
|
|
unselected = 1,
|
|
|
|
}
|
|
|
|
|
2014-10-11 01:27:12 +08:00
|
|
|
ccui.TextFiledEventType =
|
2014-03-10 14:04:58 +08:00
|
|
|
{
|
|
|
|
attach_with_ime = 0,
|
|
|
|
detach_with_ime = 1,
|
|
|
|
insert_text = 2,
|
|
|
|
delete_backward = 3,
|
|
|
|
}
|
|
|
|
|
2014-10-11 01:27:12 +08:00
|
|
|
ccui.LayoutBackGroundColorType =
|
2014-03-10 14:04:58 +08:00
|
|
|
{
|
|
|
|
none = 0,
|
|
|
|
solid = 1,
|
|
|
|
gradient = 2,
|
|
|
|
}
|
|
|
|
|
2014-10-11 01:27:12 +08:00
|
|
|
ccui.LayoutType =
|
2014-03-10 14:04:58 +08:00
|
|
|
{
|
2014-05-15 15:39:15 +08:00
|
|
|
ABSOLUTE = 0,
|
|
|
|
VERTICAL = 1,
|
|
|
|
HORIZONTAL = 2,
|
|
|
|
RELATIVE = 3,
|
2014-03-10 14:04:58 +08:00
|
|
|
}
|
|
|
|
|
2014-10-11 01:27:12 +08:00
|
|
|
ccui.LayoutParameterType =
|
2014-03-10 14:04:58 +08:00
|
|
|
{
|
|
|
|
none = 0,
|
|
|
|
linear = 1,
|
|
|
|
relative = 2,
|
|
|
|
}
|
|
|
|
|
2014-10-11 01:27:12 +08:00
|
|
|
ccui.LinearGravity =
|
2014-03-10 14:04:58 +08:00
|
|
|
{
|
|
|
|
none = 0,
|
|
|
|
left = 1,
|
|
|
|
top = 2,
|
|
|
|
right = 3,
|
|
|
|
bottom = 4,
|
|
|
|
centerVertical = 5,
|
|
|
|
centerHorizontal = 6,
|
|
|
|
}
|
|
|
|
|
2014-10-11 01:27:12 +08:00
|
|
|
ccui.RelativeAlign =
|
2014-03-10 14:04:58 +08:00
|
|
|
{
|
|
|
|
alignNone = 0,
|
|
|
|
alignParentTopLeft = 1,
|
|
|
|
alignParentTopCenterHorizontal = 2,
|
|
|
|
alignParentTopRight = 3,
|
|
|
|
alignParentLeftCenterVertical = 4,
|
|
|
|
centerInParent = 5,
|
|
|
|
alignParentRightCenterVertical = 6,
|
|
|
|
alignParentLeftBottom = 7,
|
|
|
|
alignParentBottomCenterHorizontal = 8,
|
|
|
|
alignParentRightBottom = 9,
|
|
|
|
locationAboveLeftAlign = 10,
|
|
|
|
locationAboveCenter = 11,
|
|
|
|
locationAboveRightAlign = 12,
|
|
|
|
locationLeftOfTopAlign = 13,
|
|
|
|
locationLeftOfCenter = 14,
|
|
|
|
locationLeftOfBottomAlign = 15,
|
|
|
|
locationRightOfTopAlign = 16,
|
|
|
|
locationRightOfCenter = 17,
|
|
|
|
locationRightOfBottomAlign = 18,
|
|
|
|
locationBelowLeftAlign = 19,
|
|
|
|
locationBelowCenter = 20,
|
|
|
|
locationBelowRightAlign = 21,
|
|
|
|
}
|
|
|
|
|
|
|
|
ccui.SliderEventType = {percentChanged = 0}
|
|
|
|
|
2014-05-15 15:39:15 +08:00
|
|
|
ccui.LoadingBarDirection = { LEFT = 0, RIGHT = 1}
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
ccui.ScrollViewDir = {
|
|
|
|
none = 0,
|
|
|
|
vertical = 1,
|
|
|
|
horizontal = 2,
|
|
|
|
both = 3,
|
|
|
|
}
|
|
|
|
|
|
|
|
ccui.ScrollViewMoveDir = {
|
|
|
|
none = 0,
|
|
|
|
up = 1,
|
|
|
|
down = 2,
|
|
|
|
left = 3,
|
|
|
|
right = 4,
|
|
|
|
}
|
|
|
|
|
|
|
|
ccui.ScrollviewEventType = {
|
|
|
|
scrollToTop = 0,
|
|
|
|
scrollToBottom = 1,
|
|
|
|
scrollToLeft = 2,
|
|
|
|
scrollToRight = 3,
|
|
|
|
scrolling = 4,
|
|
|
|
bounceTop = 5,
|
|
|
|
bounceBottom = 6,
|
|
|
|
bounceLeft = 7,
|
|
|
|
bounceRight = 8,
|
|
|
|
}
|
|
|
|
|
|
|
|
ccui.ListViewDirection = {
|
|
|
|
none = 0,
|
|
|
|
vertical = 1,
|
|
|
|
horizontal = 2,
|
|
|
|
}
|
|
|
|
|
|
|
|
ccui.ListViewMoveDirection = {
|
|
|
|
none = 0,
|
|
|
|
up = 1,
|
|
|
|
down = 2,
|
|
|
|
left = 3,
|
|
|
|
right = 4,
|
|
|
|
}
|
|
|
|
|
|
|
|
ccui.ListViewEventType = {
|
2014-07-16 17:18:01 +08:00
|
|
|
ONSELECTEDITEM_START = 0,
|
|
|
|
ONSELECTEDITEM_END = 1,
|
2014-03-10 14:04:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
ccui.PageViewEventType = {
|
2014-10-11 01:27:12 +08:00
|
|
|
turning = 0,
|
2014-03-10 14:04:58 +08:00
|
|
|
}
|
|
|
|
|
2015-08-01 18:18:46 +08:00
|
|
|
ccui.PageViewDirection = {
|
|
|
|
HORIZONTAL = 0,
|
|
|
|
VERTICAL = 1
|
|
|
|
}
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
ccui.PVTouchDir = {
|
|
|
|
touchLeft = 0,
|
|
|
|
touchRight = 1,
|
|
|
|
}
|
|
|
|
|
|
|
|
ccui.ListViewGravity = {
|
|
|
|
left = 0,
|
|
|
|
right = 1,
|
|
|
|
centerHorizontal = 2,
|
|
|
|
top = 3,
|
|
|
|
bottom = 4 ,
|
|
|
|
centerVertical = 5,
|
|
|
|
}
|
2014-05-15 16:54:55 +08:00
|
|
|
|
|
|
|
ccui.TextType = {
|
|
|
|
SYSTEM = 0,
|
|
|
|
TTF = 1,
|
|
|
|
}
|
2015-01-14 16:58:35 +08:00
|
|
|
|
|
|
|
ccui.LayoutComponent.HorizontalEdge = {
|
|
|
|
None = 0,
|
|
|
|
Left = 1,
|
|
|
|
Right = 2,
|
|
|
|
Center = 3,
|
|
|
|
}
|
|
|
|
|
|
|
|
ccui.LayoutComponent.VerticalEdge = {
|
|
|
|
None = 0,
|
|
|
|
Bottom = 1,
|
|
|
|
Top = 2,
|
|
|
|
Center = 3,
|
|
|
|
}
|