home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / RESOURCES / KOOB / control / client / interfaces / serverscreen.gui < prev    next >
Encoding:
Text File  |  2006-09-25  |  7.0 KB  |  246 lines

  1. //============================================================================
  2. // control/client/interfaces/serverscreen.gui
  3. //
  4. // Server query interface module for 3D2E Koob23 sample game
  5. //
  6. // Copyright (c) 2003, 2006 by Kenneth C. Finney.
  7. //============================================================================
  8.  
  9. new GuiChunkedBitmapCtrl(ServerScreen) {
  10.    profile = "GuiContentProfile";
  11.    horizSizing = "width";
  12.    vertSizing = "height";
  13.    position = "0 0";
  14.    extent = "640 480";
  15.    minExtent = "8 8";
  16.    visible = "1";
  17.    bitmap = "./emaga_background";
  18.    useVariable = "0";
  19.    tile = "0";
  20.    helpTag = "0";
  21.  
  22.    new GuiControl() {
  23.       profile = "GuiWindowProfile";
  24.       horizSizing = "center";
  25.       vertSizing = "center";
  26.       position = "20 90";
  27.       extent = "600 300";
  28.       minExtent = "8 8";
  29.       visible = "1";
  30.       helpTag = "0";
  31.  
  32.       new GuiTextCtrl() {
  33.          profile = "GuiTextProfile";
  34.          horizSizing = "right";
  35.          vertSizing = "bottom";
  36.          position = "183 5";
  37.          extent = "63 18";
  38.          minExtent = "8 8";
  39.          visible = "1";
  40.          text = "Player Name:";
  41.          maxLength = "255";
  42.          helpTag = "0";
  43.       };
  44.  
  45.       new GuiTextEditCtrl() {
  46.          profile = "GuiTextEditProfile";
  47.          horizSizing = "right";
  48.          vertSizing = "bottom";
  49.          position = "250 5";
  50.          extent = "134 18";
  51.          minExtent = "8 8";
  52.          visible = "1";
  53.          variable = "Pref::Player::Name";
  54.          maxLength = "255";
  55.          historySize = "5";
  56.          password = "0";
  57.          tabComplete = "0";
  58.          sinkAllKeyEvents = "0";
  59.             helpTag = "0";
  60.       };
  61.  
  62.       new GuiTextCtrl() {
  63.          profile = "GuiTextProfile";
  64.          horizSizing = "right";
  65.          vertSizing = "bottom";
  66.          position = "13 30";
  67.          extent = "24 18";
  68.          minExtent = "8 8";
  69.          visible = "1";
  70.          text = "Private ?";
  71.          maxLength = "255";
  72.          helpTag = "0";
  73.       };
  74.       new GuiTextCtrl() {
  75.          profile = "GuiTextProfile";
  76.          horizSizing = "right";
  77.          vertSizing = "bottom";
  78.          position = "76 30";
  79.          extent = "63 18";
  80.          minExtent = "8 8";
  81.          visible = "1";
  82.          text = "Server Name";
  83.          maxLength = "255";
  84.          helpTag = "0";
  85.       };
  86.       new GuiTextCtrl() {
  87.          profile = "GuiTextProfile";
  88.          horizSizing = "right";
  89.          vertSizing = "bottom";
  90.          position = "216 30";
  91.          extent = "20 18";
  92.          minExtent = "8 8";
  93.          visible = "1";
  94.          text = "Ping";
  95.          maxLength = "255";
  96.          helpTag = "0";
  97.       };
  98.       new GuiTextCtrl() {
  99.          profile = "GuiTextProfile";
  100.          horizSizing = "right";
  101.          vertSizing = "bottom";
  102.          position = "251 30";
  103.          extent = "36 18";
  104.          minExtent = "8 8";
  105.          visible = "1";
  106.          text = "Players";
  107.          maxLength = "255";
  108.          helpTag = "0";
  109.       };
  110.       new GuiTextCtrl() {
  111.          profile = "GuiTextProfile";
  112.          horizSizing = "right";
  113.          vertSizing = "bottom";
  114.          position = "295 30";
  115.          extent = "38 18";
  116.          minExtent = "8 8";
  117.          visible = "1";
  118.          text = "Version";
  119.          maxLength = "255";
  120.          helpTag = "0";
  121.       };
  122.       new GuiTextCtrl() {
  123.          profile = "GuiTextProfile";
  124.          horizSizing = "right";
  125.          vertSizing = "bottom";
  126.          position = "433 30";
  127.          extent = "28 18";
  128.          minExtent = "8 8";
  129.          visible = "1";
  130.          text = "Game Description";
  131.          maxLength = "255";
  132.          helpTag = "0";
  133.       };
  134.  
  135.       new GuiScrollCtrl() {
  136.          profile = "GuiScrollProfile";
  137.          horizSizing = "right";
  138.          vertSizing = "bottom";
  139.          position = "14 55";
  140.          extent = "580 190";
  141.          minExtent = "8 8";
  142.          visible = "1";
  143.          willFirstRespond = "1";
  144.          hScrollBar = "dynamic";
  145.          vScrollBar = "alwaysOn";
  146.          constantThumbHeight = "0";
  147.          childMargin = "0 0";
  148.          helpTag = "0";
  149.          defaultLineHeight = "15";
  150.  
  151.          new GuiTextListCtrl(ServerList) {
  152.             profile = "GuiTextArrayProfile";
  153.             horizSizing = "right";
  154.             vertSizing = "bottom";
  155.             position = "2 2";
  156.             extent = "558 48";
  157.             minExtent = "8 8";
  158.             visible = "1";
  159.             enumerate = "0";
  160.             resizeCell = "1";
  161.             columns = "0 30 200 240 280 400";
  162.             fitParentWidth = "1";
  163.             clipColumnText = "0";
  164.             noDuplicates = "false";
  165.             helpTag = "0";
  166.          };
  167.       };
  168.  
  169.       new GuiButtonCtrl() {
  170.          profile = "GuiButtonProfile";
  171.          horizSizing = "right";
  172.          vertSizing = "top";
  173.          position = "16 253";
  174.          extent = "127 23";
  175.          minExtent = "8 8";
  176.          visible = "1";
  177.          command = "Canvas.getContent().Close();";
  178.          text = "Close";
  179.          groupNum = "-1";
  180.          buttonType = "PushButton";
  181.          helpTag = "0";
  182.       };
  183.       new GuiButtonCtrl(JoinServer) {
  184.          profile = "GuiButtonProfile";
  185.          horizSizing = "right";
  186.          vertSizing = "bottom";
  187.          position = "455 253";
  188.          extent = "130 25";
  189.          minExtent = "8 8";
  190.          visible = "1";
  191.          command = "Canvas.getContent().Join();";
  192.          text = "Connect";
  193.          groupNum = "-1";
  194.          buttonType = "PushButton";
  195.          active = "0";
  196.          helpTag = "0";
  197.       };
  198.  
  199.       new GuiControl(QueryStatus) {
  200.          profile = "GuiWindowProfile";
  201.          horizSizing = "center";
  202.          vertSizing = "center";
  203.          position = "149 100";
  204.          extent = "310 50";
  205.          minExtent = "8 8";
  206.          visible = "0";
  207.          helpTag = "0";
  208.  
  209.          new GuiButtonCtrl(CancelQuery) {
  210.             profile = "GuiButtonProfile";
  211.             horizSizing = "right";
  212.             vertSizing = "bottom";
  213.             position = "9 15";
  214.             extent = "64 20";
  215.             minExtent = "8 8";
  216.             visible = "1";
  217.             command = "Canvas.getContent().Cancel();";
  218.             text = "Cancel";
  219.             groupNum = "-1";
  220.             buttonType = "PushButton";
  221.             helpTag = "0";
  222.          };
  223.          new GuiProgressCtrl(StatusBar) {
  224.             profile = "GuiProgressProfile";
  225.             horizSizing = "right";
  226.             vertSizing = "bottom";
  227.             position = "84 15";
  228.             extent = "207 20";
  229.             minExtent = "8 8";
  230.             visible = "1";
  231.             helpTag = "0";
  232.          };
  233.          new GuiTextCtrl(StatusText) {
  234.             profile = "GuiProgressTextProfile";
  235.             horizSizing = "right";
  236.             vertSizing = "bottom";
  237.             position = "85 14";
  238.             extent = "205 20";
  239.             minExtent = "8 8";
  240.             visible = "1";
  241.             maxLength = "255";
  242.             helpTag = "0";
  243.          };
  244.       };
  245.    };
  246. };