//---------------------------------------------------------------------------------------------- // // QUIT MENU // //---------------------------------------------------------------------------------------------- { menuDef { name "quitMenu" visible 0 fullScreen 1 // MENU_TRUE rect 0 0 640 480 // Size and position of the menu focusColor 1 1 1 1 // Focus color for text and items appearanceIncrement 100 // In miliseconds descX 320 descY 424 descScale 1 descColor 1 .682 0 .8 descAlignment ITEM_ALIGN_CENTER appearanceIncrement 100 // In miliseconds onESC { play "sound/interface/button1.wav" ; close quitMenu ; open mainMenu ; } onOpen { setfocus quitgame_cancel } //---------------------------------------------------------------------------------------------- // // MENU BACKGROUND // //---------------------------------------------------------------------------------------------- itemDef { name really_background group none style WINDOW_STYLE_SHADER rect 156 154 320 240 background "gfx/menus/main_centerblue" forecolor 1 1 1 1 visible 1 decoration } itemDef { name background_text group none style WINDOW_STYLE_SHADER rect 0 0 160 480 background "gfx/menus/menu_side_text" forecolor 1 1 1 1 visible 1 decoration } itemDef { name background_text_b group none style WINDOW_STYLE_SHADER rect 480 0 160 480 background "gfx/menus/menu_side_text_right" forecolor 1 1 1 1 visible 1 decoration } itemDef { name background group none style WINDOW_STYLE_SHADER rect 0 0 640 480 background "gfx/menus/main_background" forecolor 1 1 1 1 visible 1 decoration } itemDef { name starwars group none style WINDOW_STYLE_SHADER rect 107 8 428 112 background "gfx/menus/jediacademy" forecolor 1 1 1 1 visible 1 decoration } itemDef { name left_frame group lf_fr style WINDOW_STYLE_SHADER rect 0 50 320 160 background "gfx/menus/menu_boxes_left" forecolor 1 1 1 1 visible 1 decoration } itemDef { name right_frame group rt_fr style WINDOW_STYLE_SHADER rect 320 50 320 160 background "gfx/menus/menu_boxes_right" forecolor 1 1 1 1 visible 1 decoration } //---------------------------------------------------------------------------------------------- // // TOP MENU BUTTONS // //---------------------------------------------------------------------------------------------- // Big button "NEW" itemDef { name newgamebutton_glow group mods style WINDOW_STYLE_SHADER rect 7 126 130 24 background "gfx/menus/menu_buttonback" // Frame around button forecolor 1 1 1 1 visible 0 decoration } itemDef { name newgamebutton group toprow style WINDOW_STYLE_EMPTY type ITEM_TYPE_BUTTON rect 7 126 130 24 text @MENUS_PLAY descText @MENUS_START_PLAYING_NOW font 3 textscale 1.1 textaligny 0 textalign ITEM_ALIGN_CENTER textstyle 0 textalignx 65 forecolor 1 .682 0 1 visible 1 mouseEnter { show newgamebutton_glow } mouseExit { hide newgamebutton_glow } action { play "sound/interface/button1.wav" ; close all ; open multiplayermenu } } // Big button "PLAYER PROFILE" itemDef { name profilebutton_glow group mods style WINDOW_STYLE_SHADER rect 170 126 130 24 background "gfx/menus/menu_buttonback" // Frame around button forecolor 1 1 1 1 visible 0 decoration } itemDef { name profilebutton group toprow text @MENUS_PROFILE descText @MENUS_PROFILE_DESC style WINDOW_STYLE_EMPTY type ITEM_TYPE_BUTTON rect 170 126 130 24 textaligny 0 font 3 textscale 1.1 textalign ITEM_ALIGN_CENTER textstyle 0 textalignx 65 forecolor 1 .682 0 1 visible 1 mouseEnter { show profilebutton_glow } mouseExit { hide profilebutton_glow } action { play "sound/interface/button1.wav" ; close all ; open playerMenu } } // Big button "CONTROLS" itemDef { name controlsbutton_glow group mods style WINDOW_STYLE_SHADER rect 340 126 130 24 background "gfx/menus/menu_buttonback" // Frame around button forecolor 1 1 1 1 visible 0 decoration } itemDef { name controlsbutton group toprow text @MENUS_CONTROLS2 descText @MENUS_CONFIGURE_GAME_CONTROLS type ITEM_TYPE_BUTTON style WINDOW_STYLE_EMPTY rect 340 126 130 24 font 3 textscale 1.1 textaligny 0 textalign ITEM_ALIGN_CENTER textstyle 0 textalignx 65 backcolor 0 0 0 0 forecolor 1 .682 0 1 visible 1 mouseEnter { show controlsbutton_glow } mouseExit { hide controlsbutton_glow } action { play "sound/interface/button1.wav" ; close all ; open controlsMenu ; } } // Big button "SETUP" itemDef { name setupbutton_glow group mods style WINDOW_STYLE_SHADER rect 502 126 130 24 background "gfx/menus/menu_buttonback" // Frame around button forecolor 1 1 1 1 visible 0 decoration } itemDef { name setupbutton group toprow text @MENUS_SETUP descText @MENUS_CONFIGURE_GAME_SETTINGS type ITEM_TYPE_BUTTON style WINDOW_STYLE_EMPTY rect 502 126 130 24 font 3 textscale 1.1 textaligny 0 textalign ITEM_ALIGN_CENTER textstyle 0 textalignx 65 backcolor 0 0 0 0 forecolor 1 .682 0 1 visible 1 mouseEnter { show setupbutton_glow } mouseExit { hide setupbutton_glow } action { play "sound/interface/button1.wav" ; close all ; open setup_menu } } //---------------------------------------------------------------------------------------------- // // OTHER MAIN MENU BUTTONS // //---------------------------------------------------------------------------------------------- // Credits hidden button itemDef { name creditsbutton group othermain // text @CREDITS descText @MENUS_SHOW_GAME_CREDITS type ITEM_TYPE_BUTTON style WINDOW_STYLE_EMPTY rect 200 144 256 256 font 2 textscale 1 textaligny 0 textalign ITEM_ALIGN_CENTER textalignx 46 backcolor 0 0 0 0 forecolor 0.65 0.65 1 1 visible 0 mouseEnter { } mouseExit { } action { play "sound/interface/button1.wav" ; close all ; open creditsMenu } } //---------------------------------------------------------------------------------------------- // // QUIT MENU specific stuff // //---------------------------------------------------------------------------------------------- // Quitting title itemDef { name quit_title group none text @MENUS_LEAVING_JEDI_KNIGHT_2 style WINDOW_STYLE_SHADER background "gfx/menus/menu_blendbox" rect 100 164 440 16 font 3 textscale 0.7 textalign ITEM_ALIGN_CENTER textalignx 225 textaligny -1 forecolor .549 .854 1 1 visible 1 decoration } itemDef { name confirm group none text @MENUS_QUIT_JEDI_KNIGHT_II font 2 textscale 1 textstyle 0 rect 95 250 450 20 textalign ITEM_ALIGN_CENTER textalignx 225 textaligny 0 decoration forecolor 1 .682 0 1 visible 1 } itemDef { name quitgame_cancel_button group none style WINDOW_STYLE_SHADER rect 59 444 130 24 background "gfx/menus/menu_buttonback" // Frame around button forecolor 1 1 1 1 decoration visible 0 } // CANCEL button itemDef { name quitgame_cancel group none text @MENUS_NO type ITEM_TYPE_BUTTON style WINDOW_STYLE_EMPTY rect 59 444 130 24 font 3 textscale 1 textalignx 65 textaligny -1 textalign ITEM_ALIGN_CENTER textstyle 0 descText @MENUS_DO_NOT_LEAVE_JEDI_KNIGHT forecolor 1 .682 0 1 visible 1 action { play "sound/interface/button1.wav" ; close quitMenu ; open mainMenu ; } mouseEnter { show quitgame_cancel_button } mouseExit { hide quitgame_cancel_button } } itemDef { name quitgame_yes_button group none style WINDOW_STYLE_SHADER rect 454 444 130 24 background "gfx/menus/menu_buttonback" // Frame around button forecolor 1 1 1 1 decoration visible 0 } // YES button itemDef { name quitgame_yes group none text @MENUS_YES type ITEM_TYPE_BUTTON style WINDOW_STYLE_EMPTY rect 454 444 130 24 font 3 textscale 1 textalignx 65 textaligny -1 textalign ITEM_ALIGN_CENTER textstyle 0 descText @MENUS_JEDI_KNIGHT_II forecolor 1 .682 0 1 visible 1 action { play "sound/interface/button1.wav" ; uiScript Quit // Quit the game } mouseEnter { show quitgame_yes_button } mouseExit { hide quitgame_yes_button } } } }