home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Inne / Gry / OpenArena / missionpack / mp-pak0.pk3 / ui / joinserver.menu < prev    next >
Encoding:
Text File  |  2007-10-31  |  7.5 KB  |  413 lines

  1. /*
  2. ===========================================================================
  3. Copyright (C) 2007 Open Arena Team
  4.  
  5. This file is part of Open Arena.
  6.  
  7. Open Arena is free software; you can redistribute it
  8. and/or modify it under the terms of the GNU General Public License as
  9. published by the Free Software Foundation; either version 2 of the License,
  10. or (at your option) any later version.
  11.  
  12. Open Arena is distributed in the hope that it will be
  13. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with Open Arena; if not, write to the Free Software
  19. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  20. ===========================================================================
  21. */
  22.  
  23. #include "ui/menudef.h"
  24.  
  25. {
  26. menuDef    {
  27.     name "joinserver"
  28.     visible 0
  29.     fullscreen 1
  30.     background MP_BACKGROUND    
  31.     focusColor MP_FOCUSCOLOR
  32.     rect 0 0 640 480
  33.     style 0
  34.     onOpen    { uiScript UpdateFilter }
  35.     onEsc    { uiScript closeJoin }
  36.     
  37. itemDef {
  38.     name titleness
  39.     text "Open Arena"
  40.     style 0    
  41.     type 0
  42.     textstyle 3
  43.     textscale 1
  44.     rect 0 35 1 1
  45.     textalign 0        
  46.     textalignx 32    
  47.     textaligny 40        
  48.     forecolor MP_TITLECOLOR
  49.     visible 1 
  50.     }
  51.  
  52. itemDef    {
  53.     name multiplayer
  54.     text "m        u       l       t       i       p       l       a       y       e        r"
  55.     style 0
  56.     type 0
  57.     textstyle 2
  58.     textscale .2
  59.     rect 0 55 1 1
  60.     textalign 0
  61.     textalignx 40
  62.     textaligny 40
  63.     forecolor MP_TITLECOLOR
  64.     visible 1
  65.     }
  66.  
  67. itemDef {
  68.     name advoptions
  69.     text "Join"
  70.     style 0
  71.     type 1
  72.     textstyle 3
  73.     textscale 0.3
  74.     rect 590 450 50 10
  75.     textalign 0
  76.     textaligny 10    
  77.     backcolor 0 0 0 0
  78.     forecolor MP_TEXTCOLOR
  79.     visible 1 
  80.     action    {
  81.             play MP_SND_SELECT; 
  82.         uiScript JoinServer;
  83.         }
  84.     }
  85.  
  86. itemDef {
  87.     name Create
  88.     text "Create"
  89.     style 0
  90.     type 1
  91.     textstyle 3
  92.     textscale 0.27
  93.     rect 360 30 50 10
  94.     textalign 0
  95.     textaligny 10        
  96.     forecolor MP_TEXTCOLOR   
  97.     visible 1
  98.     action    {
  99.             play MP_SND_SELECT; 
  100.         close joinserver;
  101.         open createserver;
  102.         }
  103.     }
  104.  
  105. itemDef {
  106.     name button3
  107.     text "Info"
  108.     style 0
  109.     type 1
  110.     textstyle 3
  111.     textscale 0.27
  112.     rect 500 30 50 10
  113.     textalign 0
  114.     textaligny 10
  115.     forecolor MP_TEXTCOLOR     
  116.     visible 1 
  117.     action    {
  118.             play MP_SND_SELECT; 
  119.         open serverinfo;
  120.         }
  121.     }
  122.  
  123. itemDef    {
  124.     name empty
  125.     text "Show Empty:"
  126.     type ITEM_TYPE_YESNO
  127.     cvar "ui_browserShowEmpty"
  128.     textstyle 3
  129.     textscale 0.27
  130.     rect 360 90 50 10
  131.     textalign 0
  132.     textaligny 10
  133.     forecolor MP_TEXTCOLOR
  134.     visible 1
  135.     action    {
  136.         uiScript RefreshFilter;
  137.         }
  138.     }
  139.  
  140. itemDef    {
  141.     name full
  142.     text "Show Full:"
  143.     type ITEM_TYPE_YESNO
  144.     cvar "ui_browserShowFull"
  145.     textstyle 3
  146.     textscale 0.27
  147.     rect 500 90 50 10
  148.     textalign 0
  149.     textaligny 10
  150.     forecolor MP_TEXTCOLOR
  151.     visible 1
  152.     action    {
  153.         uiScript RefreshFilter;
  154.         }
  155.     }
  156.  
  157. itemDef {
  158.     name button4
  159.     text "Refresh"
  160.     style 0
  161.     type 1
  162.     textstyle 3
  163.     textscale 0.27
  164.     rect 500 50 50 10
  165.     textalign 0
  166.     textaligny 10
  167.     forecolor MP_TEXTCOLOR     
  168.     visible 1 
  169.     action    {
  170.         uiScript RefreshFilter;
  171.         }
  172.     }
  173.  
  174. itemDef {
  175.     name button5
  176.     text "Update"
  177.     style 0
  178.     type 1
  179.     textstyle 3
  180.     textscale 0.27
  181.     rect 360 50 50 10
  182.     textalign 0
  183.     textaligny 10    
  184.     forecolor MP_TEXTCOLOR     
  185.     visible 1 
  186.     action    {
  187.             play MP_SND_SELECT; 
  188.         uiScript RefreshServers;
  189.         }
  190.     }
  191.  
  192. itemDef {
  193.           name button6
  194.           style 0
  195.     ownerdraw UI_NETSOURCE
  196.     textstyle 3
  197.           textscale 0.27
  198.           rect 360 70 50 10
  199.           textalign 0
  200.     textaligny 10
  201.     forecolor MP_TEXTCOLOR    
  202.     visible 1 
  203.     action    { play MP_SND_SELECT }
  204.     }
  205.  
  206. itemDef {
  207.     name button7
  208.     text "Add Server"
  209.     style 0
  210.     type 1
  211.     textstyle 3
  212.     textscale 0.27
  213.     rect 400 450 100 10
  214.     textalign 0
  215.     textaligny 10    
  216.     forecolor MP_TEXTCOLOR      
  217.     visible 1 
  218.     action    {
  219.             play MP_SND_SELECT;
  220.         uiScript CreateFavorite
  221.         }
  222.     }
  223.  
  224. itemDef {
  225.     name faves
  226.     text "New Flavorit"
  227.     style 0
  228.     type 1
  229.     textstyle 3
  230.     textscale 0.27
  231.     rect 180 450 100 10
  232.     textalign 0
  233.     textaligny 10        
  234.     forecolor MP_TEXTCOLOR      
  235.     visible 1 
  236.     action    {
  237.             play MP_SND_SELECT;
  238.         open createfavorite
  239.         }
  240.     }
  241.  
  242. itemDef {
  243.           name button8
  244.     text "Type:"
  245.     ownerdraw UI_JOINGAMETYPE
  246.           style 0
  247.     textstyle 3
  248.           textscale 0.27
  249.           rect 500 70 140 10
  250.           textalign 0
  251.     textaligny 10
  252.     forecolor MP_TEXTCOLOR      
  253.     visible 1 
  254.     action    {
  255.         play MP_SND_SELECT; 
  256.         uiScript ServerSort;
  257.               }
  258.     }
  259.  
  260. itemDef {
  261.     name button9
  262.     text "Back"
  263.     style 0
  264.     type 1
  265.     textstyle 3
  266.     textscale 0.27
  267.     rect 20 450 50 10
  268.     textalign 0
  269.     textaligny 10    
  270.     forecolor MP_TEXTCOLOR      
  271.     visible 1 
  272.     action    {
  273.             play MP_SND_SELECT; 
  274.         close joinserver;
  275.         open main;
  276.         }
  277.     }
  278.  
  279. itemDef    {
  280.     name serverlist
  281.     rect 10 139 620 297
  282.     type ITEM_TYPE_LISTBOX
  283.     style WINDOW_STYLE_FILLED
  284.     elementwidth 450
  285.     elementheight 14
  286.     textscale .20
  287.     elementtype LISTBOX_TEXT
  288.     feeder FEEDER_SERVERS
  289.     textalign 0
  290.     background "ui/assets/scrollbar"
  291.     textaligny 14
  292.     border 1
  293.     bordercolor   MP_BOX_BORDER
  294.     forecolor     MP_BOX_FORE
  295.     backcolor     MP_BOX_BACK
  296.     outlinecolor  MP_BOX_OUTLINE
  297.     visible 1
  298.     columns 
  299.     5
  300.     1 40 0 //server-name
  301.     250 40 0 //map
  302.     480 40 0  //players
  303.     360 40 0 // gametype
  304.     550 40 0 //ping
  305.     doubleClick { uiScript JoinServer }
  306.     }
  307.  
  308. itemDef    {
  309.     name serversort
  310.     text "Server Name"
  311.     style 0
  312.     type ITEM_TYPE_BUTTON
  313.     textscale .25
  314.     textalign 0
  315.     textaligny 10
  316.     rect 25 127 110 10
  317.     forecolor 1 1 1 1
  318.     visible 1
  319.     action     {
  320.         uiScript ServerSort 0;
  321.         setitemcolor serversort forecolor MP_FOCUSCOLOR;
  322.         setitemcolor mapsort forecolor 1 1 1 1;
  323.         setitemcolor playersort forecolor 1 1 1 1;
  324.         setitemcolor gtsort forecolor 1 1 1 1;
  325.         setitemcolor pingsort forecolor 1 1 1 1
  326.         }
  327.     }
  328.  
  329. itemDef    {
  330.     name mapsort
  331.     text "Map"
  332.     style 0
  333.     type ITEM_TYPE_BUTTON
  334.     textscale .25
  335.     textalign 0
  336.     textaligny 10
  337.     rect 275 127 110 10
  338.     forecolor 1 1 1 1
  339.     visible 1
  340.     action    {
  341.         uiscript ServerSort 1;
  342.         setitemcolor mapsort forecolor MP_FOCUSCOLOR;
  343.         setitemcolor serversort forecolor 1 1 1 1;
  344.         setitemcolor playersort forecolor 1 1 1 1;
  345.         setitemcolor gtsort forecolor 1 1 1 1;
  346.         setitemcolor pingsort forecolor 1 1 1 1
  347.         }
  348.     }
  349.  
  350. itemDef    {
  351.     name playersort
  352.     text "Players"
  353.     style 0
  354.     type ITEM_TYPE_BUTTON
  355.     textscale .25
  356.     textalign 0
  357.     textaligny 10
  358.     rect 490 127 50 10
  359.     forecolor 1 1 1 1
  360.     visible 1
  361.     action    {
  362.         uiscript ServerSort 2;
  363.         setitemcolor playersort forecolor MP_FOCUSCOLOR;
  364.         setitemcolor serversort forecolor 1 1 1 1;
  365.         setitemcolor mapsort forecolor 1 1 1 1;
  366.         setitemcolor gtsort forecolor 1 1 1 1;
  367.         setitemcolor pingsort forecolor 1 1 1 1
  368.         }
  369.     }
  370.  
  371. itemDef    {
  372.     name gtsort
  373.     text "Game Type"
  374.     style 0
  375.     type ITEM_TYPE_BUTTON
  376.     textscale .25
  377.     textalign 0
  378.     textaligny 10
  379.     rect 375 127 110 10
  380.     forecolor 1 1 1 1
  381.     visible 1
  382.     action    {
  383.         uiscript ServerSort 3;
  384.         setitemcolor gtsort forecolor MP_FOCUSCOLOR;
  385.         setitemcolor serversort forecolor 1 1 1 1;
  386.         setitemcolor mapsort forecolor 1 1 1 1;
  387.         setitemcolor playersort forecolor 1 1 1 1;
  388.         setitemcolor pingsort forecolor 1 1 1 1
  389.         }
  390.     }
  391.  
  392. itemDef    {
  393.     name pingsort
  394.     text "Ping"
  395.     style 0
  396.     type ITEM_TYPE_BUTTON
  397.     textscale .25
  398.     textalign 0
  399.     textaligny 10
  400.     rect 560 127 40 10
  401.     visible 1
  402.     action    {
  403.         uiscript ServerSort 4;
  404.         setitemcolor pingsort forecolor MP_FOCUSCOLOR;
  405.         setitemcolor serversort forecolor 1 1 1 1;
  406.         setitemcolor mapsort forecolor 1 1 1 1;
  407.         setitemcolor playersort forecolor 1 1 1 1;
  408.         setitemcolor gtsort forecolor 1 1 1 1
  409.         }
  410.     }
  411.  
  412. }
  413. }