home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Inne / Gry / OpenArena / missionpack / mp-pak0.pk3 / ui / player.menu < prev    next >
Encoding:
Text File  |  2008-02-23  |  6.2 KB  |  351 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. // classic H*L style menu
  26.  
  27. {
  28.   menuDef {
  29.     name player
  30.     visible 0
  31.     fullscreen 1
  32.     background MP_BACKGROUND
  33.     focusColor MP_FOCUSCOLOR
  34.     rect 0 0 640 480
  35.     outOfBoundsClick  
  36.     style 0
  37.     onOpen    {
  38.         uiScript update "ui_GetName";
  39.         }
  40.     onClose    {
  41.         uiScript update "ui_SetName";
  42.         }
  43.     onEsc    {
  44.         close player;
  45.         open main;
  46.         }
  47.  
  48. itemDef {
  49.     name titleness
  50.     text "Customize"
  51.     style 0    
  52.     type 0
  53.     textstyle 6
  54.     textscale 1
  55.     rect 0 65 1 1
  56.     textalign 0        
  57.     textalignx 48     
  58.     textaligny 40        
  59.     forecolor MP_TITLECOLOR
  60.     visible 1 
  61.     }
  62.  
  63. // The Bar of Buttons
  64.  
  65. itemDef {
  66.     name advoptions
  67.     text "Done"
  68.     style 0
  69.     type 1
  70.     textstyle 3
  71.     textscale 0.3
  72.     rect 52 145 163 34
  73.     textalign 0        
  74.     textalignx 5      
  75.     textaligny 20      
  76.     backcolor 0 0 0 0
  77.     forecolor MP_TEXTCOLOR
  78.     visible 1 
  79.           action
  80.         {
  81.             play MP_SND_SELECT; 
  82.         close player;
  83.         open main;
  84.         }
  85.     }
  86.  
  87. itemDef {
  88.     name button2
  89.     text "Adv Options"
  90.     style 0
  91.     type 1
  92.     textstyle 3
  93.     textscale 0.3
  94.     rect 52 177 163 34
  95.     textalign 0        
  96.     textalignx 5     
  97.     textaligny 20   
  98.     forecolor MP_TEXTCOLOR  
  99.     visible 1
  100.     action    {
  101.             play MP_SND_SELECT; 
  102.         }
  103.     }
  104.  
  105. itemDef    {
  106.     name playerlist
  107.     rect 578 160 56 196
  108.     group grparenatype    
  109.     type ITEM_TYPE_LISTBOX
  110.     style WINDOW_STYLE_FILLED
  111.     elementwidth 32
  112.     elementheight 32
  113.     cvarTest "ui_q3model"
  114.     hideCVar { "1" }
  115.     textscale .20
  116.     elementtype LISTBOX_IMAGE
  117.     feeder FEEDER_HEADS
  118.     textalign 0
  119.     background "ui/assets/scrollbar"
  120.     textaligny 14
  121.     border 1
  122.     bordercolor   MP_BOX_BORDER
  123.     forecolor     MP_BOX_FORE
  124.     backcolor     MP_BOX_BACK
  125.     outlinecolor  MP_BOX_OUTLINE
  126.     visible 1
  127.     columns 1
  128.     2 190 25
  129.     }
  130.  
  131. itemDef    {
  132.     name playerlist
  133.     rect 571 118 56 339
  134.     group grparenatype    
  135.     type ITEM_TYPE_LISTBOX
  136.     style WINDOW_STYLE_FILLED
  137.     elementwidth 32
  138.     elementheight 32
  139.     cvarTest "ui_q3model"
  140.     showCVar { "1" }
  141.     textscale .20
  142.     elementtype LISTBOX_IMAGE
  143.     feeder FEEDER_Q3HEADS
  144.     textalign 0
  145.     background "ui/assets/scrollbar"
  146.     textaligny 14
  147.     border 1
  148.     bordercolor   MP_BOX_BORDER
  149.     forecolor     MP_BOX_FORE
  150.     backcolor     MP_BOX_BACK
  151.     outlinecolor  MP_BOX_OUTLINE
  152.     visible 1
  153.     columns 1
  154.     2 190 25
  155.     }
  156.  
  157. itemDef    {
  158.     name themodel
  159.     ownerdraw UI_PLAYERMODEL
  160.     rect 361 118 217 339
  161.     style WINDOW_STYLE_FILLED
  162.     style 1
  163.     decoration 
  164.     border 1
  165.     bordercolor   MP_BOX_BORDER
  166.     forecolor     MP_BOX_FORE
  167.     backcolor     MP_BOX_BACK
  168.     outlinecolor  MP_BOX_OUTLINE
  169.     visible 1
  170.     }
  171.  
  172. itemDef    {
  173.     name mappreviewtext
  174.     text "Model:"
  175.     style 0    
  176.     type 0
  177.     textstyle 6
  178.     textscale .237
  179.     rect 382 116 1 1
  180.     textalign 0        
  181.     textalignx 6    
  182.     textaligny 0        
  183.     forecolor MP_BOX_HEADERCOLOR
  184.     visible 1
  185.     decoration
  186.     }
  187.  
  188. // PLAYER NAME
  189. itemDef    {
  190.     name hostnamer
  191.     style 0    
  192.     text "Player Name:"
  193.     style 0    
  194.     type 0
  195.     textstyle 6
  196.     textscale .25
  197.     rect 212 137 1 1
  198.     textalign 0        
  199.     textalignx 6    
  200.     textaligny 18        
  201.     forecolor MP_BOX_HEADERCOLOR
  202.     visible 1
  203.     decoration
  204.     }
  205.  
  206. itemDef    {
  207.     name settin
  208.     style WINDOW_STYLE_FILLED
  209.     type ITEM_TYPE_EDITFIELD
  210.     text ""
  211.     cvar "ui_Name"
  212.     maxChars 40
  213.     maxPaintChars 10
  214.     background "ui/assets/scrollbar"
  215.     textstyle 6
  216.     textscale .24
  217.     rect 212 166 150 24
  218.     textalign 0        
  219.     textalignx 6    
  220.     textaligny 18        
  221.     border 1
  222.     bordercolor   MP_BOX_BORDER
  223.     forecolor     MP_BOX_FORE
  224.     backcolor     MP_BOX_BACK
  225.     outlinecolor  MP_BOX_OUTLINE
  226.     visible 1 
  227.     }
  228.  
  229.  
  230. // MAX PRAYERS
  231. itemDef    {
  232.     name hanidcap
  233.     style 0    
  234.     text "Handicap:"
  235.     style 0    
  236.     type 0
  237.     textstyle 6
  238.     textscale .25
  239.     rect 212 200 1 1
  240.     textalign 0        
  241.     textalignx 6    
  242.     textaligny 18        
  243.     forecolor MP_BOX_HEADERCOLOR
  244.     visible 1
  245.     decoration
  246.     }
  247.  
  248. itemDef    {
  249.     name settin2
  250.     style WINDOW_STYLE_FILLED
  251.     ownerdraw UI_HANDICAP
  252.     type ITEM_TYPE_EDITFIELD
  253.     text ""
  254.     cvar "handicap"
  255.     maxChars 32
  256.     maxPaintChars 10
  257.     background "ui/assets/scrollbar"
  258.     textstyle 6
  259.     maxchars 4
  260.     textscale .24
  261.     rect 212 229 150 24
  262.     textalign 0        
  263.     textalignx 6    
  264.     textaligny 18        
  265.     border 1
  266.     bordercolor   MP_BOX_BORDER
  267.     forecolor     MP_BOX_FORE
  268.     backcolor     MP_BOX_BACK
  269.     outlinecolor  MP_BOX_OUTLINE
  270.     visible 1 
  271.     }
  272.  
  273. itemDef    {
  274.     name password
  275.     text "Model type:"
  276.     style 0    
  277.     type 0
  278.     textstyle 6
  279.     textscale .25
  280.     rect 212 263 1 1
  281.     textalign 0        
  282.     textalignx 6    
  283.     textaligny 18        
  284.     forecolor MP_BOX_HEADERCOLOR
  285.     visible 1
  286.     decoration
  287.     }
  288.  
  289. itemDef    {
  290.     name arenatype
  291.     type ITEM_TYPE_MULTI    
  292.     cvar "ui_q3model"
  293.     cvarFloatList { "Team Game" 0 "DM Game" 1 }
  294.     text ""
  295.     style WINDOW_STYLE_FILLED
  296.     background "ui/assets/scrollbar"
  297.     textstyle 6
  298.     textscale .24
  299.     rect 212 287 150 24
  300.     textalign 0        
  301.     textalignx 6    
  302.     textaligny 18        
  303.     border 1
  304.     bordercolor   MP_BOX_BORDER
  305.     forecolor     MP_BOX_FORE
  306.     backcolor     MP_BOX_BACK
  307.     outlinecolor  MP_BOX_OUTLINE
  308.     visible 1 
  309.     }
  310.  
  311. itemDef    {
  312.     name teamname
  313.     style 0
  314.     text "Team Name:"
  315.     type 0
  316.     textstyle 6
  317.     textscale .25
  318.     rect 212 326 1 1
  319.     textalign 0
  320.     textalignx 6
  321.     textaligny 18
  322.     forecolor MP_BOX_HEADERCOLOR
  323.     visible 1
  324.     cvarTest "ui_q3model"
  325.     showCvar { "0" }
  326.     }
  327.  
  328. itemDef    {
  329.     name teamshit
  330.     style 1
  331.     type 1
  332.     ownerdraw UI_CLANNAME
  333.     text ""
  334.     textstyle 6
  335.     textscale .24
  336.     rect 212 350 150 24
  337.     textalign 0
  338.     textalignx 6
  339.     textaligny 18
  340.     border 1
  341.     bordercolor   MP_BOX_BORDER
  342.     forecolor     MP_BOX_FORE
  343.     backcolor     MP_BOX_BACK
  344.     outlinecolor  MP_BOX_OUTLINE
  345.     visible 1
  346.     cvarTest "ui_q3model"
  347.     showCvar { "0" }
  348.     }
  349.  
  350. }
  351. }