Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.84 KB | None | 0 0
  1.  
  2.  
  3.  
  4. local faceLeftButton = widget.newButton(
  5. {
  6. left = 0,
  7. top = 0,
  8. id = "faceLeft",
  9. label = "<",
  10. radius = 30,
  11. shape = "circle",
  12. fillColor = { default={255,255,255,1}, over={0,1,0,0.8} },
  13. onRelease = handleButtonEvent
  14. })
  15. faceLeftButton.y = 25
  16. faceLeftButton.x = 100
  17. group:insert(faceLeftButton)
  18. local faceRightButton = widget.newButton(
  19. {
  20. left = 0,
  21. top = 0,
  22. id = "faceRight",
  23. label = ">",
  24. radius = 30,
  25. shape = "circle",
  26. fillColor = { default={255,255,255,1}, over={0,1,0,0.8} },
  27. onRelease = handleButtonEvent
  28. })
  29. faceRightButton.y = 25
  30. faceRightButton.x = fullw - 100
  31. group:insert(faceRightButton)
  32.  
  33. local hairLeftButton = widget.newButton(
  34. {
  35. left = 0,
  36. top = 0,
  37. id = "hairLeft",
  38. label = "<",
  39. radius = 30,
  40. shape = "circle",
  41. fillColor = { default={255,255,255,1}, over={0,1,0,0.8} },
  42. onRelease = handleButtonEvent
  43. })
  44. hairLeftButton.y = 100
  45. hairLeftButton.x = 100
  46. group:insert(hairLeftButton)
  47.  
  48. local hairRightButton = widget.newButton(
  49. {
  50. left = 0,
  51. top = 0,
  52. id = "hairRight",
  53. label = ">",
  54. radius = 30,
  55. shape = "circle",
  56. fillColor = { default={255,255,255,1}, over={0,1,0,0.8} },
  57. onRelease = handleButtonEvent
  58. })
  59. hairRightButton.y = 100
  60. hairRightButton.x = fullw - 100
  61. group:insert(hairRightButton)
  62.  
  63. local pantsLeftButton = widget.newButton(
  64. {
  65. left = 0,
  66. top = 0,
  67. id = "pantsLeft",
  68. label = "<",
  69. radius = 30,
  70. shape = "circle",
  71. fillColor = { default={255,255,255,1}, over={0,1,0,0.8} },
  72. onRelease = handleButtonEvent
  73. })
  74. pantsLeftButton.y = 175
  75. pantsLeftButton.x = 100
  76. group:insert(pantsLeftButton)
  77.  
  78. local pantsRightButton = widget.newButton(
  79. {
  80. left = 0,
  81. top = 0,
  82. id = "pantsRight",
  83. label = ">",
  84. radius = 30,
  85. shape = "circle",
  86. fillColor = { default={255,255,255,1}, over={0,1,0,0.8} },
  87. onRelease = handleButtonEvent
  88. })
  89. pantsRightButton.y = 175
  90. pantsRightButton.x = fullw - 100
  91. group:insert(pantsRightButton)
  92.  
  93.  
  94. local shirtLeftButton = widget.newButton(
  95. {
  96. left = 0,
  97. top = 0,
  98. id = "shirtLeft",
  99. label = "<",
  100. radius = 30,
  101. shape = "circle",
  102. fillColor = { default={255,255,255,1}, over={0,1,0,0.8} },
  103. onRelease = handleButtonEvent
  104. })
  105. shirtLeftButton.y = 250
  106. shirtLeftButton.x = 100
  107. group:insert(shirtLeftButton)
  108.  
  109. local shirtRightButton = widget.newButton(
  110. {
  111. left = 0,
  112. top = 0,
  113. id = "shirtRight",
  114. label = ">",
  115. radius = 30,
  116. shape = "circle",
  117. fillColor = { default={255,255,255,1}, over={0,1,0,0.8} },
  118. onRelease = handleButtonEvent
  119. })
  120. shirtRightButton.y = 250
  121. shirtRightButton.x = fullw - 100
  122. group:insert(shirtRightButton)
  123.  
  124. local shoeLeftButton = widget.newButton(
  125. {
  126. left = 0,
  127. top = 0,
  128. id = "shoeLeft",
  129. label = "<",
  130. radius = 30,
  131. shape = "circle",
  132. fillColor = { default={255,255,255,1}, over={0,1,0,0.8} },
  133. onRelease = handleButtonEvent
  134. })
  135. shoeLeftButton.y = 325
  136. shoeLeftButton.x = 100
  137. group:insert(shoeLeftButton)
  138.  
  139.  
  140.  
  141. local shoeRightButton = widget.newButton(
  142. {
  143. left = 0,
  144. top = 0,
  145. id = "shoeRight",
  146. label = ">",
  147. radius = 30,
  148. shape = "circle",
  149. fillColor = { default={255,255,255,1}, over={0,1,0,0.8} },
  150. onRelease = handleButtonEvent
  151. })
  152. shoeRightButton.y = 325
  153. shoeRightButton.x = fullw - 100
  154. group:insert(shoeRightButton)
  155.  
  156. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement