home *** CD-ROM | disk | FTP | other *** search
/ GameStar Special 2002 April / GSSH42002.iso / MODS / JK2 / sp_tavion.exe / TAVION / TAVION.pk3 / ui / newgame.menu
Text File  |  2002-05-25  |  16KB  |  718 lines

  1. // NEWGAME MENU 
  2. {
  3.     menuDef 
  4.     {
  5.         name                    "newgameMenu"
  6.         visible                    0
  7.         fullScreen                1                            // MENU_TRUE                
  8.         rect                    0 0 640 480                        // Size and position of the menu
  9.         focusColor                1 1 1 1                        // Focus color for text and items
  10.         appearanceIncrement        75                            // In miliseconds
  11.         descX                    375
  12.         descY                    425
  13.         descScale                .8
  14.         descColor                .235 .882 .847 1                    // Focus color for text and items
  15.         descAlignment            ITEM_ALIGN_CENTER        
  16.  
  17.         onESC 
  18.         { 
  19.             play                "sound/weapons/saber/saberoff.mp3" ; 
  20.             close                newgameMenu ; 
  21.             open                mainMenu ;
  22.         }
  23.  
  24.         onOpen
  25.         { 
  26.             setcvar        g_spskill 1 ;  
  27.             setcvar        cg_crosshairForceHint 1 ;
  28.             setcvar        handicap 100
  29.                 hide            diff1_frame
  30.                 show            diff2_frame
  31.                 hide            diff3_frame
  32.                 hide            diff4_frame
  33.                 setitemcolor    easygame_button        forecolor      0.64 0.65 1 1
  34.                 setitemcolor    mediumgame_button        forecolor      1 1 1 1
  35.                 setitemcolor    hardgame_button        forecolor      0.64 0.65 1 1
  36.                 setitemcolor    veryhardgame_button     forecolor      0.64 0.65 1 1
  37.         }
  38.  
  39.         //----------------------------------------------------------------------------------------------
  40.         //
  41.         //    MENU BACKGROUND
  42.         //
  43.         //----------------------------------------------------------------------------------------------
  44.         itemDef 
  45.         {
  46.             name                frame_pic
  47.             group                none
  48.             style                WINDOW_STYLE_SHADER
  49.             rect                0 0 640 480
  50.             background            "gfx/menus/menu1"                    // Frame
  51.             forecolor            1 1 1 1
  52.             visible            1
  53.             decoration
  54.         }
  55.  
  56.         // The saber glow on the left
  57.         itemDef 
  58.         {
  59.             name                saberglow
  60.             group                none
  61.             style                WINDOW_STYLE_SHADER
  62.             rect                30 0 90 480
  63.             background            "gfx/menus/menu3"                    // Frame
  64.             forecolor            0.8 0.8 0.8 1
  65.             visible            1
  66.             decoration
  67.         }
  68.  
  69.  
  70.         // The starwars logo on the top
  71.         itemDef 
  72.         {
  73.             name                starwars
  74.             group                none
  75.             style                WINDOW_STYLE_SHADER
  76.             rect                143 12 470 93
  77.             background            "gfx/menus/menu4"                    // Frame
  78.             forecolor            1 1 1 1
  79.             visible            1
  80.             decoration
  81.         }
  82.  
  83.         // The saber halo on the left
  84.         itemDef 
  85.         {
  86.             name                saberhalo
  87.             group                none
  88.             style                WINDOW_STYLE_SHADER
  89.             rect                -425 -185 1000 1000
  90.             background            "gfx/menus/menu2"                    // Frame
  91.             forecolor            0.5 0.5 0.5 1
  92.             visible            1
  93.             decoration
  94.         }
  95.  
  96.         itemDef
  97.         {
  98.             name                logomodel
  99.             group                none
  100.             type                 ITEM_TYPE_MODEL
  101.             rect                -123 48 400 400
  102.             model_angle            90
  103.             model_rotation        3.5
  104.             asset_model            "models/map_objects/bespin/jk2logo.md3"
  105. //            model_fovx            37
  106. //            model_fovy            34
  107. //            model_origin        100 100 100
  108.             visible            1
  109.             decoration
  110.         }
  111.  
  112.         // The saber halo on the left
  113.         itemDef 
  114.         {
  115.             name                saberhalo2
  116.             group                none
  117.             style                WINDOW_STYLE_SHADER
  118.             rect                -225 15 600 600
  119.             background            "gfx/menus/menu2b"                    // Frame
  120.             forecolor            0.25 0.25 0.25 1
  121.             visible            1
  122.             decoration
  123.         }
  124.  
  125.         //----------------------------------------------------------------------------------------------
  126.         //
  127.         //    TOP MAIN MENU BUTTONS
  128.         //
  129.         //----------------------------------------------------------------------------------------------
  130.  
  131.         // Big button "NEW"
  132.         itemDef 
  133.         {
  134.             name                newgamebutton_glow
  135.             group                mods
  136.             style                WINDOW_STYLE_SHADER
  137.             rect                115 115 130 24
  138.             background            "gfx/menus/menu_buttonback"            // Frame around button
  139.             forecolor            1 1 1 1
  140.             visible                0
  141.             decoration
  142.         }
  143.  
  144.         itemDef 
  145.         {
  146.             name                newgamebutton
  147.             group                toprow
  148.             style                WINDOW_STYLE_EMPTY
  149.             type                ITEM_TYPE_BUTTON
  150.             rect                115 115 130 24
  151.             text                @MENUS1_NEW
  152.             descText            @MENUS1_START_A_NEW_GAME
  153.             font                3
  154.             textscale            0.9
  155.             textaligny            0
  156.             textalign            ITEM_ALIGN_CENTER
  157.             textstyle            3
  158.             textalignx            65
  159.             forecolor            1 1 1 1
  160.             visible                1
  161.             decoration
  162.  
  163.             mouseEnter 
  164.             { 
  165.                 show            newgamebutton_glow 
  166.             }
  167.             mouseExit 
  168.             { 
  169.                 hide            newgamebutton_glow 
  170.             }            
  171.         }
  172.  
  173.         // Big button "LOAD"
  174.         itemDef 
  175.         {
  176.             name                loadgamebutton_glow
  177.             group                mods
  178.             style                WINDOW_STYLE_SHADER
  179.             rect                245 115 130 24
  180.             background            "gfx/menus/menu_buttonback"            // Frame around button
  181.             forecolor            1 1 1 1
  182.             visible            0
  183.             // appearance_slot        1
  184.             decoration
  185.         }
  186.  
  187.         itemDef 
  188.         {
  189.             name                loadgamebutton
  190.             group                toprow
  191.             text                @MENUS1_LOAD
  192.             descText            @MENUS1_LOAD_A_SAVED_GAME
  193.             style                WINDOW_STYLE_EMPTY
  194.             type                ITEM_TYPE_BUTTON
  195.             rect                245 115 130 24
  196.             textaligny            0
  197.             font                3
  198.             textscale            0.9
  199.             textalign            ITEM_ALIGN_CENTER
  200.             textstyle            3
  201.             textalignx            65
  202.             forecolor            0.64 0.65 1 1
  203.             visible                1
  204.  
  205.             mouseEnter 
  206.             { 
  207.                 show            loadgamebutton_glow 
  208.             }
  209.             mouseExit 
  210.             { 
  211.                 hide            loadgamebutton_glow 
  212.             }            
  213.             action 
  214.             { 
  215.                 play            "sound/interface/button1.wav" ; 
  216.                 close            all ; 
  217.                 open            loadgameMenu 
  218.             }
  219.         }
  220.  
  221.         // Big button "CONTROLS"
  222.         itemDef 
  223.         {
  224.             name                controlsbutton_glow
  225.             group                mods
  226.             style                WINDOW_STYLE_SHADER
  227.             rect                375 115 130 24
  228.             background            "gfx/menus/menu_buttonback"            // Frame around button
  229.             forecolor            1 1 1 1
  230.             visible            0
  231.             // appearance_slot        1
  232.             decoration
  233.         }
  234.  
  235.         itemDef {
  236.             name                controlsbutton
  237.             group                toprow
  238.             text                @MENUS0_CONTROLS2
  239.             descText            @MENUS0_CONFIGURE_GAME_CONTROLS
  240.             type                ITEM_TYPE_BUTTON
  241.             style                WINDOW_STYLE_EMPTY
  242.             rect                375 115 130 24
  243.             font                3
  244.             textscale            0.9
  245.             textaligny            0
  246.             textalign            ITEM_ALIGN_CENTER
  247.             textstyle            3
  248.             textalignx            65
  249.             backcolor            0 0 0 0
  250.             forecolor            0.64 0.65 1 1
  251.             visible                1
  252.              
  253.             mouseEnter 
  254.             { 
  255.                 show            controlsbutton_glow 
  256.             }
  257.             mouseExit 
  258.             { 
  259.                 hide            controlsbutton_glow 
  260.             }            
  261.             action 
  262.             {
  263.                 play            "sound/interface/button1.wav" ; 
  264.                 close            all ; 
  265.                 open            controlsMenu ; 
  266.             }
  267.         }
  268.  
  269.         // Big button "SETUP"
  270.         itemDef 
  271.         {
  272.             name                setupbutton_glow
  273.             group                mods
  274.             style                WINDOW_STYLE_SHADER
  275.             rect                505 115 130 24
  276.             background            "gfx/menus/menu_buttonback"            // Frame around button
  277.             forecolor            1 1 1 1
  278.             visible            0
  279.             // appearance_slot        1
  280.             decoration
  281.         }
  282.  
  283.         itemDef {
  284.             name                setupbutton
  285.             group                toprow
  286.             text                @MENUS0_SETUP
  287.             descText            @MENUS0_CONFIGURE_GAME_SETTINGS
  288.             type                ITEM_TYPE_BUTTON
  289.             style                WINDOW_STYLE_EMPTY
  290.             textstyle            3
  291.             rect                505 115 130 24
  292.             font                3
  293.             textscale            0.9
  294.             textaligny            0
  295.             textalign            ITEM_ALIGN_CENTER
  296.             textalignx            65
  297.             backcolor            0 0 0 0
  298.             forecolor            0.64 0.65 1 1
  299.             visible                1
  300.              
  301.             mouseEnter 
  302.             { 
  303.                 show            setupbutton_glow 
  304.             }
  305.             mouseExit 
  306.             { 
  307.                 hide            setupbutton_glow 
  308.             }            
  309.             action 
  310.             {
  311.                 play            "sound/interface/button1.wav" ; 
  312.                 close            all ; 
  313.                 open            setupMenu ; 
  314.             }
  315.         }
  316.  
  317.         itemDef 
  318.         {
  319.             name                header_line
  320.             group                toprow
  321.             style                WINDOW_STYLE_SHADER
  322.             rect                125 136 500 4
  323.             background            "gfx/menus/menu_line"                    // Frame
  324.             forecolor            1 1 1 1
  325.             visible                1
  326.             decoration
  327.         }
  328.  
  329.  
  330.         //----------------------------------------------------------------------------------------------
  331.         //
  332.         //    OTHER MAIN MENU BUTTONS
  333.         //
  334.         //----------------------------------------------------------------------------------------------
  335.         // Credits hidden button
  336.         itemDef 
  337.         {
  338.             name                creditsbutton
  339.             group                othermain
  340. //            text                @CREDITS
  341.             descText            @MENUS0_SHOW_GAME_CREDITS
  342.             type                ITEM_TYPE_BUTTON
  343.             style                WINDOW_STYLE_EMPTY
  344.             rect                51 284 52 60
  345.             font                2
  346.             textscale            1
  347.             textaligny            0
  348.             textalign            ITEM_ALIGN_CENTER
  349.             textalignx            46
  350.             backcolor            0 0 0 0
  351.             forecolor            0.65 0.65 1 1
  352.             visible                0
  353.  
  354.             mouseEnter
  355.             {
  356.                 setitemcolor        saberhalo2     forecolor      0.7 0.7 0.7 1
  357.             }        
  358.             mouseExit
  359.             {
  360.                 setitemcolor        saberhalo2     forecolor      0.25 0.25 0.25 1
  361.             }        
  362.             action 
  363.             { 
  364.                 play            "sound/interface/button1.wav" ;     
  365.                 close            all ; 
  366.                 open            creditsMenu 
  367.             }
  368.         }
  369.  
  370.         // EXIT button in lower left corner
  371.         itemDef 
  372.         {
  373.             name                exitgamebutton_glow
  374.             group                mods
  375.             style                WINDOW_STYLE_SHADER
  376.             rect                115 444 130 24 
  377.             background            "gfx/menus/menu_buttonback"            // Frame around button
  378.             forecolor            1 1 1 1
  379.             visible            0
  380.             // appearance_slot        1
  381.             decoration
  382.         }
  383.  
  384.         itemDef 
  385.         {
  386.             name                exitgamebutton
  387.             group                othermain
  388.             text                @MENUS0_EXIT
  389.             descText            @MENUS1_JEDI_KNIGHT_II
  390.             type                ITEM_TYPE_BUTTON
  391.             style                WINDOW_STYLE_EMPTY
  392.             rect                115 444 130 24 
  393.             font                3
  394.             textscale            1
  395.             textalign            ITEM_ALIGN_CENTER
  396.             textstyle            3
  397.             textalignx            65
  398.             textaligny            -1
  399.             forecolor            0.65 0.65 1 1
  400.             visible            1
  401.  
  402.             mouseEnter 
  403.             { 
  404.                 show            exitgamebutton_glow 
  405.             }
  406.             mouseExit 
  407.             { 
  408.                 hide            exitgamebutton_glow 
  409.             }            
  410.             action 
  411.             { 
  412.                 play            "sound/weapons/saber/saberoff.mp3"; 
  413.                 close            all ; 
  414.                 open            quitMenu 
  415.             }
  416.         }
  417.  
  418.         //----------------------------------------------------------------------------------------------
  419.         //
  420.         //   NEW GAME MENU specific stuff
  421.         //
  422.         //----------------------------------------------------------------------------------------------
  423.         // New Game title
  424.         itemDef 
  425.         {
  426.             name                newgame_title
  427.             group                none
  428.             style                WINDOW_STYLE_SHADER
  429.             background            "gfx/menus/menu_blendbox"
  430.             text                @MENUS2_NEW_GAME
  431.               rect                150 145 450 16
  432.             font                3
  433.             textscale            0.7
  434.             textalign            ITEM_ALIGN_CENTER        
  435.             textalignx            225
  436.             textaligny            -1    
  437.             forecolor            1 1 1 1
  438.               visible            1 
  439.             // appearance_slot        2
  440.               decoration 
  441.         }
  442.  
  443.         itemDef 
  444.         {
  445.             name                diff1_frame
  446.             group                none
  447.             style                WINDOW_STYLE_SHADER
  448.             rect                250 200 250 40 
  449.             background            "gfx/menus/menu_buttonback"            // Box around difficulty 1
  450.             forecolor            1 1 1 1
  451.             visible            0 
  452.             // appearance_slot        10
  453.             decoration
  454.         }
  455.  
  456.         // EASY difficulty button
  457.         itemDef 
  458.         {
  459.             name                easygame_button
  460.             group                none
  461.             text                @MENUS1_APPRENTICE
  462.             type                ITEM_TYPE_BUTTON
  463.             style                WINDOW_STYLE_EMPTY
  464.             font                3
  465.             textscale            1
  466.             textalign            ITEM_ALIGN_CENTER
  467.             textstyle            3
  468.             rect                250 200 250 40 
  469.             textalignx            125
  470.             textaligny            8
  471.             forecolor            0.64 0.65 1 1
  472.             visible            1        
  473.             // appearance_slot        3
  474.             descText            @MENUS1_EASY_GAME_SETTINGS
  475.  
  476.             action 
  477.             { 
  478.                 play            "sound/interface/button1.wav"
  479.                 setcvar        g_spskill 0
  480.                 setcvar        cg_crosshairForceHint 1
  481.                 setcvar        handicap 100
  482.                 show            diff1_frame 
  483.                 hide            diff2_frame
  484.                 hide            diff3_frame
  485.                 hide            diff4_frame
  486.                 setitemcolor    easygame_button        forecolor      1 1 1 1
  487.                 setitemcolor    mediumgame_button        forecolor      0.64 0.65 1 1
  488.                 setitemcolor    hardgame_button        forecolor      0.64 0.65 1 1
  489.                 setitemcolor    veryhardgame_button     forecolor      0.64 0.65 1 1
  490.             }
  491.  
  492.         }
  493.  
  494.         itemDef 
  495.         {
  496.             name                diff2_frame
  497.             group                none
  498.             style                WINDOW_STYLE_SHADER
  499.             rect                250 240 250 40 
  500.             background            "gfx/menus/menu_buttonback"        // Box around difficulty 2
  501.             forecolor            1 1 1 1
  502.             visible                1
  503.             // appearance_slot        10
  504.             decoration
  505.         }
  506.  
  507.         // MEDIUM difficulty button
  508.         itemDef 
  509.         {
  510.             name                mediumgame_button
  511.             group                none
  512.             text                @MENUS1_JEDI
  513.             type                ITEM_TYPE_BUTTON
  514.             style                WINDOW_STYLE_EMPTY
  515.             font                3
  516.             textscale            1
  517.             rect                250 240 250 40 
  518.             textalignx            125
  519.             textaligny            8
  520.             textalign            ITEM_ALIGN_CENTER
  521.             textstyle            3
  522.             forecolor            1 1 1 1
  523.             visible            1
  524.             // appearance_slot        4
  525.             descText            @MENUS1_NORMAL_GAME_SETTINGS
  526.  
  527.             action 
  528.             { 
  529.                 play            "sound/interface/button1.wav"
  530.                 setcvar        g_spskill 1
  531.                 setcvar        cg_crosshairForceHint 1
  532.                 setcvar        handicap 100
  533.                 hide            diff1_frame ;
  534.                 show            diff2_frame ;
  535.                 hide            diff3_frame ;
  536.                 hide            diff4_frame ;
  537.                 setitemcolor    easygame_button        forecolor      0.64 0.65 1 1
  538.                 setitemcolor    mediumgame_button        forecolor      1 1 1 1
  539.                 setitemcolor    hardgame_button        forecolor      0.64 0.65 1 1
  540.                 setitemcolor    veryhardgame_button     forecolor      0.64 0.65 1 1
  541.             }
  542.  
  543.         }
  544.  
  545.         itemDef 
  546.         {
  547.             name                diff3_frame
  548.             group                none
  549.             style                WINDOW_STYLE_SHADER
  550.             rect                250 280 250 40 
  551.             background            "gfx/menus/menu_buttonback"        // Box around difficulty 3
  552.             forecolor            1 1 1 1
  553.             visible                0
  554.             // appearance_slot        10
  555.             decoration
  556.         }
  557.     
  558.         // HARD difficulty button
  559.         itemDef 
  560.         {
  561.             name                hardgame_button
  562.             group                none
  563.             text                @MENUS2_JEDI_KNIGHT
  564.             font                3
  565.             textscale            1
  566.             type                ITEM_TYPE_BUTTON
  567.             style                WINDOW_STYLE_EMPTY
  568.             rect                250 280 250 40 
  569.             textalignx            125
  570.             textaligny            8
  571.             textalign            ITEM_ALIGN_CENTER
  572.             textstyle            3
  573.             forecolor            0.64 0.65 1 1
  574.             visible                1
  575.             // appearance_slot        5
  576.             descText            @MENUS1_DIFFICULT_GAME_SETTINGS
  577.  
  578.             action 
  579.             { 
  580.                 play            "sound/interface/button1.wav" ;  
  581.                 setcvar        g_spskill 2 ;
  582.                 setcvar        cg_crosshairForceHint 0 ;
  583.                 setcvar        handicap 100
  584.                 hide            diff1_frame ;
  585.                 hide            diff2_frame ;
  586.                 show            diff3_frame ;
  587.                 hide            diff4_frame ;
  588.                 setitemcolor    easygame_button        forecolor      0.64 0.65 1 1
  589.                 setitemcolor    mediumgame_button        forecolor      0.64 0.65 1 1
  590.                 setitemcolor    hardgame_button        forecolor      1 1 1 1
  591.                 setitemcolor    veryhardgame_button     forecolor      0.64 0.65 1 1
  592.             }
  593.  
  594.         }
  595.  
  596.         itemDef 
  597.         {
  598.             name                diff4_frame
  599.             group                none
  600.             style                WINDOW_STYLE_SHADER
  601.             rect                250 320 250 40 
  602.             background            "gfx/menus/menu_buttonback"            // Box around difficulty 4
  603.             forecolor            1 1 1 1
  604.             visible                0
  605.             // appearance_slot        10
  606.             decoration
  607.         }
  608.     
  609.         // VERY HARD difficulty button
  610.         itemDef 
  611.         {
  612.             name                veryhardgame_button
  613.             group                none
  614.             text                @MENUS1_JEDI_MASTER
  615.             font                3
  616.             textscale            1
  617.             type                ITEM_TYPE_BUTTON
  618.             style                WINDOW_STYLE_EMPTY
  619.             rect                250 320 250 40 
  620.             textalignx            125
  621.             textaligny            8
  622.             textalign            ITEM_ALIGN_CENTER
  623.             textstyle            3
  624.             forecolor            0.64 0.65 1 1
  625.             visible            1    
  626.             // appearance_slot        6
  627.             descText            @MENUS1_EXTREMELY_DIFFICULT_GAME
  628.  
  629.             action 
  630.             { 
  631.                 play            "sound/interface/button1.wav"
  632.                 setcvar        g_spskill 2
  633.                 setcvar        cg_crosshairForceHint 0
  634.                 setcvar        handicap 50
  635.                 hide            diff1_frame ;
  636.                 hide            diff2_frame ;
  637.                 hide            diff3_frame ;
  638.                 show            diff4_frame ;
  639.                 setitemcolor    easygame_button        forecolor      0.64 0.65 1 1
  640.                 setitemcolor    mediumgame_button        forecolor      0.64 0.65 1 1
  641.                 setitemcolor    hardgame_button        forecolor      0.64 0.65 1 1
  642.                 setitemcolor    veryhardgame_button     forecolor      1 1 1 1
  643.             }
  644.  
  645.         }
  646.  
  647.         // BEGIN button
  648.         itemDef 
  649.         {
  650.             name                begingamebutton_glow
  651.             group                mods
  652.             style                WINDOW_STYLE_SHADER
  653.             rect                435 444 130 24 
  654.             background            "gfx/menus/menu_buttonback"            // Frame around button
  655.             forecolor            1 1 1 1
  656.             visible            0
  657.             // appearance_slot        1
  658.             decoration
  659.         }
  660.  
  661.         itemDef 
  662.         {
  663.             name                newgame_begin
  664.             group                none
  665.             text                @MENUS2_BEGIN_GAME
  666.             descText            @MENUS1_START_JEDI_KNIGHT_II
  667.             type                ITEM_TYPE_BUTTON
  668.             style                WINDOW_STYLE_EMPTY
  669.             rect                435 444 130 24 
  670.             font                3
  671.             textscale            1
  672.             textalignx            65
  673.             textaligny            -1
  674.             textalign            ITEM_ALIGN_CENTER
  675.             textstyle            3
  676.             forecolor            0.65 0.65 1 1
  677.             visible            1
  678.             // appearance_slot        9
  679.               action 
  680.             { 
  681.                 exec     "exec gamestart.cfg"    // Start the new game
  682.             }
  683.             mouseEnter 
  684.             { 
  685.                 show            begingamebutton_glow
  686.             }
  687.             mouseExit 
  688.             { 
  689.                 hide            begingamebutton_glow
  690.             }            
  691.         }
  692.     }
  693. }
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.