Guest User

sfsdf

a guest
Jun 3rd, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.91 KB | None | 0 0
  1. //--- OBJECT WRITE BEGIN ---
  2. new GuiControl(liveAddons) {
  3. profile = "GuiDefaultProfile";
  4. horizSizing = "right";
  5. vertSizing = "bottom";
  6. position = "0 0";
  7. extent = "1024 768";
  8. minExtent = "8 2";
  9. enabled = "1";
  10. visible = "1";
  11. clipToParent = "1";
  12.  
  13. new GuiWindowCtrl() {
  14. profile = "GuiWindowProfile";
  15. horizSizing = "right";
  16. vertSizing = "bottom";
  17. position = "0 0";
  18. extent = "1024 768";
  19. minExtent = "8 2";
  20. enabled = "1";
  21. visible = "1";
  22. clipToParent = "1";
  23. text = "BlocklandLive";
  24. maxLength = "255";
  25. resizeWidth = "0";
  26. resizeHeight = "0";
  27. canMove = "1";
  28. canClose = "1";
  29. canMinimize = "0";
  30. canMaximize = "0";
  31. minSize = "50 50";
  32. closeCommand = "canvas.popDialog(liveAddons);";
  33.  
  34. new GuiScrollCtrl() {
  35. profile = "GuiScrollProfile";
  36. horizSizing = "right";
  37. vertSizing = "bottom";
  38. position = "10 30";
  39. extent = "512 725";
  40. minExtent = "8 2";
  41. enabled = "1";
  42. visible = "1";
  43. clipToParent = "1";
  44. willFirstRespond = "0";
  45. hScrollBar = "alwaysOn";
  46. vScrollBar = "alwaysOn";
  47. constantThumbHeight = "0";
  48. childMargin = "0 0";
  49. rowHeight = "40";
  50. columnWidth = "30";
  51.  
  52. new GuiTextListCtrl(addonsList) {
  53. profile = "GuiTextListProfile";
  54. horizSizing = "right";
  55. vertSizing = "bottom";
  56. position = "1 1";
  57. extent = "495 2";
  58. minExtent = "8 2";
  59. enabled = "1";
  60. visible = "1";
  61. clipToParent = "1";
  62. enumerate = "0";
  63. resizeCell = "1";
  64. columns = "3";
  65. fitParentWidth = "1";
  66. clipColumnText = "0";
  67. };
  68. };
  69. new GuiScrollCtrl() {
  70. profile = "GuiScrollProfile";
  71. horizSizing = "right";
  72. vertSizing = "bottom";
  73. position = "530 250";
  74. extent = "485 507";
  75. minExtent = "8 2";
  76. enabled = "1";
  77. visible = "1";
  78. clipToParent = "1";
  79. willFirstRespond = "0";
  80. hScrollBar = "alwaysOn";
  81. vScrollBar = "alwaysOn";
  82. constantThumbHeight = "0";
  83. childMargin = "0 0";
  84. rowHeight = "40";
  85. columnWidth = "30";
  86.  
  87. new GuiTextListCtrl(boardsList) {
  88. profile = "GuiTextListProfile";
  89. horizSizing = "right";
  90. vertSizing = "bottom";
  91. position = "1 1";
  92. extent = "468 2";
  93. minExtent = "8 2";
  94. enabled = "1";
  95. visible = "1";
  96. clipToParent = "1";
  97. enumerate = "0";
  98. resizeCell = "1";
  99. columns = "1";
  100. fitParentWidth = "1";
  101. clipColumnText = "0";
  102. };
  103. };
  104. new GuiBitmapButtonCtrl() {
  105. profile = "BlockButtonProfile";
  106. horizSizing = "right";
  107. vertSizing = "bottom";
  108. position = "638 120";
  109. extent = "84 36";
  110. minExtent = "8 2";
  111. enabled = "1";
  112. visible = "1";
  113. clipToParent = "1";
  114. command = "canvas.popDialog(liveAddons);";
  115. accelerator = "escape";
  116. text = "Close";
  117. groupNum = "-1";
  118. buttonType = "PushButton";
  119. bitmap = "base/client/ui/button2";
  120. lockAspectRatio = "1";
  121. alignLeft = "0";
  122. alignTop = "0";
  123. overflowImage = "0";
  124. mKeepCached = "0";
  125. mColor = "255 128 128 255";
  126. };
  127. new GuiBitmapButtonCtrl() {
  128. profile = "BlockButtonProfile";
  129. horizSizing = "right";
  130. vertSizing = "bottom";
  131. position = "730 120";
  132. extent = "84 36";
  133. minExtent = "8 2";
  134. enabled = "1";
  135. visible = "1";
  136. clipToParent = "1";
  137. command = "downloadAddon();";
  138. accelerator = "enter";
  139. text = "Download";
  140. groupNum = "-1";
  141. buttonType = "PushButton";
  142. bitmap = "base/client/ui/button2";
  143. lockAspectRatio = "1";
  144. alignLeft = "0";
  145. alignTop = "0";
  146. overflowImage = "0";
  147. mKeepCached = "0";
  148. mColor = "128 128 255 255";
  149. };
  150. new GuiBitmapButtonCtrl() {
  151. profile = "BlockButtonProfile";
  152. horizSizing = "right";
  153. vertSizing = "bottom";
  154. position = "822 120";
  155. extent = "84 36";
  156. minExtent = "8 2";
  157. enabled = "1";
  158. visible = "1";
  159. clipToParent = "1";
  160. command = "queryBoard();";
  161. text = "Refresh";
  162. groupNum = "-1";
  163. buttonType = "PushButton";
  164. bitmap = "base/client/ui/button2";
  165. lockAspectRatio = "1";
  166. alignLeft = "0";
  167. alignTop = "0";
  168. overflowImage = "0";
  169. mKeepCached = "0";
  170. mColor = "128 255 128 255";
  171. };
  172. new GuiTextCtrl() {
  173. profile = "GuiMediumTextProfile";
  174. horizSizing = "right";
  175. vertSizing = "bottom";
  176. position = "545 175";
  177. extent = "455 28";
  178. minExtent = "8 2";
  179. enabled = "1";
  180. visible = "1";
  181. clipToParent = "1";
  182. text = "All addons are from the BlocklandLive repository.";
  183. maxLength = "255";
  184. };
  185. new GuiTextCtrl() {
  186. profile = "GuiBigTextProfile";
  187. horizSizing = "right";
  188. vertSizing = "bottom";
  189. position = "719 70";
  190. extent = "106 40";
  191. minExtent = "8 2";
  192. enabled = "1";
  193. visible = "1";
  194. clipToParent = "1";
  195. text = "Addons";
  196. maxLength = "255";
  197. };
  198. };
  199. };
  200. //--- OBJECT WRITE END ---
  201.  
  202. exec("./Support_TCPClient.cs"); //Thank you, Greek2Me
  203.  
  204. //Opens up the addons GUI
  205.  
  206. function openAddons()
  207. {
  208. canvas.pushDialog("liveAddons");
  209. }
  210. function populateBoards() //Populates the boards
  211. {
  212. %list = boardsList;
  213. %list.addRow(1, "Audio");
  214. %list.addRow(2, "Bricks");
  215. %list.addRow(3, "Client");
  216. %list.addRow(4, "Colorsets");
  217. %list.addRow(5, "Decals");
  218. %list.addRow(6, "Emitters");
  219. %list.addRow(7, "Environment");
  220. %list.addRow(8, "Events");
  221. %list.addRow(9, "Frameworks");
  222. %list.addRow(10, "Gamemodes");
  223. %list.addRow(11, "Items");
  224. %list.addRow(12, "Lights");
  225. %list.addRow(13, "Playertypes");
  226. %list.addRow(14, "Prints");
  227. %list.addRow(15, "Server");
  228. %list.addRow(16, "Vehicle");
  229. %list.addRow(17, "Weapons");
  230. }
  231.  
  232. populateBoards();
  233.  
  234. function downloadAddon()
  235. {
  236. MessageBoxOK("BlocklandLive","I will add crap here later. Ignore this.");
  237. }
  238. function addonsList::onSelect(%this, %rowID, %rowText); //Put in Greek's TCP url connection crap for loading the audio board ad infinitum to the weapons board until I figure something else out
  239. {
  240. %rowID = 1;
  241. %rowText = "Audio";
  242. MessageBoxOK("My nama jeff");
  243. }
Advertisement
Add Comment
Please, Sign In to add comment