123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348 |
- //----------------------------------------------------------------------------------------------
- //
- // SABER STYLE MENU - called from in game - allows player to change saber fighting style
- //
- //----------------------------------------------------------------------------------------------
- {
- menuDef
- {
- name "saberstyleMenu"
- 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
- descX 320
- descY 426
- descScale 1
- descColor 1 .682 0 .8
- descAlignment ITEM_ALIGN_CENTER
- onOpen
- {
- uiScript "getsabercvars"
- uiScript "updatefightingstylechoices"
- setfocus new_fightingstyle_button
- uiScript "saber_hilt"
- uiScript "saber_color"
- }
-
- onESC
- {
- play "sound/interface/esc.wav"
- uiScript "updatesabercvars"
- }
- //----------------------------------------------------------------------------------------------
- // MENU BACKGROUND
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name background
- group none
- style WINDOW_STYLE_SHADER
- rect 0 0 640 480
- background "gfx/menus/sabermenu_back"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name styleboxleft
- group none
- style WINDOW_STYLE_SHADER
- rect 127 53 198 40
- background "gfx/menus/sabermenu_stylebox_left"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name styleboxright
- group none
- style WINDOW_STYLE_SHADER
- rect 325 53 198 40
- background "gfx/menus/sabermenu_stylebox_right"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name styleboxleft
- group none
- style WINDOW_STYLE_SHADER
- rect 127 118 198 40
- background "gfx/menus/sabermenu_stylebox_left"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name styleboxright
- group none
- style WINDOW_STYLE_SHADER
- rect 325 118 198 40
- background "gfx/menus/sabermenu_stylebox_right"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- //----------------------------------------------------------------------------------------------
- // SABER MENU specific stuff
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name title_glow
- group none
- style WINDOW_STYLE_SHADER
- rect 100 26 440 24
- background "gfx/menus/menu_blendbox"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
-
- // Screen title
- itemDef
- {
- name title
- group title
- style WINDOW_STYLE_EMPTY
- text @MENUS_CHOOSE_SABER_STYLE
- rect 100 30 440 16
- font 3
- textscale 0.8
- textalign ITEM_ALIGN_CENTER
- textalignx 225
- textaligny -1
- forecolor .549 .854 1 1
-
- visible 1
- decoration
- }
- //----------------------------------------------------------------------------------------------
- // SABER COMBAT STYLES
- //----------------------------------------------------------------------------------------------
- // Current fighting style
- itemDef
- {
- name fightingstylebutton1
- group none
- text @MENUS_CURRENT_STYLE
- descText @MENUS_ADDFIGHTINGSTYLE
- type ITEM_TYPE_MULTI
- style WINDOW_STYLE_EMPTY
- rect 140 60 0 0
- font 3
- textscale 1
- textalign ITEM_ALIGN_LEFT
- textstyle 1
- textalignx 0
- textaligny 0
- forecolor .549 .854 1 1
-
- cvar "ui_currentfightingstyle"
- cvarStrList
- {
- @MENUS_COMBATSTYLEFAST "0"
- @MENUS_COMBATSTYLEMEDIUM "1"
- @MENUS_COMBATSTYLEHEAVY "2"
- }
- visible 1
- }
-
- itemDef
- {
- name new_fightingstyle_button
- group none
- text @MENUS_NEW_STYLE
- descText @MENUS_ADDFIGHTINGSTYLE
- type ITEM_TYPE_MULTI
- style WINDOW_STYLE_EMPTY
- rect 140 125 380 24
- font 3
- textscale 1
- textalign ITEM_ALIGN_LEFT
- textstyle 1
- textalignx 0
- textaligny 0
- forecolor .615 .615 .956 1
-
- cvar "ui_newfightingstyle"
- cvarStrList
- {
- @MENUS_COMBATSTYLEFAST "0"
- @MENUS_COMBATSTYLEHEAVY "2"
- }
- visible 1
-
- mouseEnter
- {
- show button_glow
- setitemrect button_glow 180 124 380 26
- }
- mouseExit
- {
- hide button_glow
- }
- action
- {
- play "sound/interface/button1.wav"
- }
- }
- itemDef
- {
- name briefing_background
- group none
- style WINDOW_STYLE_FILLED
- rect 127 160 395 64
- backcolor 0 0 .35 .7
- forecolor 1 1 1 1
- border 1
- bordercolor 0 0 .8 1
- visible 1
- decoration
- }
-
- itemDef
- {
- name new_fightingstyle_desc
- group none
- type ITEM_TYPE_TEXTSCROLL
- text @SP_INGAME_FAST_STYLE
- style WINDOW_STYLE_EMPTY
- rect 130 162 392 60
- font 4
- textscale 1
- textalign ITEM_ALIGN_LEFT
- textstyle 1
- textalignx 0
- textaligny 0
- forecolor 1 1 1 1
- cvartest "ui_newfightingstyle"
- showcvar
- {
- "0"
- }
- lineHeight 14
- visible 1
- autowrapped
- }
- itemDef
- {
- name new_fightingstyle_desc
- group none
- type ITEM_TYPE_TEXTSCROLL
- text @SP_INGAME_STRONG_STYLE
- style WINDOW_STYLE_EMPTY
- rect 130 162 392 60
- font 4
- textscale 1
- textalign ITEM_ALIGN_LEFT
- textstyle 1
- textalignx 0
- textaligny 0
- forecolor 1 1 1 1
- cvartest "ui_newfightingstyle"
- showcvar
- {
- "2"
- }
- lineHeight 14
- visible 1
- autowrapped
- }
- //----------------------------------------------------------------------------------------------
- //SABER MODELS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name saber
- group models
- type ITEM_TYPE_MODEL
- rect 12 -110 615 615
- asset_model "models/weapons2/saber_reborn/saber_w.glm"
- isSaber 1
- model_angle 180
- model_rotation 20
- model_g2mins 0 0 0
- model_g2maxs 20 20 20
- model_fovx 75
- model_fovy 75
- visible 1
- decoration
- }
- //----------------------------------------------------------------------------------------------
- // CONTINUE BUTTON
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name continue
- group none
- text @MENUS_CONTINUE
- descText @MENUS_NEW_MISSION_DESC
- type ITEM_TYPE_BUTTON
- style WINDOW_STYLE_EMPTY
- rect 455 444 130 24
- font 3
- textscale 1
- textalignx 65
- textaligny -1
- textalign ITEM_ALIGN_CENTER
- textstyle 3
- forecolor 1 .682 0 1
- visible 1
- action
- {
- uiScript "updatesabercvars"
- uiScript "updatefightingstyle"
- close all
- setcvar tier_storyinfo "7"
- setcvar storyhead "protocol"
- open ingameGotoTier
- // HACK We're expecting to go to a mission screen from here
- playvoice "sound/chars/storyinfo/7.mp3"
- }
- mouseEnter
- {
- show button_glow
- setitemrect button_glow 455 444 130 24
- }
- mouseExit
- {
- hide button_glow
- }
- }
-
- itemDef
- {
- name button_glow
- group mods
- style WINDOW_STYLE_SHADER
- rect 455 444 130 24
- background "gfx/menus/menu_buttonback"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- }
- }
|