123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550 |
- //----------------------------------------------------------------------------------------------
- //
- // MAIN MENU - called when game is first started
- //
- //----------------------------------------------------------------------------------------------
- {
- assetGlobalDef
- {
- smallFont "aurabesh" 18
- mediumFont "ergoec" 18
- bigFont "anewhope" 20
- smallFont "arialnb" 14
- cursor "cursor"
- itemFocusSound "sound/interface/menuroam.wav"
- itemFocusForce "fffx/interface/menuroam"
- fadeClamp 1.0 // sets the fadeup alpha
- fadeCycle 1 // how often fade happens in milliseconds
- fadeAmount 0.1 // amount to adjust alpha per cycle
- precacheSound
- {
- "sound/interface/choose_color.wav"
- "sound/interface/choose_head.wav"
- "sound/interface/choose_torso.wav"
- "sound/interface/choose_saber.wav"
- "sound/interface/choose_hilt.wav"
- "sound/interface/choose_blade.wav"
- "sound/interface/transition.wav"
- "sound/interface/esc.wav"
- "sound/interface/sub_select.wav"
- }
- focuscolor 0 0 1 1
- shadowColor 0.1 0.1 0.1 0.0 // shadow color
- }
-
- menuDef
- {
- name "mainMenu"
- fullScreen 1
- rect 0 0 640 480
- visible 1
- focusColor 1 1 1 1
- descX 320
- descY 426
- descScale 1
- descColor 1 .682 0 .8
- descAlignment ITEM_ALIGN_CENTER
- onOpen
- {
- setfocus newgamebutton
- }
- onESC
- {
- play "sound/interface/menuroam.wav" ;
- close mainMenu ;
- open quitMenu ;
- }
- //----------------------------------------------------------------------------------------------
- //
- // MENU BACKGROUND
- //
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name background_video
- group none
- style WINDOW_STYLE_SHADER
- rect 200 144 256 256
- background "gfx/menus/videologo"
- 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 ring
- group none
- style WINDOW_STYLE_SHADER
- rect 193 145 256 256
- background "gfx/menus/main_ring"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name centerwindow
- group none
- style WINDOW_STYLE_SHADER
- rect 156 154 320 240
- background "gfx/menus/main_centerwindow"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name leftwindow
- group none
- style WINDOW_STYLE_SHADER
- rect 0 150 320 240
- background "gfx/menus/main_leftwindow"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name rightwindow
- group none
- style WINDOW_STYLE_SHADER
- rect 320 150 320 240
- background "gfx/menus/main_rightwindow"
- 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
- }
- //----------------------------------------------------------------------------------------------
- // TOP MAIN MENU BUTTONS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name button_glow
- group mods
- style WINDOW_STYLE_SHADER
- rect 0 0 0 0
- background "gfx/menus/menu_buttonback"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- // Big button "NEW"
- itemDef
- {
- name newgamebutton_undertext
- group toprow
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_BUTTON
- rect 36 194 130 24
- text @MENUS_NEW
- font 1
- textscale .7
- textaligny 0
- textalign ITEM_ALIGN_CENTER
- textstyle 1
- textalignx 65
- forecolor .02 0 .33 1
- visible 0
- decoration
- }
- itemDef
- {
- name newgamebutton
- group toprow
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_BUTTON
- rect 36 212 130 24
- text @MENUS_NEW
- descText @MENUS_START_A_NEW_GAME
- font 3
- textscale 1.1
- textaligny 0
- textalign ITEM_ALIGN_CENTER
- textstyle 1
- textalignx 65
- forecolor 1 .682 0 1
- visible 1
- mouseEnter
- {
- show button_glow
- setitemrect button_glow 16 210 210 32
- show newgamebutton_undertext
- }
- mouseExit
- {
- hide button_glow
- hide newgamebutton_undertext
- }
- action
- {
- play "sound/interface/button1.wav" ;
- close all ;
- open newgamefirstMenu
- }
- }
- // Big button "LOAD"
- itemDef
- {
- name loadgamebutton_undertext
- group toprow
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_BUTTON
- rect 36 293 130 24
- text @MENUS_LOAD
- font 1
- textscale .7
- textaligny 0
- textalign ITEM_ALIGN_CENTER
- textstyle 1
- textalignx 65
- forecolor .02 0 .33 1
- visible 0
- decoration
- }
- itemDef
- {
- name loadgamebutton
- group toprow
- text @MENUS_LOAD
- descText @MENUS_LOAD_A_SAVED_GAME
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_BUTTON
- rect 36 310 130 24
- textaligny 0
- font 3
- textscale 1.1
- textalign ITEM_ALIGN_CENTER
- textstyle 1
- textalignx 65
- forecolor 1 .682 0 1
- visible 1
- mouseEnter
- {
- show button_glow
- setitemrect button_glow 16 308 210 32
- show loadgamebutton_undertext
- }
- mouseExit
- {
- hide button_glow
- hide loadgamebutton_undertext
- }
- action
- {
- play "sound/interface/button1.wav" ;
- close all ;
- open loadgameMenu
- }
- }
- // Big button "CONTROLS"
- itemDef
- {
- name controlsbutton_undertext
- group toprow
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_BUTTON
- rect 448 194 146 24
- text @MENUS_CONTROLS2
- font 1
- textscale .7
- textaligny 0
- textalign ITEM_ALIGN_CENTER
- textstyle 1
- textalignx 65
- forecolor .02 0 .33 1
- visible 0
- decoration
- }
- itemDef {
- name controlsbutton
- group toprow
- text @MENUS_CONTROLS
- descText @MENUS_CONFIGURE_GAME_CONTROLS
- type ITEM_TYPE_BUTTON
- style WINDOW_STYLE_EMPTY
- rect 456 212 130 24
- font 3
- textscale 1.1
- textaligny 0
- textalign ITEM_ALIGN_CENTER
- textstyle 1
- textalignx 65
- backcolor 0 0 0 0
- forecolor 1 .682 0 1
- visible 1
-
- mouseEnter
- {
- show button_glow
- setitemrect button_glow 416 210 210 32
- show controlsbutton_undertext
- }
- mouseExit
- {
- hide button_glow
- hide controlsbutton_undertext
- }
- action
- {
- play "sound/interface/button1.wav" ;
- close all ;
- open controlsMenu ;
- }
- }
- // Big button "SETUP"
- itemDef
- {
- name setupbutton_undertext
- group toprow
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_BUTTON
- rect 456 292 130 24
- text @MENUS_SETUP
- font 1
- textscale .7
- textaligny 0
- textalign ITEM_ALIGN_CENTER
- textstyle 1
- textalignx 65
- forecolor .02 0 .33 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 456 310 130 24
- font 3
- textscale 1.1
- textaligny 0
- textalign ITEM_ALIGN_CENTER
- textstyle 1
- textalignx 65
- backcolor 0 0 0 0
- forecolor 1 .682 0 1
- visible 1
-
- mouseEnter
- {
- show button_glow
- setitemrect button_glow 416 308 210 32
- show setupbutton_undertext
- }
- mouseExit
- {
- hide button_glow
- hide setupbutton_undertext
- }
- action
- {
- play "sound/interface/button1.wav" ;
- close all ;
- open setupMenu ;
- }
- }
- //----------------------------------------------------------------------------------------------
- // OTHER MAIN MENU BUTTONS
- //----------------------------------------------------------------------------------------------
- // EXIT button in lower left corner
- itemDef
- {
- name exitgamebutton
- group othermain
- text @MENUS_EXIT
- descText @MENUS_JEDI_KNIGHT_II
- type ITEM_TYPE_BUTTON
- style WINDOW_STYLE_EMPTY
- rect 255 444 130 24
- font 3
- textscale 1.1
- textalign ITEM_ALIGN_CENTER
- textstyle 3
- textalignx 65
- textaligny -1
- forecolor 1 .682 0 1
- visible 1
- mouseEnter
- {
- show button_glow
- setitemrect button_glow 215 440 210 32
- }
- mouseExit
- {
- hide button_glow
- }
- action
- {
- play "sound/weapons/saber/saberoff.mp3";
- close all ;
- open quitMenu
- }
- }
- /*itemDef
- {
- name temp_mission_glow
- group mods
- style WINDOW_STYLE_SHADER
- rect 65 414 130 24
- background "gfx/menus/menu_buttonback" // Frame around button
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name temp_mission
- group mission
- text "TEMP MISSION SELECT"
- type ITEM_TYPE_BUTTON
- style WINDOW_STYLE_EMPTY
- rect 65 414 130 24
- font 2
- textscale .7
- textalign ITEM_ALIGN_CENTER
- textstyle 1
- textalignx 65
- textaligny -1
- forecolor .79 .64 .22 1
- visible 1
- mouseEnter
- {
- show temp_mission_glow
- }
- mouseExit
- {
- hide temp_mission_glow
- }
- action
- {
- play "sound/weapons/saber/saberoff.mp3";
- close all ;
- open ingameMissionSelect2
- }
- }
- itemDef
- {
- name temp_story
- group mission
- text "AbCdEfGhIjKlMnOpQrStUvWxYz1234567890"
- desctext "Start this map and walk forward."
- type ITEM_TYPE_BUTTON
- style WINDOW_STYLE_EMPTY
- rect 65 444 130 24
- font 4
- textscale 1
- textalign ITEM_ALIGN_CENTER
- textstyle 1
- textalignx 65
- textaligny -1
- forecolor .79 .64 .22 1
- visible 1
- mouseEnter
- {
- }
- mouseExit
- {
- }
- action
- {
- play "sound/weapons/saber/saberoff.mp3";
- close all ;
- exec "map mission"
- }
- }*/
- }
- }
|