1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639 |
- //----------------------------------------------------------------------------------------------
- //
- // Weapon Select Menu
- //
- // The player is allowed to choose from a list of weapons. The weapons in the list are
- // based on the value in tier_storyinfo
- //
- // Weapon index values
- // SABER - 1
- // BLASTER PISTOL - 2
- // BLASTER - 3
- // DISRUPTOR - 4
- // BOWCASTER - 5
- // REPEATER - 6
- // DEMP - 7
- // FLECHETTE - 8
- // ROCKET LAUNCHER - 9
- // THERMAL DET. - 10
- // TRIP MINE - 11
- // DET PACK - 12
- // CONCUSSION - 13
- //
- // Ammo index values amounts to give
- // SABER - FORCE - 1 - 100
- // BLASTER PISTOL - BLASTER - 2 - 300
- // BLASTER - BLASTER - 2 - 300
- // DISRUPTOR - POWER CELL - 3 - 300
- // BOWCASTER - POWER CELL - 3 - 300
- // REPEATER - METAL BOLTS - 4 - 400
- // DEMP - POWER CELL - 3 - 300
- // FLECHETTE - METAL BOLTS - 4 - 400
- // ROCKET LAUNCHER - ROCKETS - 5 - 10
- // THERMAL DET. - THERMAL - 7 - 10
- // TRIP MINE - TRIP MINE - 8 - 5
- // DET. PACK - DETPACK - 9 - 5
- // CONCUSSION - METAL BOLTS - 4 - 400
- //
- //----------------------------------------------------------------------------------------------
- {
-
- menuDef
- {
- name "ingameWpnSelect"
- fullScreen 1
- rect 0 0 640 480
- visible 1
- focusColor 1 1 1 1
- descX 320
- descY 424
- descScale 1
- descColor 1 .682 0 .8
- descAlignment ITEM_ALIGN_CENTER
- fadeClamp 1.0 // sets the fadeup alpha
- fadeCycle 25 // how often fade happens in milliseconds
- fadeAmount 0.05 // amount to adjust alpha per cycle
- onOpen
- {
- uiScript "initweaponselect" // Perform screen init
- uiScript "clearweapons" // Get rid of any weapons
- uiScript "clearinventory" // Get rid of any inventory
- uiScript "giveweapon" "1" // Give saber
- uiScript "giveweapon" "2" // Give blaster
- uiScript "equipweapon" "1" // start with saber
- }
-
- onESC
- {
- play "sound/interface/menuroam.wav"
- }
- //----------------------------------------------------------------------------------------------
- // MENU BACKGROUND
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name background
- group none
- style WINDOW_STYLE_SHADER
- rect 0 0 640 480
- background "gfx/menus/weaponmenu_back"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- //----------------------------------------------------------------------------------------------
- // TEXT - Choose weapons/Weapons chosen.
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name choose_weapons_text
- type ITEM_TYPE_TEXT
- rect 0 15 640 18
- text @MENUS_CHOOSEWEAPONS
- font 2
- forecolor 1 1 1 1
- textscale .80
- textalign ITEM_ALIGN_CENTER
- textalignx 320
- visible 1
- decoration
- }
- itemDef
- {
- name weapons_chosen_text
- type ITEM_TYPE_TEXT
- rect 0 20 640 18
- text @MENUS_WEAPONSCHOSEN
- font 2
- forecolor .308 .980 .277 1
- textscale .80
- textalign ITEM_ALIGN_CENTER
- textalignx 320
- visible 0
- decoration
- }
- //----------------------------------------------------------------------------------------------
- // INSTRUCTIONS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name setup_background
- group inst_stuff
- style WINDOW_STYLE_FILLED
- rect 40 195 455 145
- backcolor 0 0 .35 .9
- forecolor 1 1 1 1
- border 1
- bordercolor 0 0 .8 1
- visible 0
- decoration
- }
-
- itemDef
- {
- name instruction_title
- group inst_stuff
- type ITEM_TYPE_TEXT
- rect 50 195 470 18
- text @MENUS_INSTRUCTIONS
- font 2
- forecolor .549 .854 1 1
- textscale .8
- textalign ITEM_ALIGN_CENTER
- textalignx 230
- visible 0
- decoration
- }
-
- itemDef
- {
- name instruction_text
- group inst_stuff
- type ITEM_TYPE_TEXTSCROLL
- rect 45 220 475 130
- text @MENUS_WEAPON_SELECTION_HELP
- font 4
- forecolor 1 1 1 1
- textscale 1.0
- textalign ITEM_ALIGN_LEFT
- visible 0
- decoration autowrapped
- textaligny 0
- lineHeight 13
- }
- itemDef
- {
- name inst_done_button
- group inst_stuff
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_BUTTON
- rect 495 255 130 64
- text @MENUS_DONE_CAPS
- descText @MENUS_HELP_DESC
- font 3
- textscale 1
- textaligny 0
- textalign ITEM_ALIGN_CENTER
- textstyle 1
- textalignx 65
- forecolor .79 .64 .22 1
- visible 0
- mouseEnter
- {
- show button_glow
- setitemrect button_glow 490 255 140 25
- }
- mouseExit
- {
- hide button_glow
- }
- action
- {
- play "sound/interface/button1.wav" ;
- hide button_glow
- hide inst_stuff
-
- show weapon_button
- }
- }
- itemDef
- {
- name button_glow
- group none
- style WINDOW_STYLE_SHADER
- rect 0 0 0 0
- background "gfx/menus/menu_buttonback"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- //----------------------------------------------------------------------------------------------
- // SABER BUTTONS AND BUTTON GRAPHICS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name saber_hex_background
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 28 40 88 120
- background "gfx/menus/hex_pattern_gray"
- forecolor 0 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name saber_icon
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 24 30 80 80
- background "gfx/hud/w_icon_lightsaber_na"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name saber_icon_lit
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 24 30 80 80
- background "gfx/hud/w_icon_lightsaber"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name saber_button
- group weapon_button
- type ITEM_TYPE_BUTTON
- rect 28 40 79 64
- forecolor 1 1 1 1
- visible 1
- mouseEnter
- {
- hide saber_icon
- show saber_icon_lit
- // Show big icon
- show weapon_icon
- setitembackground weapon_icon "gfx/hud/w_icon_lightsaber_na"
- // Show weapon description
- show weapon_desc
- setitemtext weapon_desc @SP_INGAME_SABER_DESC
- }
- mouseExit
- {
- show saber_icon
- hide saber_icon_lit
- }
- action
- {
- }
- }
-
- //----------------------------------------------------------------------------------------------
- // BLASTER PISTOL BUTTONS AND BUTTON GRAPHICS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name bpistol_hex_background
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 28 109 88 120
- background "gfx/menus/hex_pattern_gray"
- forecolor 0 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name bpistol_icon
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 24 96 80 80
- background "gfx/hud/w_icon_blaster_pistol_na"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name bpistol_icon_lit
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 24 96 80 80
- background "gfx/hud/w_icon_blaster_pistol"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name bpistol_button
- group weapon_button
- type ITEM_TYPE_BUTTON
- rect 28 109 79 64
- forecolor 1 1 1 1
- // desctext @MENU_CLICKDESCRIPTION
- visible 1
- mouseEnter
- {
- hide bpistol_icon
- show bpistol_icon_lit
- // Show big icon
- show weapon_icon
- setitembackground weapon_icon "gfx/hud/w_icon_blaster_pistol_na"
- // Show weapon description
- show weapon_desc
- setitemtext weapon_desc @SP_INGAME_NEW_BLASTER_PISTOL_DESC
- }
- mouseExit
- {
- show bpistol_icon
- hide bpistol_icon_lit
- }
- action
- {
- }
- }
- //----------------------------------------------------------------------------------------------
- // BLASTER RIFLE BUTTONS AND BUTTON GRAPHICS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name brifle_hex_background
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 136 40 88 120
- background "gfx/menus/hex_pattern_gray"
- forecolor 0 .5 0 1
- visible 1
- decoration
- }
- itemDef
- {
- name brifle_icon
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 134 31 80 80
- background "gfx/hud/w_icon_blaster_na"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name brifle_icon_lit
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 134 31 80 80
- background "gfx/hud/w_icon_blaster"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name brifle_button
- group weapon_button
- type ITEM_TYPE_BUTTON
- rect 137 40 79 64
- forecolor 1 1 1 1
- desctext @MENUS_CLICKSELECT
- visible 1
- mouseEnter
- {
- hide brifle_icon
- show brifle_icon_lit
- // Show big icon
- show weapon_icon
- setitembackground weapon_icon "gfx/hud/w_icon_blaster_na"
- // Show weapon description
- show weapon_desc
- setitemtext weapon_desc @SP_INGAME_BLASTER_RIFLE_DESC
- }
- mouseExit
- {
- show brifle_icon
- hide brifle_icon_lit
- }
- action
- { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic)
- uiScript "addweaponselection" "3" "2" "300" "brifle_icon" "brifle_icon_lit" "brifle_hex_background" "sound/weapons/blaster/select.wav"
- }
- }
- //----------------------------------------------------------------------------------------------
- // DISRUPTOR RIFLE BUTTONS AND BUTTON GRAPHICS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name disruptor_hex_background
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 136 109 88 120
- background "gfx/menus/hex_pattern_gray"
- forecolor 0 .5 0 1
- visible 1
- decoration
- }
- itemDef
- {
- name disruptor_icon
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 134 99 80 80
- background "gfx/hud/w_icon_disruptor_na"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name disruptor_icon_lit
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 134 99 80 80
- background "gfx/hud/w_icon_disruptor"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name disruptor_button
- group weapon_button
- type ITEM_TYPE_BUTTON
- rect 137 109 79 64
- forecolor 1 1 1 1
- desctext @MENUS_CLICKSELECT
- visible 1
- mouseEnter
- {
- hide disruptor_icon
- show disruptor_icon_lit
- // Show big icon
- show weapon_icon
- setitembackground weapon_icon "gfx/hud/w_icon_disruptor_na"
- // Show weapon description
- show weapon_desc
- setitemtext weapon_desc @SP_INGAME_DISRUPTOR_RIFLE_DESC
- }
- mouseExit
- {
- show disruptor_icon
- hide disruptor_icon_lit
- }
- action
- { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic)
- uiScript "addweaponselection" "4" "3" "300" "disruptor_icon" "disruptor_icon_lit" "disruptor_hex_background" "sound/weapons/disruptor/select.wav"
- }
- }
- //----------------------------------------------------------------------------------------------
- // BOWCASTER BUTTONS AND BUTTON GRAPHICS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name bowcaster_hex_background
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 222 40 88 120
- background "gfx/menus/hex_pattern_gray"
- forecolor 0 .5 0 1
- visible 1
- decoration
- }
- itemDef
- {
- name bowcaster_icon
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 222 31 80 80
- background "gfx/hud/w_icon_bowcaster_na"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name bowcaster_icon_lit
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 222 31 80 80
- background "gfx/hud/w_icon_bowcaster"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name bowcaster_button
- group weapon_button
- type ITEM_TYPE_BUTTON
- rect 224 40 79 64
- forecolor 1 1 1 1
- desctext @MENUS_CLICKSELECT
- visible 1
- mouseEnter
- {
- hide bowcaster_icon
- show bowcaster_icon_lit
- // Show big icon
- show weapon_icon
- setitembackground weapon_icon "gfx/hud/w_icon_bowcaster_na"
- // Show weapon description
- show weapon_desc
- setitemtext weapon_desc @SP_INGAME_BOWCASTER_DESC
- }
- mouseExit
- {
- show bowcaster_icon
- hide bowcaster_icon_lit
- }
- action
- { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic)
- uiScript "addweaponselection" "5" "3" "300" "bowcaster_icon" "bowcaster_icon_lit" "bowcaster_hex_background" "sound/weapons/bowcaster/select.wav"
- }
- }
- //----------------------------------------------------------------------------------------------
- // DEMP BUTTONS AND BUTTON GRAPHICS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name demp_hex_background
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 222 109 88 120
- background "gfx/menus/hex_pattern_gray"
- forecolor 0 .5 0 1
- visible 1
- decoration
- }
- itemDef
- {
- name demp_icon
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 222 99 80 80
- background "gfx/hud/w_icon_demp2_na"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name demp_icon_lit
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 222 99 80 80
- background "gfx/hud/w_icon_demp2"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name demp_button
- group weapon_button
- type ITEM_TYPE_BUTTON
- rect 225 109 79 64
- forecolor 1 1 1 1
- desctext @MENUS_CLICKSELECT
- visible 1
- mouseEnter
- {
- hide demp_icon
- show demp_icon_lit
- // Show big icon
- show weapon_icon
- setitembackground weapon_icon "gfx/hud/w_icon_demp2_na"
- // Show weapon description
- show weapon_desc
- setitemtext weapon_desc @SP_INGAME_DEMP2_DESC
- }
- mouseExit
- {
- show demp_icon
- hide demp_icon_lit
- }
- action
- { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic)
- uiScript "addweaponselection" "7" "3" "300" "demp_icon" "demp_icon_lit" "demp_hex_background" "sound/weapons/demp2/select.wav"
- }
- }
- //----------------------------------------------------------------------------------------------
- // REPEATER BUTTONS AND BUTTON GRAPHICS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name repeater_hex_background
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 311 40 88 120
- background "gfx/menus/hex_pattern_gray"
- forecolor 0 .5 0 1
- visible 1
- decoration
- cvartest "tier_storyinfo"
- showcvar
- {
- "7"; "8"; "9"; "10"; "11"; "12"; "13"; "14"; "15"; "16"; "17"; "18"; "19";
- }
- }
- itemDef
- {
- name repeater_icon
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 309 35 80 80
- background "gfx/hud/w_icon_repeater_na"
- forecolor 1 1 1 1
- visible 1
- decoration
- cvartest "tier_storyinfo"
- showcvar
- {
- "7"; "8"; "9"; "10"; "11"; "12"; "13"; "14"; "15"; "16"; "17"; "18"; "19";
- }
- }
- itemDef
- {
- name repeater_icon_lit
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 309 35 80 80
- background "gfx/hud/w_icon_repeater"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name repeater_button
- group weapon_button
- type ITEM_TYPE_BUTTON
- rect 312 40 79 64
- forecolor 1 1 1 1
- desctext @MENUS_CLICKSELECT
- visible 1
- cvartest "tier_storyinfo"
- showcvar
- {
- "7"; "8"; "9"; "10"; "11"; "12"; "13"; "14"; "15"; "16"; "17"; "18"; "19";
- }
- mouseEnter
- {
- hide repeater_icon
- show repeater_icon_lit
- // Show big icon
- show weapon_icon
- setitembackground weapon_icon "gfx/hud/w_icon_repeater_na"
- // Show weapon description
- show weapon_desc
- setitemtext weapon_desc @SP_INGAME_HEAVYREPEATER_DESC
- }
- mouseExit
- {
- show repeater_icon
- hide repeater_icon_lit
- }
- action
- { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic)
- uiScript "addweaponselection" "6" "4" "400" "repeater_icon" "repeater_icon_lit" "repeater_hex_background" "sound/weapons/repeater/select.wav"
- }
- }
- //----------------------------------------------------------------------------------------------
- // FLECHETTE BUTTONS AND BUTTON GRAPHICS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name flechette_hex_background
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 311 109 88 120
- background "gfx/menus/hex_pattern_gray"
- forecolor 0 .5 0 1
- visible 1
- decoration
- cvartest "tier_storyinfo"
- showcvar
- {
- "7"; "8"; "9"; "10"; "11"; "12"; "13"; "14"; "15"; "16"; "17"; "18"; "19";
- }
- }
- itemDef
- {
- name flechette_icon
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 309 100 80 80
- background "gfx/hud/w_icon_flechette_na"
- forecolor 1 1 1 1
- visible 1
- decoration
- cvartest "tier_storyinfo"
- showcvar
- {
- "7"; "8"; "9"; "10"; "11"; "12"; "13"; "14"; "15"; "16"; "17"; "18"; "19";
- }
- }
- itemDef
- {
- name flechette_icon_lit
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 309 100 80 80
- background "gfx/hud/w_icon_flechette"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name flechette_button
- group weapon_button
- type ITEM_TYPE_BUTTON
- rect 312 109 79 64
- forecolor 1 1 1 1
- desctext @MENUS_CLICKSELECT
- visible 1
- cvartest "tier_storyinfo"
- showcvar
- {
- "7"; "8"; "9"; "10"; "11"; "12"; "13"; "14"; "15"; "16"; "17"; "18"; "19";
- }
- mouseEnter
- {
- hide flechette_icon
- show flechette_icon_lit
- // Show big icon
- show weapon_icon
- setitembackground weapon_icon "gfx/hud/w_icon_flechette_na"
- // Show weapon description
- show weapon_desc
- setitemtext weapon_desc @SP_INGAME_FLECHETTE_DESC
- }
- mouseExit
- {
- show flechette_icon
- hide flechette_icon_lit
- }
- action
- { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic)
- uiScript "addweaponselection" "8" "4" "400" "flechette_icon" "flechette_icon_lit" "flechette_hex_background" "sound/weapons/flechette/select.wav"
- }
- }
- //----------------------------------------------------------------------------------------------
- // CONCUSSION BUTTONS AND BUTTON GRAPHICS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name concussion_hex_background
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 399 40 88 120
- background "gfx/menus/hex_pattern_gray"
- forecolor 0 .5 0 1
- visible 1
- decoration
- cvartest "tier_storyinfo"
- showcvar
- {
- "13"; "14"; "15"; "16"; "17"; "18"; "19"
- }
- }
- itemDef
- {
- name concussion_icon
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 395 30 80 80
- background "gfx/hud/w_icon_c_rifle_na"
- forecolor 1 1 1 1
- visible 1
- decoration
- cvartest "tier_storyinfo"
- showcvar
- {
- "13"; "14"; "15"; "16"; "17"; "18"; "19"
- }
- }
- itemDef
- {
- name concussion_icon_lit
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 395 30 80 80
- background "gfx/hud/w_icon_c_rifle"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name concussion_button
- group weapon_button
- type ITEM_TYPE_BUTTON
- rect 400 40 79 64
- forecolor 1 1 1 1
- desctext @MENUS_CLICKSELECT
- visible 1
- cvartest "tier_storyinfo"
- showcvar
- {
- "13"; "14"; "15"; "16"; "17"; "18"; "19"
- }
- mouseEnter
- {
- hide concussion_icon
- show concussion_icon_lit
- // Show big icon
- show weapon_icon
- setitembackground weapon_icon "gfx/hud/w_icon_c_rifle_na"
- // Show weapon description
- show weapon_desc
- setitemtext weapon_desc @SP_INGAME_CONCUSSION_DESC
- }
- mouseExit
- {
- show concussion_icon
- hide concussion_icon_lit
- }
- action
- { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic)
- uiScript "addweaponselection" "13" "4" "400" "concussion_icon" "concussion_icon_lit" "concussion_hex_background" "sound/weapons/concussion/select.wav"
- }
- }
- //----------------------------------------------------------------------------------------------
- // ROCKET BUTTONS AND BUTTON GRAPHICS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name rocket_hex_background
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 399 109 88 120
- background "gfx/menus/hex_pattern_gray"
- forecolor 0 .5 0 1
- visible 1
- decoration
- cvartest "tier_storyinfo"
- showcvar
- {
- "13"; "14"; "15"; "16"; "17"; "18"; "19"
- }
- }
- itemDef
- {
- name rocket_icon
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 395 99 80 80
- background "gfx/hud/w_icon_merrsonn_na"
- forecolor 1 1 1 1
- visible 1
- decoration
- cvartest "tier_storyinfo"
- showcvar
- {
- "13"; "14"; "15"; "16"; "17"; "18"; "19"
- }
- }
- itemDef
- {
- name rocket_icon_lit
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 395 99 80 80
- background "gfx/hud/w_icon_merrsonn"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name rocket_button
- group weapon_button
- type ITEM_TYPE_BUTTON
- rect 400 109 79 64
- forecolor 1 1 1 1
- desctext @MENUS_CLICKSELECT
- visible 1
- cvartest "tier_storyinfo"
- showcvar
- {
- "13"; "14"; "15"; "16"; "17"; "18"; "19"
- }
- mouseEnter
- {
- hide rocket_icon
- show rocket_icon_lit
- // Show big icon
- show weapon_icon
- setitembackground weapon_icon "gfx/hud/w_icon_merrsonn_na"
- // Show weapon description
- show weapon_desc
- setitemtext weapon_desc @SP_INGAME_MERR_SONN_DESC
- }
- mouseExit
- {
- show rocket_icon
- hide rocket_icon_lit
- }
- action
- { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic)
- uiScript "addweaponselection" "9" "5" "10" "rocket_icon" "rocket_icon_lit" "rocket_hex_background" "sound/weapons/rocket/select.wav"
- }
- }
- //----------------------------------------------------------------------------------------------
- // THERMAL DETONATOR BUTTONS AND BUTTON GRAPHICS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name thermal_hex_background
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 506 40 60 120
- background "gfx/menus/hex_pattern_gray"
- forecolor 0 0 .5 1
- visible 1
- decoration
- }
- itemDef
- {
- name thermal_icon
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 494 32 80 80
- background "gfx/hud/w_icon_thermal_na"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name thermal_icon_lit
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 494 32 80 80
- background "gfx/hud/w_icon_thermal"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name thermal_button
- group weapon_button
- type ITEM_TYPE_BUTTON
- rect 507 40 52 64
- forecolor 1 1 1 1
- desctext @MENUS_CLICKSELECT
- visible 1
- mouseEnter
- {
- hide thermal_icon
- show thermal_icon_lit
- // Show big icon
- show weapon_icon
- setitembackground weapon_icon "gfx/hud/w_icon_thermal_na"
- // Show weapon description
- show weapon_desc
- setitemtext weapon_desc @SP_INGAME_THERMAL_DETONATOR_DESC
- }
- mouseExit
- {
- show thermal_icon
- hide thermal_icon_lit
- }
- action
- { // Add/remove this weapon from player selection (weapon #, menu item with graphic)
- uiScript "addthrowweaponselection" "10" "7" "10" "thermal_icon" "thermal_icon_lit" "thermal_hex_background" "sound/weapons/thermal/select.wav"
- }
- }
- //----------------------------------------------------------------------------------------------
- // DETPACK BUTTONS AND BUTTON GRAPHICS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name detpack_hex_background
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 564 40 60 120
- background "gfx/menus/hex_pattern_gray"
- forecolor 0 0 .5 1
- visible 1
- decoration
- }
- itemDef
- {
- name detpack_icon
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 553 36 80 80
- background "gfx/hud/w_icon_detpack_na"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name detpack_icon_lit
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 553 36 80 80
- background "gfx/hud/w_icon_detpack"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name detpack_button
- group weapon_button
- type ITEM_TYPE_BUTTON
- rect 565 40 52 64
- forecolor 1 1 1 1
- desctext @MENUS_CLICKSELECT
- visible 1
- mouseEnter
- {
- hide detpack_icon
- show detpack_icon_lit
- // Show big icon
- show weapon_icon
- setitembackground weapon_icon "gfx/hud/w_icon_detpack_na"
- // Show weapon description
- show weapon_desc
- setitemtext weapon_desc @SP_INGAME_DET_PACK_DESC
- }
- mouseExit
- {
- show detpack_icon
- hide detpack_icon_lit
- }
- action
- { // Add/remove this weapon from player selection (weapon #, menu item with graphic)
- uiScript "addthrowweaponselection" "12" "9" "5" "detpack_icon" "detpack_icon_lit" "detpack_hex_background" "sound/weapons/detpack/select.wav"
- }
- }
- //----------------------------------------------------------------------------------------------
- // TRIP MINE BUTTONS AND BUTTON GRAPHICS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name tripmine_hex_background
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 538 109 60 120
- background "gfx/menus/hex_pattern_gray"
- forecolor 0 0 .5 1
- visible 1
- decoration
- }
- itemDef
- {
- name tripmine_icon
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 526 100 80 80
- background "gfx/hud/w_icon_tripmine_na"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name tripmine_icon_lit
- group normal_icon
- style WINDOW_STYLE_SHADER
- rect 526 100 80 80
- background "gfx/hud/w_icon_tripmine"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name tripmine_button
- group weapon_button
- type ITEM_TYPE_BUTTON
- rect 539 109 52 64
- forecolor 1 1 1 1
- desctext @MENUS_CLICKSELECT
- visible 1
- mouseEnter
- {
- hide tripmine_icon
- show tripmine_icon_lit
- // Show big icon
- show weapon_icon
- setitembackground weapon_icon "gfx/hud/w_icon_tripmine_na"
- // Show weapon description
- show weapon_desc
- setitemtext weapon_desc @SP_INGAME_TRIP_MINE_DESC
- }
- mouseExit
- {
- show tripmine_icon
- hide tripmine_icon_lit
- }
- action
- { // Add/remove this weapon from player selection (weapon #, menu item with graphic)
- uiScript "addthrowweaponselection" "11" "8" "5" "tripmine_icon" "tripmine_icon_lit" "tripmine_hex_background" "sound/weapons/detpack/select.wav"
- }
- }
- //----------------------------------------------------------------------------------------------
- // CHOSEN WEAPONS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name chosensaber_hex_background
- style WINDOW_STYLE_SHADER
- rect 65 358 70 107
- background "gfx/menus/hex_pattern_gray"
- forecolor 0 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name chosen_sabericon
- group chosenicons
- style WINDOW_STYLE_SHADER
- rect 67 358 60 60
- background "gfx/hud/w_icon_lightsaber_na"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name chosenblaster_hex_background
- style WINDOW_STYLE_SHADER
- rect 152 358 70 107
- background "gfx/menus/hex_pattern_gray"
- forecolor 0 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name chosen_blastericon
- group chosenicons
- style WINDOW_STYLE_SHADER
- rect 154 358 60 60
- background "gfx/hud/w_icon_blaster_pistol_na"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name chosenweapon1_hex_background
- style WINDOW_STYLE_SHADER
- rect 280 358 70 107
- background "gfx/menus/hex_pattern_gray"
- forecolor 0 1 0 1
- visible 1
- decoration
- }
- itemDef
- {
- name chosenweapon1_icon
- group chosenicons
- style WINDOW_STYLE_SHADER
- rect 282 358 60 60
- background "gfx/hud/w_icon_blaster_pistol_na"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name chosenweapon1_button
- type ITEM_TYPE_BUTTON
- rect 282 358 52 64
- forecolor 0 1 0 1
- visible 0
- desctext @MENUS_CLICKREMOVE
- mouseEnter
- {
- uiScript highlightweaponselection "1"
- }
- mouseExit
- {
- uiScript normalweaponselection "1"
- }
- action
- {
- uiScript "removeweaponselection" "1"
- }
- }
- itemDef
- {
- name chosenweapon2_hex_background
- style WINDOW_STYLE_SHADER
- rect 367 358 70 107
- background "gfx/menus/hex_pattern_gray"
- forecolor 0 1 0 1
- visible 1
- decoration
- }
- itemDef
- {
- name chosenweapon2_icon
- group chosenicons
- style WINDOW_STYLE_SHADER
- rect 369 358 60 60
- background "gfx/hud/w_icon_blaster_pistol_na"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name chosenweapon2_button
- type ITEM_TYPE_BUTTON
- rect 369 358 52 64
- forecolor 1 1 1 1
- visible 0
- desctext @MENUS_CLICKREMOVE
- mouseEnter
- {
- uiScript highlightweaponselection "2"
- }
- mouseExit
- {
- uiScript normalweaponselection "2"
- }
- action
- {
- uiScript "removeweaponselection" "2"
- }
- }
- itemDef
- {
- name chosenthrowweapon_hex_background
- style WINDOW_STYLE_SHADER
- rect 500 358 70 107
- background "gfx/menus/hex_pattern_gray"
- forecolor 0 0 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name chosenthrowweapon_icon
- group chosenicons
- style WINDOW_STYLE_SHADER
- rect 500 358 60 60
- background "gfx/hud/w_icon_blaster_pistol_na"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name chosenthrowweapon_button
- type ITEM_TYPE_BUTTON
- rect 500 358 52 64
- forecolor 1 1 1 1
- visible 0
- desctext @MENUS_CLICKREMOVE
- mouseEnter
- {
- uiScript highlightthrowselection
- }
- mouseExit
- {
- uiScript normalthrowselection
- }
- action
- {
- uiScript "removethrowweaponselection"
- }
- }
- //----------------------------------------------------------------------------------------------
- // BIG WEAPON ICON
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name weapon_icon
- group bigicons
- style WINDOW_STYLE_SHADER
- rect 20 200 128 128
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- //----------------------------------------------------------------------------------------------
- // WEAPON DESCRIPTION TEXT
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name weapon_desc
- group none
- type ITEM_TYPE_TEXTSCROLL
- rect 130 187 490 175
- font 4
- forecolor 1 1 1 1
- textscale 1
- textalign ITEM_ALIGN_LEFT
- textalignx 8
- textaligny -1
- lineHeight 16
- visible 0
- autowrapped
- decoration
- }
- //----------------------------------------------------------------------------------------------
- // BOTTOM ROW OF BUTTONS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name backbut
- type ITEM_TYPE_BUTTON
- rect 30 447 140 24
- text @MENUS_HELP
- font 2
- forecolor 1 .682 0 1
- textscale 1
- textalign ITEM_ALIGN_LEFT
- textalignx 0
- textaligny -1
- desctext @MENUS_HELP_DESC1
- visible 1
- mouseEnter
- {
- }
- mouseExit
- {
- }
- // If we're backing up then we have to reset levels to what they were
- action
- {
- play "sound/interface/menuroam.wav"
-
- open ingameWpnSelectHelp
- }
- }
-
- // Don't change the name of this, code looks for this name to turn it on and off
- itemDef
- {
- name beginmission
- type ITEM_TYPE_BUTTON
- rect 400 447 220 24
- text @MENUS_BEGIN_MISSION
- font 2
- forecolor 1 .682 0 1
- textscale 1
- textalign ITEM_ALIGN_LEFT
- textalignx 0
- textaligny -1
- desctext @MENUS_BEGIN_MISSION_DESC
- visible 1
- cvartest "weapon_menu"
- hidecvar
- {
- "1" ; "2" ; "3"
- }
- mouseEnter
- {
- }
- mouseExit
- {
- }
- action
- {
- play "sound/interface/menuroam.wav"
- exec "vstr tier_mapname"
- }
- }
- // Don't change the name of this, code looks for this name to turn it on and off
- // This is a big hack so that from Academy2 it will only bring up the weapon select menu
- // and then go right to HOTH2.
- itemDef
- {
- name beginmission
- type ITEM_TYPE_BUTTON
- rect 400 447 220 24
- text @MENUS_BEGIN_MISSION
- font 2
- forecolor 1 .682 0 1
- textscale 1
- textalign ITEM_ALIGN_LEFT
- textalignx 0
- textaligny -1
- desctext @MENUS_BEGIN_MISSION_DESC
- visible 1
- cvartest "weapon_menu"
- showcvar
- {
- "1"
- }
- mouseEnter
- {
- }
- mouseExit
- {
- }
- action
- {
- play "sound/interface/menuroam.wav"
- exec "maptransition hoth2"
- }
- }
- // Don't change the name of this, code looks for this name to turn it on and off
- // This is a big hack so that from Academy4 it will only bring up the weapon select menu
- // and then go right to VJUN1.
- itemDef
- {
- name beginmission
- type ITEM_TYPE_BUTTON
- rect 400 447 220 24
- text @MENUS_BEGIN_MISSION
- font 2
- forecolor 1 .682 0 1
- textscale 1
- textalign ITEM_ALIGN_LEFT
- textalignx 0
- textaligny -1
- desctext @MENUS_BEGIN_MISSION_DESC
- visible 1
- cvartest "weapon_menu"
- showcvar
- {
- "2"
- }
- mouseEnter
- {
- }
- mouseExit
- {
- }
- action
- {
- play "sound/interface/menuroam.wav"
- exec "maptransition vjun1"
- }
- }
- // Don't change the name of this, code looks for this name to turn it on and off
- // This is a big hack so that from Academy6 it will only bring up the weapon select menu
- // and then go right to TASPIN1.
- itemDef
- {
- name beginmission
- type ITEM_TYPE_BUTTON
- rect 400 447 220 24
- text @MENUS_BEGIN_MISSION
- font 2
- forecolor 1 .682 0 1
- textscale 1
- textalign ITEM_ALIGN_LEFT
- textalignx 0
- textaligny -1
- desctext @MENUS_BEGIN_MISSION_DESC
- visible 1
- cvartest "weapon_menu"
- showcvar
- {
- "3"
- }
- mouseEnter
- {
- }
- mouseExit
- {
- }
- action
- {
- play "sound/interface/menuroam.wav"
- exec "maptransition taspir1"
- }
- }
- //----------------------------------------------------------------------------------------------
- //
- // SCANLINES
- //
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name scan
- group none
- style WINDOW_STYLE_SHADER
- rect 0 0 640 640
- background "gfx/menus/scanlines"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- }
- }
|