You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

193 line
2.9 KiB

  1. cc = cc or {}
  2. cc.BrightStyle =
  3. {
  4. none = -1,
  5. normal = 0,
  6. highlight = 1,
  7. }
  8. cc.WidgetType =
  9. {
  10. widget = 0, --control
  11. container = 1, --container
  12. }
  13. cc.TextureResType =
  14. {
  15. localType = 0,
  16. plistType = 1,
  17. }
  18. cc.TouchEventType =
  19. {
  20. began = 0,
  21. moved = 1,
  22. ended = 2,
  23. canceled = 3,
  24. }
  25. cc.SizeType =
  26. {
  27. absolute = 0,
  28. percent = 1,
  29. }
  30. cc.PositionType = {
  31. absolute = 0,
  32. percent = 1,
  33. }
  34. cc.CheckBoxEventType =
  35. {
  36. selected = 0,
  37. unselected = 1,
  38. }
  39. cc.TextFiledEventType =
  40. {
  41. attach_with_ime = 0,
  42. detach_with_ime = 1,
  43. insert_text = 2,
  44. delete_backward = 3,
  45. enter = 4,
  46. }
  47. cc.LayoutBackGroundColorType =
  48. {
  49. none = 0,
  50. solid = 1,
  51. gradient = 2,
  52. }
  53. cc.LayoutType =
  54. {
  55. absolute = 0,
  56. linearVertical = 1,
  57. linearHorizontal = 2,
  58. relative = 3,
  59. }
  60. cc.LayoutParameterType =
  61. {
  62. none = 0,
  63. linear = 1,
  64. relative = 2,
  65. }
  66. cc.LinearGravity =
  67. {
  68. none = 0,
  69. left = 1,
  70. top = 2,
  71. right = 3,
  72. bottom = 4,
  73. centerVertical = 5,
  74. centerHorizontal = 6,
  75. }
  76. cc.RelativeAlign =
  77. {
  78. alignNone = 0,
  79. alignParentTopLeft = 1,
  80. alignParentTopCenterHorizontal = 2,
  81. alignParentTopRight = 3,
  82. alignParentLeftCenterVertical = 4,
  83. centerInParent = 5,
  84. alignParentRightCenterVertical = 6,
  85. alignParentLeftBottom = 7,
  86. alignParentBottomCenterHorizontal = 8,
  87. alignParentRightBottom = 9,
  88. locationAboveLeftAlign = 10,
  89. locationAboveCenter = 11,
  90. locationAboveRightAlign = 12,
  91. locationLeftOfTopAlign = 13,
  92. locationLeftOfCenter = 14,
  93. locationLeftOfBottomAlign = 15,
  94. locationRightOfTopAlign = 16,
  95. locationRightOfCenter = 17,
  96. locationRightOfBottomAlign = 18,
  97. locationBelowLeftAlign = 19,
  98. locationBelowCenter = 20,
  99. locationBelowRightAlign = 21,
  100. }
  101. cc.SliderEventType = {percentChanged = 0}
  102. cc.LoadingBarType = { left = 0, right = 1}
  103. cc.ScrollViewDir = {
  104. none = 0,
  105. vertical = 1,
  106. horizontal = 2,
  107. both = 3,
  108. }
  109. cc.ScrollViewMoveDir = {
  110. none = 0,
  111. up = 1,
  112. down = 2,
  113. left = 3,
  114. right = 4,
  115. }
  116. cc.ScrollviewEventType = {
  117. scrollToTop = 0,
  118. scrollToBottom = 1,
  119. scrollToLeft = 2,
  120. scrollToRight = 3,
  121. scrolling = 4,
  122. -- scrollingEnded = 5,
  123. bounceTop = 5,
  124. bounceBottom = 6,
  125. bounceLeft = 7,
  126. bounceRight = 8,
  127. bounceTopEnd = 9,
  128. bounceBottomEnd = 10,
  129. bounceLeftEnd = 11,
  130. bounceRightEnd = 12,
  131. }
  132. cc.ListViewDirection = {
  133. none = 0,
  134. vertical = 1,
  135. horizontal = 2,
  136. }
  137. cc.ListViewMoveDirection = {
  138. none = 0,
  139. up = 1,
  140. down = 2,
  141. left = 3,
  142. right = 4,
  143. }
  144. cc.ListViewEventType = {
  145. onsSelectedItem = 0,
  146. }
  147. cc.PageViewEventType = {
  148. turning = 0,
  149. }
  150. cc.PVTouchDir = {
  151. touchLeft = 0,
  152. touchRight = 1,
  153. }
  154. cc.ListViewGravity = {
  155. left = 0,
  156. right = 1,
  157. centerHorizontal = 2,
  158. top = 3,
  159. bottom = 4 ,
  160. centerVertical = 5,
  161. }
  162. cc.WidgetEvent = {
  163. CHANGED_TO_NORMAL = 0,
  164. CHANGED_TO_PRESSED = 1,
  165. CHANGED_TO_DISABLED = 2,
  166. SIZE_CHANGED = 3,
  167. };