123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442 |
- // CREDITS MENU
- {
- menuDef
- {
- name "creditsMenu"
- fullScreen 1 // MENU_TRUE
- rect 0 0 640 480 // Size and position of the menu
- visible 1 // Visible on open
- focusColor 1 1 1 1 // Focus color for text and items
- appearanceIncrement 75 // In miliseconds
- descX 320
- descY 434
- descScale 1
- descColor .235 .882 .847 1 // Focus color for text and items
- descAlignment ITEM_ALIGN_CENTER
- onOpen
- {
- exec "music music/cairn_bay/impbasee_action" ;
- setfocus newgamebutton ;
- }
-
- onClose
- {
- exec "music music/cairn_bay/impbasee_explore" ;
- }
-
- onESC
- {
- play "sound/interface/button1.wav" ;
- close all ;
- open mainMenu ;
- }
- //----------------------------------------------------------------------------------------------
- //
- // MENU BACKGROUND
- //
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name frame_pic
- group none
- style WINDOW_STYLE_SHADER
- rect 0 0 640 480
- background "gfx/menus/menu1" // Frame
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- // The saber glow on the left
- itemDef
- {
- name saberglow
- group none
- style WINDOW_STYLE_SHADER
- rect 30 0 90 480
- background "gfx/menus/menu3" // Frame
- forecolor 0.8 0.8 0.8 1
- visible 1
- decoration
- }
- // The starwars logo on the top
- itemDef
- {
- name starwars
- group none
- style WINDOW_STYLE_SHADER
- rect 143 12 470 93
- background "gfx/menus/menu4" // Frame
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- // The saber halo on the left
- itemDef
- {
- name saberhalo
- group none
- style WINDOW_STYLE_SHADER
- rect -425 -185 1000 1000
- background "gfx/menus/menu2" // Frame
- forecolor 0.5 0.5 0.5 1
- visible 1
- decoration
- }
- itemDef
- {
- name logomodel
- group none
- type ITEM_TYPE_MODEL
- rect -123 48 400 400
- model_angle 90
- model_rotation 3.5
- asset_model "models/map_objects/bespin/jk2logo.md3"
- // model_fovx 37
- // model_fovy 34
- // model_origin 100 100 100
- visible 1
- decoration
- }
- // The saber halo on the left
- itemDef
- {
- name saberhalo2
- group none
- style WINDOW_STYLE_SHADER
- rect -225 15 600 600
- background "gfx/menus/menu2b" // Frame
- forecolor 0.25 0.25 0.25 1
- visible 1
- decoration
- }
- //----------------------------------------------------------------------------------------------
- //
- // TOP MAIN MENU BUTTONS
- //
- //----------------------------------------------------------------------------------------------
- // Big button "NEW"
- itemDef
- {
- name newgamebutton_glow
- group mods
- style WINDOW_STYLE_SHADER
- rect 115 115 130 24
- background "gfx/menus/menu_buttonback" // Frame around button
- forecolor 1 1 1 1
- visible 0
- // appearance_slot 1
- decoration
- }
- itemDef
- {
- name newgamebutton
- group toprow
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_BUTTON
- rect 115 115 130 24
- text @MENUS_NEW
- descText @MENUS_START_A_NEW_GAME
- font 3
- textscale 0.9
- textaligny 0
- textalign ITEM_ALIGN_CENTER
- textstyle 3
- textalignx 65
- forecolor 0.64 0.65 1 1
- visible 1
- mouseEnter
- {
- show newgamebutton_glow
- }
- mouseExit
- {
- hide newgamebutton_glow
- }
- action
- {
- play "sound/interface/button1.wav" ;
- close all ;
- open newgameMenu
- }
- }
- // Big button "LOAD"
- itemDef
- {
- name loadgamebutton_glow
- group mods
- style WINDOW_STYLE_SHADER
- rect 245 115 130 24
- background "gfx/menus/menu_buttonback" // Frame around button
- forecolor 1 1 1 1
- visible 0
- // appearance_slot 1
- decoration
- }
- itemDef
- {
- name loadgamebutton
- group toprow
- text @MENUS_LOAD
- descText @MENUS_LOAD_A_SAVED_GAME
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_BUTTON
- rect 245 115 130 24
- textaligny 0
- font 3
- textscale 0.9
- textalign ITEM_ALIGN_CENTER
- textstyle 3
- textalignx 65
- forecolor 0.64 0.65 1 1
- visible 1
- mouseEnter
- {
- show loadgamebutton_glow
- }
- mouseExit
- {
- hide loadgamebutton_glow
- }
- action
- {
- play "sound/interface/button1.wav" ;
- close all ;
- open loadgameMenu
- }
- }
- // Big button "CONTROLS"
- itemDef
- {
- name controlsbutton_glow
- group mods
- style WINDOW_STYLE_SHADER
- rect 375 115 130 24
- background "gfx/menus/menu_buttonback" // Frame around button
- forecolor 1 1 1 1
- visible 0
- // appearance_slot 1
- decoration
- }
- itemDef {
- name controlsbutton
- group toprow
- text @MENUS_CONTROLS2
- descText @MENUS_CONFIGURE_GAME_CONTROLS
- type ITEM_TYPE_BUTTON
- style WINDOW_STYLE_EMPTY
- rect 375 115 130 24
- font 3
- textscale 0.9
- textaligny 0
- textalign ITEM_ALIGN_CENTER
- textstyle 3
- textalignx 65
- backcolor 0 0 0 0
- forecolor 0.64 0.65 1 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 505 115 130 24
- background "gfx/menus/menu_buttonback" // Frame around button
- forecolor 1 1 1 1
- visible 0
- // appearance_slot 1
- decoration
- }
- itemDef {
- name setupbutton
- group toprow
- text @MENUS_SETUP
- descText @MENUS_CONFIGURE_GAME_SETTINGS
- type ITEM_TYPE_BUTTON
- style WINDOW_STYLE_EMPTY
- rect 505 115 130 24
- font 3
- textscale 0.9
- textaligny 0
- textalign ITEM_ALIGN_CENTER
- textstyle 3
- textalignx 65
- backcolor 0 0 0 0
- forecolor 0.64 0.65 1 1
- visible 1
-
- mouseEnter
- {
- show setupbutton_glow
- }
- mouseExit
- {
- hide setupbutton_glow
- }
- action
- {
- play "sound/interface/button1.wav" ;
- close all ;
- open setupMenu ;
- }
- }
- itemDef
- {
- name header_line
- group toprow
- style WINDOW_STYLE_SHADER
- rect 125 136 500 4
- background "gfx/menus/menu_line" // Frame
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- //----------------------------------------------------------------------------------------------
- //
- // OTHER MAIN MENU BUTTONS
- //
- //----------------------------------------------------------------------------------------------
- // EXIT button in lower left corner
- itemDef
- {
- name exitgamebutton_glow
- group mods
- style WINDOW_STYLE_SHADER
- rect 115 444 130 24
- background "gfx/menus/menu_buttonback" // Frame around button
- forecolor 1 1 1 1
- visible 0
- // appearance_slot 1
- decoration
- }
- itemDef
- {
- name exitgamebutton
- group othermain
- text @MENUS_EXIT
- descText @MENUS_JEDI_KNIGHT_II
- type ITEM_TYPE_BUTTON
- style WINDOW_STYLE_EMPTY
- rect 115 444 130 24
- font 3
- textscale 1
- textalign ITEM_ALIGN_CENTER
- textstyle 3
- textalignx 65
- textaligny -1
- forecolor 0.65 0.65 1 1
- visible 1
- mouseEnter
- {
- show exitgamebutton_glow
- }
- mouseExit
- {
- hide exitgamebutton_glow
- }
- action
- {
- play "sound/weapons/saber/saberoff.mp3";
- close all ;
- open quitMenu
- }
- }
- //----------------------------------------------------------------------------------------------
- //
- // CREDITS FIELDS
- //
- //----------------------------------------------------------------------------------------------
- // Credits title
- itemDef
- {
- name credits_title
- group none
- style WINDOW_STYLE_SHADER
- background "gfx/menus/menu_blendbox"
- text @MENUS_CREDITS
- rect 150 145 450 16
- font 3
- textscale 0.7
- textalign ITEM_ALIGN_CENTER
- textalignx 225
- textaligny -1
- forecolor 1 1 1 1
- visible 1
- // appearance_slot 2
- decoration
- }
- itemDef
- {
- name confirm
- group none
- text @MENUS_TO_BE_DETERMINED
- font 2
- textscale 1
- textstyle 3
- rect 320 220 110 20
- textalign ITEM_ALIGN_CENTER
- textalignx 0
- textaligny 0
- decoration
- forecolor .433 .703 .722 1
- visible 1
- // appearance_slot 2
- }
- }
- }
|