Guest User

spellwhomstve

a guest
May 29th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. --- BLOCKLANDLIVE.GUI
  2.  
  3. //--- OBJECT WRITE BEGIN ---
  4. new GuiControl(BlocklandLive) {
  5. profile = "GuiDefaultProfile";
  6. horizSizing = "right";
  7. vertSizing = "bottom";
  8. position = "0 0";
  9. extent = "320 240";
  10. minExtent = "8 2";
  11. enabled = "1";
  12. visible = "1";
  13. clipToParent = "1";
  14. themed = "1";
  15.  
  16. new GuiWindowCtrl(BlocklandLive) {
  17. profile = "GuiWindowProfile";
  18. horizSizing = "right";
  19. vertSizing = "bottom";
  20. position = "0 0";
  21. extent = "320 240";
  22. minExtent = "8 2";
  23. enabled = "1";
  24. visible = "1";
  25. clipToParent = "1";
  26. command = "canvas.popDialog(BlocklandLiveGui);";
  27. accelerator = "escape";
  28. text = "BlocklandLive";
  29. maxLength = "255";
  30. resizeWidth = "0";
  31. resizeHeight = "0";
  32. canMove = "1";
  33. canClose = "1";
  34. canMinimize = "0";
  35. canMaximize = "0";
  36. minSize = "50 50";
  37.  
  38. new GuiTextCtrl() {
  39. profile = "GuiBigTextProfile";
  40. horizSizing = "right";
  41. vertSizing = "bottom";
  42. position = "63 60";
  43. extent = "193 40";
  44. minExtent = "8 2";
  45. enabled = "1";
  46. visible = "1";
  47. clipToParent = "1";
  48. text = "BlocklandLive";
  49. maxLength = "255";
  50. themed = "1";
  51. };
  52. new GuiBitmapButtonCtrl() {
  53. profile = "BlockButtonProfile";
  54. horizSizing = "right";
  55. vertSizing = "bottom";
  56. position = "95 115";
  57. extent = "140 30";
  58. minExtent = "8 2";
  59. enabled = "1";
  60. visible = "1";
  61. clipToParent = "1";
  62. command = "AddonsButtonPush();";
  63. text = "Addons";
  64. groupNum = "-1";
  65. buttonType = "PushButton";
  66. bitmap = "base/client/ui/button2";
  67. lockAspectRatio = "1";
  68. alignLeft = "0";
  69. alignTop = "0";
  70. overflowImage = "0";
  71. mKeepCached = "0";
  72. mColor = "255 255 255 255";
  73. themed = "1";
  74. };
  75. new GuiBitmapButtonCtrl() {
  76. profile = "BlockButtonProfile";
  77. horizSizing = "right";
  78. vertSizing = "bottom";
  79. position = "95 150";
  80. extent = "140 30";
  81. minExtent = "8 2";
  82. enabled = "1";
  83. visible = "1";
  84. clipToParent = "1";
  85. command = "SavesButtonPush();";
  86. text = "Saves";
  87. groupNum = "-1";
  88. buttonType = "PushButton";
  89. bitmap = "base/client/ui/button2";
  90. lockAspectRatio = "1";
  91. alignLeft = "0";
  92. alignTop = "0";
  93. overflowImage = "0";
  94. mKeepCached = "0";
  95. mColor = "255 255 255 255";
  96. themed = "1";
  97. };
  98. };
  99. };
  100. //--- OBJECT WRITE END ---
  101. function Open_BlocklandLive(%toggle)
  102. {
  103. if(%toggle)
  104. {
  105. if(BlocklandLiveGUI.isAwake())
  106. {
  107. canvas.popDialog(BlocklandLiveGUI);
  108. }
  109.  
  110. else
  111. {
  112. canvas.pushDialog(BlocklandLiveGUI);
  113. }
  114. }
  115. }
  116.  
  117.  
  118. --- CLIENT.CS
  119.  
  120. function BlLive::initiate()
  121. {
  122. exec("./BlocklandLive.gui");
  123. $remapDivision[$remapCount] = "BlocklandLive";
  124. $remapName[$remapCount] = "Open";
  125. $remapCmd[$remapCount] = "Open_BlocklandLive";
  126. $remapCount++;
  127. }
  128.  
  129. BlLive::initiate();
Advertisement
Add Comment
Please, Sign In to add comment