GuiConstants.lua 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. if nil == ccui then
  2. return
  3. end
  4. ccui.BrightStyle =
  5. {
  6. none = -1,
  7. normal = 0,
  8. highlight = 1,
  9. }
  10. ccui.TextureResType =
  11. {
  12. localType = 0,
  13. plistType = 1,
  14. }
  15. ccui.TouchEventType =
  16. {
  17. began = 0,
  18. moved = 1,
  19. ended = 2,
  20. canceled = 3,
  21. }
  22. ccui.SizeType =
  23. {
  24. absolute = 0,
  25. percent = 1,
  26. }
  27. ccui.PositionType = {
  28. absolute = 0,
  29. percent = 1,
  30. }
  31. ccui.CheckBoxEventType =
  32. {
  33. selected = 0,
  34. unselected = 1,
  35. }
  36. ccui.RadioButtonEventType=
  37. {
  38. selected = 0,
  39. unselected = 1
  40. }
  41. ccui.RadioButtonGroupEventType=
  42. {
  43. select_changed = 0
  44. }
  45. ccui.TextFiledEventType =
  46. {
  47. attach_with_ime = 0,
  48. detach_with_ime = 1,
  49. insert_text = 2,
  50. delete_backward = 3,
  51. }
  52. ccui.LayoutBackGroundColorType =
  53. {
  54. none = 0,
  55. solid = 1,
  56. gradient = 2,
  57. }
  58. ccui.LayoutType =
  59. {
  60. ABSOLUTE = 0,
  61. VERTICAL = 1,
  62. HORIZONTAL = 2,
  63. RELATIVE = 3,
  64. }
  65. ccui.LayoutParameterType =
  66. {
  67. none = 0,
  68. linear = 1,
  69. relative = 2,
  70. }
  71. ccui.LinearGravity =
  72. {
  73. none = 0,
  74. left = 1,
  75. top = 2,
  76. right = 3,
  77. bottom = 4,
  78. centerVertical = 5,
  79. centerHorizontal = 6,
  80. }
  81. ccui.RelativeAlign =
  82. {
  83. alignNone = 0,
  84. alignParentTopLeft = 1,
  85. alignParentTopCenterHorizontal = 2,
  86. alignParentTopRight = 3,
  87. alignParentLeftCenterVertical = 4,
  88. centerInParent = 5,
  89. alignParentRightCenterVertical = 6,
  90. alignParentLeftBottom = 7,
  91. alignParentBottomCenterHorizontal = 8,
  92. alignParentRightBottom = 9,
  93. locationAboveLeftAlign = 10,
  94. locationAboveCenter = 11,
  95. locationAboveRightAlign = 12,
  96. locationLeftOfTopAlign = 13,
  97. locationLeftOfCenter = 14,
  98. locationLeftOfBottomAlign = 15,
  99. locationRightOfTopAlign = 16,
  100. locationRightOfCenter = 17,
  101. locationRightOfBottomAlign = 18,
  102. locationBelowLeftAlign = 19,
  103. locationBelowCenter = 20,
  104. locationBelowRightAlign = 21,
  105. }
  106. ccui.SliderEventType = {
  107. percentChanged = 0,
  108. slideBallDown = 1,
  109. slideBallUp = 2,
  110. slideBallCancel = 3
  111. }
  112. ccui.LoadingBarDirection = { LEFT = 0, RIGHT = 1}
  113. ccui.ScrollViewDir = {
  114. none = 0,
  115. vertical = 1,
  116. horizontal = 2,
  117. both = 3,
  118. }
  119. ccui.ScrollViewMoveDir = {
  120. none = 0,
  121. up = 1,
  122. down = 2,
  123. left = 3,
  124. right = 4,
  125. }
  126. ccui.ScrollviewEventType = {
  127. scrollToTop = 0,
  128. scrollToBottom = 1,
  129. scrollToLeft = 2,
  130. scrollToRight = 3,
  131. scrolling = 4,
  132. bounceTop = 5,
  133. bounceBottom = 6,
  134. bounceLeft = 7,
  135. bounceRight = 8,
  136. }
  137. ccui.ListViewDirection = {
  138. none = 0,
  139. vertical = 1,
  140. horizontal = 2,
  141. }
  142. ccui.ListViewMoveDirection = {
  143. none = 0,
  144. up = 1,
  145. down = 2,
  146. left = 3,
  147. right = 4,
  148. }
  149. ccui.ListViewEventType = {
  150. ONSELECTEDITEM_START = 0,
  151. ONSELECTEDITEM_END = 1,
  152. }
  153. ccui.PageViewEventType = {
  154. turning = 0,
  155. }
  156. ccui.PageViewDirection = {
  157. HORIZONTAL = 0,
  158. VERTICAL = 1
  159. }
  160. ccui.PVTouchDir = {
  161. touchLeft = 0,
  162. touchRight = 1,
  163. touchUp = 2,
  164. touchDown = 3
  165. }
  166. ccui.ListViewGravity = {
  167. left = 0,
  168. right = 1,
  169. centerHorizontal = 2,
  170. top = 3,
  171. bottom = 4 ,
  172. centerVertical = 5,
  173. }
  174. ccui.TextType = {
  175. SYSTEM = 0,
  176. TTF = 1,
  177. }
  178. ccui.LayoutComponent.HorizontalEdge = {
  179. None = 0,
  180. Left = 1,
  181. Right = 2,
  182. Center = 3,
  183. }
  184. ccui.LayoutComponent.VerticalEdge = {
  185. None = 0,
  186. Bottom = 1,
  187. Top = 2,
  188. Center = 3,
  189. }