joinServerMenu.gui 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. //--- OBJECT WRITE BEGIN ---
  2. $guiContent = new GuiControl(JoinServerMenu) {
  3. extent = "1280 720";
  4. horizSizing = "width";
  5. vertSizing = "height";
  6. profile = "GuiMenuBackgroundProfile";
  7. tooltipProfile = "GuiToolTipProfile";
  8. isContainer = "1";
  9. canSaveDynamicFields = "1";
  10. new GuiInputCtrl(JoinServerInputHandler) {
  11. ignoreMouseEvents = "1";
  12. ActionMap = "JoinServerActionMap";
  13. position = "-50 0";
  14. extent = "50 50";
  15. horizSizing = "width";
  16. vertSizing = "height";
  17. profile = "GuiInputCtrlProfile";
  18. tooltipProfile = "GuiToolTipProfile";
  19. };
  20. new GuiPanel(JoinServerTitlePanel) {
  21. extent = "1281 60";
  22. horizSizing = "width";
  23. profile = "GuiMenuPanelProfile";
  24. tooltipProfile = "GuiToolTipProfile";
  25. new GuiTextCtrl() {
  26. text = "JOIN SERVER";
  27. position = "22 23";
  28. extent = "1281 28";
  29. profile = "MenuHeaderText";
  30. tooltipProfile = "GuiToolTipProfile";
  31. };
  32. };
  33. new GuiContainer() {
  34. position = "190 61";
  35. extent = "900 30";
  36. horizSizing = "center";
  37. profile = "GuiDefaultProfile";
  38. tooltipProfile = "GuiToolTipProfile";
  39. new GuiTextCtrl() {
  40. text = "Player Name";
  41. position = "0 5";
  42. extent = "98 23";
  43. vertSizing = "center";
  44. profile = "MenuMLSubHeaderText";
  45. tooltipProfile = "GuiToolTipProfile";
  46. };
  47. new GuiTextEditCtrl(JoinServerPlayerNameTxt) {
  48. text = "Visitor";
  49. position = "606 7";
  50. extent = "295 22";
  51. horizSizing = "left";
  52. vertSizing = "center";
  53. profile = "MenuTextEditprofile";
  54. variable = "$pref::Player::Name";
  55. tooltipProfile = "GuiToolTipProfile";
  56. };
  57. };
  58. new GuiContainer() {
  59. position = "190 87";
  60. extent = "900 30";
  61. horizSizing = "center";
  62. profile = "GuiDefaultProfile";
  63. tooltipProfile = "GuiToolTipProfile";
  64. new GuiTextCtrl() {
  65. text = "Password";
  66. position = "0 5";
  67. extent = "78 23";
  68. vertSizing = "center";
  69. profile = "MenuMLSubHeaderText";
  70. tooltipProfile = "GuiToolTipProfile";
  71. };
  72. new GuiTextEditCtrl(JoinServerPasswordTxt) {
  73. text = "Visitor";
  74. position = "606 7";
  75. extent = "295 22";
  76. horizSizing = "left";
  77. vertSizing = "center";
  78. profile = "MenuTextEditprofile";
  79. variable = "$Client::Password";
  80. tooltipProfile = "GuiToolTipProfile";
  81. };
  82. };
  83. new GuiContainer() {
  84. position = "190 121";
  85. extent = "900 30";
  86. horizSizing = "center";
  87. profile = "GuiMenuPanelProfile";
  88. tooltipProfile = "GuiToolTipProfile";
  89. new GuiTextCtrl() {
  90. text = "Server Details";
  91. extent = "700 30";
  92. vertSizing = "center";
  93. profile = "MenuSubHeaderText";
  94. tooltipProfile = "GuiToolTipProfile";
  95. };
  96. new GuiTextCtrl() {
  97. text = "Ping";
  98. position = "700 0";
  99. extent = "70 30";
  100. horizSizing = "left";
  101. vertSizing = "center";
  102. profile = "MenuSubHeaderCenteredText";
  103. tooltipProfile = "GuiToolTipProfile";
  104. };
  105. new GuiTextCtrl() {
  106. text = "Player Count";
  107. position = "770 0";
  108. extent = "130 30";
  109. horizSizing = "left";
  110. vertSizing = "center";
  111. profile = "MenuSubHeaderCenteredText";
  112. tooltipProfile = "GuiToolTipProfile";
  113. };
  114. };
  115. new GuiScrollCtrl() {
  116. hScrollBar = "alwaysOff";
  117. vScrollBar = "dynamic";
  118. position = "190 151";
  119. extent = "900 532";
  120. minExtent = "8 8";
  121. horizSizing = "center";
  122. vertSizing = "height";
  123. profile = "GuiMenuScrollProfile";
  124. tooltipProfile = "GuiToolTipProfile";
  125. new GuiStackControl(JoinServerList) {
  126. padding = "10";
  127. changeChildSizeToFit = "0";
  128. position = "1 1";
  129. extent = "888 16";
  130. horizSizing = "center";
  131. vertSizing = "center";
  132. profile = "GuiMenuDefaultProfile";
  133. tooltipProfile = "GuiToolTipProfile";
  134. };
  135. };
  136. new GuiPanel(JoinServerButtonPanel) {
  137. position = "0 683";
  138. extent = "1281 40";
  139. horizSizing = "width";
  140. vertSizing = "top";
  141. profile = "GuiMenuPanelProfile";
  142. tooltipProfile = "GuiToolTipProfile";
  143. new GuiIconButtonCtrl(JoinServerJoinBtn) {
  144. BitmapAsset = "UI:Keyboard_Black_Space_image";
  145. sizeIconToButton = "1";
  146. makeIconSquare = "1";
  147. textLocation = "Center";
  148. text = "Join";
  149. position = "1115 0";
  150. extent = "140 40";
  151. horizSizing = "left";
  152. vertSizing = "center";
  153. profile = "GuiMenuButtonProfile";
  154. active = "0";
  155. command = "JoinServerMenu.join();";
  156. tooltipProfile = "GuiToolTipProfile";
  157. };
  158. new GuiIconButtonCtrl(JoinServerQLanBtn) {
  159. BitmapAsset = "UI:Keyboard_Black_E_image";
  160. sizeIconToButton = "1";
  161. makeIconSquare = "1";
  162. textLocation = "Center";
  163. text = "Query Lan";
  164. position = "965 0";
  165. extent = "140 40";
  166. horizSizing = "left";
  167. vertSizing = "center";
  168. profile = "GuiMenuButtonProfile";
  169. command = "JoinServerMenu.queryLan();";
  170. tooltipProfile = "GuiToolTipProfile";
  171. };
  172. new GuiIconButtonCtrl(JoinServerQServerBtn) {
  173. BitmapAsset = "UI:Keyboard_Black_Q_image";
  174. sizeIconToButton = "1";
  175. makeIconSquare = "1";
  176. textLocation = "Center";
  177. text = "Query Server";
  178. position = "800 0";
  179. extent = "160 40";
  180. horizSizing = "left";
  181. vertSizing = "center";
  182. profile = "GuiMenuButtonProfile";
  183. command = "JoinServerMenu.query();";
  184. tooltipProfile = "GuiToolTipProfile";
  185. };
  186. new GuiIconButtonCtrl(JoinServerBackBtn) {
  187. BitmapAsset = "UI:Keyboard_Black_Escape_image";
  188. sizeIconToButton = "1";
  189. makeIconSquare = "1";
  190. textLocation = "Center";
  191. text = "Back";
  192. position = "16 0";
  193. extent = "140 40";
  194. vertSizing = "center";
  195. profile = "GuiMenuButtonProfile";
  196. command = "Canvas.popDialog();";
  197. tooltipProfile = "GuiToolTipProfile";
  198. };
  199. };
  200. };
  201. //--- OBJECT WRITE END ---