home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 87 / CDMM87_1.ISO / Sidrial / data1.cab / Program_Files / sidrial0.pk3 / ui / sidrial_serverinfo.menu < prev    next >
Encoding:
Text File  |  2002-01-13  |  4.5 KB  |  244 lines

  1. #include "ui/menudef.h"
  2.  
  3. {
  4. \\ Server Information Popup Menu \\
  5.  
  6. menuDef {
  7.     name "serverinfo_popmenu"
  8.        visible 0
  9.        fullscreen 0
  10.     popup
  11.     rect 158 80 320 345
  12.     outOfBoundsClick
  13.     focusColor 1 1 1 1
  14.     onOpen { uiScript ServerStatus }
  15.     onESC { close serverinfo_popmenu ; open multiplayer ; }
  16.  
  17. //Background
  18.     itemDef {
  19.         name window
  20.         rect 10 15 300 320
  21.         style 1
  22.         backcolor 0 0 0 .6
  23.         forecolor 0 0 0 1
  24.         visible 1
  25.         decoration
  26.     }
  27.     itemDef {
  28.         name window
  29.         rect 10 15 300 320
  30.         style 1
  31.         backcolor 0 0 0 0.5
  32.         forecolor 0 0 0 1
  33.         border 0
  34.         visible 1
  35.         decoration
  36.         }
  37.     itemDef {
  38.         name window
  39.         rect 10 15 300 320
  40.         style 1
  41.         backcolor .66 1 0 .6
  42.         forecolor 0 0 0 1
  43.         border 1
  44.         bordercolor .66 1 0 1
  45.         visible 1
  46.         decoration
  47.         }
  48. //Content
  49.     itemDef {
  50.         name serverinfo
  51.         rect 0 20 320 20    
  52.         text "Server Information:" 
  53.         textstyle 3
  54.         textalign 1
  55.         textscale .4
  56.         textalignx 160
  57.         textaligny 20
  58.         forecolor 1 1 1 1
  59.         visible 1
  60.         decoration
  61.         }
  62.     itemDef {
  63.         name serverinfo
  64.         rect 20 55 280 230
  65.         type ITEM_TYPE_LISTBOX
  66.         style WINDOW_STYLE_FILLED
  67.         elementwidth 120
  68.         elementheight 16
  69.         textscale .225
  70.         backcolor 0 .3 0 .5
  71.         border 1
  72.         bordersize 1
  73.         bordercolor .66 1 0 1
  74.         elementtype LISTBOX_TEXT
  75.         feeder FEEDER_SERVERSTATUS
  76.         notselectable
  77.         visible 1
  78.         columns 4    2 40 20
  79.                 40 40 10
  80.                 90 40 10
  81.                 135 40 20
  82.         mouseenter { setitemcolor serverinfo bordercolor 1 1 1 1 ; }
  83.         mouseexit { setitemcolor serverinfo bordercolor .66 1 0 1 ; }
  84.          }
  85. //Button//
  86.     //Exit
  87.     itemDef {
  88.         name exitbar
  89.         style WINDOW_STYLE_FILLED
  90.         rect 95 300 60 21
  91.         backcolor .66 1 0 .7  
  92.         visible 0
  93.         action { play "sound/ui/menu2.wav" ; 
  94.         close serverinfo_popmenu ; 
  95.         open multiplayer ;
  96.         hide greenhue ;}
  97.     }
  98.     itemDef {
  99.           name button        
  100.         style 3
  101.           rect 80 295 30 30 
  102.          background "ui/sidrial/sub/brace.tga"
  103.         backcolor 0 0 0 0
  104.           forecolor 1 1 1 1
  105.           visible 1
  106.         decoration    
  107.         action { play "sound/ui/menu2.wav" ; 
  108.         close serverinfo_popmenu ; 
  109.         open multiplayer ;
  110.         hide greenhue ;}
  111.     }
  112.     itemDef {
  113.           name button    
  114.         style 3
  115.           rect 140 295 30 30 
  116.          background "ui/sidrial/sub/brace_right.tga"
  117.         backcolor 0 0 0 0
  118.           forecolor 1 1 1 1
  119.           visible 1
  120.         decoration    
  121.         action { play "sound/ui/menu2.wav" ; 
  122.         close serverinfo_popmenu ; 
  123.         open multiplayer ;
  124.         hide greenhue ;}
  125.     }
  126.      itemDef {
  127.         name exitwords
  128.         type 1
  129.           text "Exit"
  130.           style 0    
  131.         textstyle 6
  132.           rect 80 295 80 30
  133.            forecolor .66 1 0 1
  134.         textalignx 45
  135.         textaligny 20
  136.           textalign 1
  137.         textscale .3        
  138.           visible 1     
  139.         mouseEnter { transition exitbar 95 310 60 0 95 300 60 21 20 5 ; }
  140.         mouseExit { transition exitbar 95 300 60 21 95 310 60 0 20 5 ; }
  141.         action { play "sound/ui/menu2.wav" ; 
  142.         close serverinfo_popmenu ; 
  143.         open multiplayer ;
  144.         hide greenhue ;}
  145.     }
  146.     //Refresh
  147.     itemDef {
  148.         name refreshbar
  149.         style WINDOW_STYLE_FILLED
  150.         rect 175 300 60 21
  151.         backcolor .66 1 0 .7  
  152.         visible 0
  153.         action { uiScript ServerStatus }
  154.     }
  155.     itemDef {
  156.           name button    
  157.         style 3
  158.           rect 160 295 30 30 
  159.          background "ui/sidrial/sub/brace.tga"
  160.         backcolor 0 0 0 0
  161.           forecolor 1 1 1 1
  162.           visible 1
  163.         decoration    
  164.         action { uiScript ServerStatus }
  165.     }
  166.     itemDef {
  167.           name button    
  168.         style 3
  169.           rect 220 295 30 30 
  170.          background "ui/sidrial/sub/brace_right.tga"
  171.         backcolor 0 0 0 0
  172.           forecolor 1 1 1 1
  173.           visible 1
  174.         decoration    
  175.         action { uiScript ServerStatus }
  176.     }
  177.     itemDef {
  178.         name refreshwords
  179.         type 1
  180.           text "Refresh"
  181.           style 0    
  182.         textstyle 6
  183.           rect 175 295 65 30
  184.            forecolor .66 1 0 1
  185.         textalignx 29
  186.         textaligny 20
  187.           textalign 1
  188.         textscale .3        
  189.           visible 1     
  190.         mouseEnter { transition refreshbar 175 310 60 0 175 300 60 21 20 5 ; }
  191.         mouseExit { transition refreshbar 175 300 60 21 175 310 60 0 20 5 ; }
  192.         action { uiScript ServerStatus }
  193.     }
  194. //Corners        
  195. itemDef {
  196.           name corners    
  197.         style 3
  198.           rect 7 12 40 40
  199.          background "ui/sidrial/Popup/ULCorner.tga"
  200.         backcolor 0 0 0 0
  201.           forecolor 1 1 1 1
  202.           visible 1
  203.         decoration    
  204.     }
  205. itemDef {
  206.           name corners    
  207.         style 3
  208.           rect 273 12 40 40
  209.          background "ui/sidrial/Popup/URCorner.tga"
  210.         backcolor 0 0 0 0
  211.           forecolor 1 1 1 1
  212.           visible 1
  213.         decoration    
  214.     }
  215. itemDef {
  216.           name corners    
  217.         style 3
  218.           rect 7 298 40 40
  219.          background "ui/sidrial/Popup/BLCorner.tga"
  220.         backcolor 0 0 0 0
  221.           forecolor 1 1 1 1
  222.           visible 1
  223.         decoration    
  224.     }
  225. itemDef {
  226.           name corners    
  227.         style 3
  228.           rect 273 298 40 40
  229.          background "ui/sidrial/Popup/BRCorner.tga"
  230.         backcolor 0 0 0 0
  231.           forecolor 1 1 1 1
  232.           visible 1
  233.         decoration    
  234.     }
  235.  
  236.  
  237.  
  238. }
  239.  
  240.  
  241. }
  242.  
  243.  
  244.