home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hráč 2004 August
/
Hrac_72_2004-08_dvd.iso
/
dema
/
Kreed
/
ui
/
options_audio.form
< prev
next >
Wrap
Text File
|
2003-09-27
|
32KB
|
1,642 lines
//////////////////////////////////////////////////////////////////////////////////
form
{
// OPTIONS
// properties
pointer "textures/ui/mainmenu_pointer"
pointer_w 15
pointer_h 15
pointer_hotspot_x 2
pointer_hotspot_y 2
// fonts
font default
{
file "font/main"
scale 0.4
}
font mmenus
{
file "font/maina"
scale 0.7
}
font secmen
{
file "font/maina"
scale 0.5
}
font bkg
{
file "font/maina"
scale 1.2
}
font small
{
file "font/maina"
scale 0.3
}
font lont
{
file "font/maina"
scale 0.5
}
// elements
sprite background
{
x 0
y 0
width 640
height 480
// image "textures/ui/mgsc"
image "textures/ui/bkg1"
}
box allselframe
{
x 5
y 5
x2 635
y2 475
image "textures/ui/whitebox"
color_image 14008AFF
}
sprite line_upl
{
x 50
y 67
width 300
height 2
image "textures/ui/bl"
color_image F0008AFF
visible 1
}
sprite line_upr
{
x 320
y 67
width 300
height 2
image "textures/ui/bl"
color_image FF008AFF
visible 1
}
sprite line_dol
{
x 20
y 449
width 400
height 2
image "textures/ui/bl"
color_image FF008AFF
visible 1
}
sprite line_dsl
{
x 339
y 424
width 140
height 3
image "textures/ui/bl"
color_image FF008AFF
visible 1
}
sprite line_dsr
{
x 470
y 424
width 140
height 3
image "textures/ui/bl"
color_image F0008AFF
visible 1
}
sprite line_vl
{
x 57
y 20
width 2
height 440
image "textures/ui/blv"
color_image F0008AFF
visible 1
}
sprite line_vm
{
x 65
y 100
width 540
height 280
image "textures/ui/blv"
color_image 00008AFF
visible 1
}
sprite line_vr
{
x 609
y 20
width 2
height 440
image "textures/ui/blv"
color_image F0008AFF
visible 1
}
text options
{
x 140
y 55
width 1
height 1
font "mmenus"
default_on_mouseover "def_opt_mover"
default_on_mouseout "def_opt_mout"
text "OPTIONS"
color_text 32006FD6
sound_enable 1
}
text player
{
x 67
y 70
width 60
height 20
font "secmen"
default_on_mouseover "def_opt_mover"
default_on_mouseout "def_opt_mout"
text "PLAYER"
color_text 32536685
sound_enable 1
}
text controls
{
x 150
y 70
width 70
height 20
font "secmen"
default_on_mouseover "def_opt_mover"
default_on_mouseout "def_opt_mout"
text "CONTROLS"
color_text 32536685
sound_enable 1
}
text video
{
x 257
y 70
width 60
height 20
font "secmen"
default_on_mouseover "def_opt_mover"
default_on_mouseout "def_opt_mout"
text "VIDEO"
color_text 32536685
sound_enable 1
}
text audio
{
x 332
y 70
width 60
height 20
font "secmen"
default_on_mouseover "def_opt_mover"
default_on_mouseout "def_opt_mout"
text "AUDIO"
color_text 99536685
sound_enable 1
hotkey "a"
}
text gameplay
{
x 400
y 70
width 60
height 20
font "secmen"
default_on_mouseover "def_opt_mover"
default_on_mouseout "def_opt_mout"
text "GAMEPLAY"
color_text 32536685
sound_enable 1
hotkey "g"
}
text resetto
{
x 220
y 417
width 80
height 20
font "mmenus"
default_on_mouseover "def_ui_mover"
default_on_mouseout "def_ui_mout"
text "DEFAULTS"
color_text c8006FD6
sound_enable 1
hotkey "r"
}
sprite line_dsll
{
x 120
y 424
width 260
height 3
image "textures/ui/bl"
color_image FF008AFF
visible 1
}
text back
{
x 370
y 417
width 80
height 20
font "mmenus"
default_on_mouseover "def_ui_mover"
default_on_mouseout "def_ui_mout"
text "BACK"
color_text c8006FD6
sound_enable 1
hotkey "k"
}
text done
{
x 470
y 417
width 80
height 20
font "mmenus"
default_on_mouseover "def_ui_mover"
default_on_mouseout "def_ui_mout"
text "APPLY"
color_text c8006FD6
sound_enable 1
hotkey "d"
}
sprite alldikbox
{
x 180
y 98
width 275
height 310
image "textures/ui/whitebox"
color_image 00008AFF
}
box allmidframe
{
x 317
y 108
x2 322
y2 398
image "textures/ui/whitebox"
color_image 00008AFF
}
box alldikframel
{
x 110
y 108
x2 315
y2 398
image "textures/ui/whitebox"
color_image 00008AFF
}
box alldikframer
{
x 325
y 108
x2 550
y2 398
image "textures/ui/whitebox"
color_image 00008AFF
}
box b1
{
x 115
y 115
x2 545
y2 130
image "textures/ui/whitebox"
color_image 00006FD6
sound_enable 1
}
box b2
{
x 115
y 135
x2 545
y2 150
image "textures/ui/whitebox"
color_image 00006FD6
sound_enable 1
}
box b3
{
x 115
y 155
x2 545
y2 170
image "textures/ui/whitebox"
color_image 00006FD6
sound_enable 1
}
box b4
{
x 115
y 175
x2 545
y2 190
image "textures/ui/whitebox"
color_image 00006FD6
sound_enable 1
}
box b5
{
x 115
y 195
x2 545
y2 210
image "textures/ui/whitebox"
color_image 00006FD6
sound_enable 1
}
box b6
{
x 115
y 215
x2 545
y2 230
image "textures/ui/whitebox"
color_image 00006FD6
sound_enable 1
}
box b7
{
x 115
y 235
x2 545
y2 250
image "textures/ui/whitebox"
color_image 00006FD6
sound_enable 1
}
box b8
{
x 115
y 255
x2 545
y2 270
image "textures/ui/whitebox"
color_image 00006FD6
sound_enable 1
}
box b9
{
x 115
y 275
x2 545
y2 290
image "textures/ui/whitebox"
color_image 00006FD6
sound_enable 1
}
box b10
{
x 115
y 295
x2 545
y2 310
image "textures/ui/whitebox"
color_image 00006FD6
sound_enable 1
}
box b11
{
x 115
y 315
x2 545
y2 330
image "textures/ui/whitebox"
color_image 00006FD6
sound_enable 1
}
box b12
{
x 115
y 335
x2 545
y2 350
image "textures/ui/whitebox"
color_image 00006FD6
sound_enable 1
}
box b13
{
x 115
y 355
x2 545
y2 370
image "textures/ui/whitebox"
color_image 00006FD6
sound_enable 1
}
box b14
{
x 115
y 375
x2 545
y2 390
image "textures/ui/whitebox"
color_image 00006FD6
sound_enable 1
}
setting soundonoff
{
x 330
y 110
width 100
height 25
font "secmen"
focusable 0
centered 1
cvar "cl_vol_stream"
enumeration 0
max_val 1
min_val 0
step 0.01
format "%0.2f"
color_text 0000F6DE
default_on_mouseover "keys_over"
default_on_mouseout "keys_out"
associated_slider "soundv_slider"
}
slider soundv_slider
{
x 457
y 112
width 86
height 20
width_ticks 86
height_ticks 11
width_slider 10
height_slider 11
horizontal 1
image_slider "textures/ui/whitebox"
image "textures/ui/whitebox"
color_image 00536685
color_slider 00FFFFFF
}
text soundonoffd
{
x 190
y 116
width 1
height 1
font "secmen"
focusable 0
centered 0
text "music volume"
color_text 00006FD6
}
setting sndfreq
{
x 330
y 130
width 100
height 25
font "secmen"
focusable 0
centered 1
color_text 0000F6DE
cvar "snd_bufferlength"
enumeration 0
max_val 4
min_val 1
step 0.1
format "%0.1f sec"
requires_restart 1
default_on_mouseover "keys_over"
default_on_mouseout "keys_out"
associated_slider "soundf_slider"
}
slider soundf_slider
{
x 457
y 132
width 86
height 20
width_ticks 86
height_ticks 11
width_slider 10
height_slider 11
horizontal 1
image_slider "textures/ui/whitebox"
image "textures/ui/whitebox"
color_image 00536685
color_slider 00FFFFFF
}
text soundfreqd
{
x 190
y 136
width 1
height 1
font "secmen"
focusable 0
centered 0
text "buffer size"
color_text 00006FD6
}
setting eax
{
x 330
y 150
width 100
height 25
font "secmen"
focusable 0
centered 1
color_text 0000F6DE
cvar "snd_eax"
num_options 2
cur_option 0
value0 "1"
text0 "on"
value1 "0"
text1 "off"
requires_restart 1
default_on_mouseover "keys_over"
default_on_mouseout "keys_out"
}
text eaxd
{
x 190
y 156
width 1
height 1
font "secmen"
focusable 0
centered 0
text "EAX"
color_text 00006FD6
}
setting sndsfx
{
x 330
y 170
width 100
height 25
font "secmen"
focusable 0
centered 1
color_text 0000F6DE
cvar "cl_vol_snd"
enumeration 0
max_val 1
min_val 0
step 0.01
format "%0.2f"
default_on_mouseover "keys_over"
default_on_mouseout "keys_out"
associated_slider "soundfx_slider"
}
slider soundfx_slider
{
x 457
y 172
width 86
height 20
width_ticks 86
height_ticks 11
width_slider 10
height_slider 11
horizontal 1
image_slider "textures/ui/whitebox"
image "textures/ui/whitebox"
color_image 00536685
color_slider 00FFFFFF
}
text sndsfxd
{
x 190
y 176
width 1
height 1
font "secmen"
focusable 0
centered 0
text "sound volume"
color_text 00006FD6
}
setting software
{
x 330
y 190
width 100
height 25
font "secmen"
focusable 0
centered 1
color_text 0000F6DE
cvar "snd_software"
num_options 2
cur_option 0
value0 "1"
text0 "yes"
value1 "0"
text1 "no"
requires_restart 1
default_on_mouseover "keys_over"
default_on_mouseout "keys_out"
}
text softwared
{
x 190
y 196
width 1
height 1
font "secmen"
focusable 0
centered 0
text "software mixing"
color_text 00006FD6
}
// TRANSITIONS
transition tr1
{
duration 0.1
action allmidframe
{
y2 108 398
color_image 00008AFF 32008AFF
}
}
transition tr2
{
duration 0.10
action alldikframel
{
x 315 110
color_image 00008AFF 32008AFF
}
action alldikframer
{
x2 325 550
color_image 00008AFF 32008AFF
}
}
transition tr3
{
duration 0.1
action alldikbox
{
color_image 00008AFF 10008AFF
}
}
transition tr1r
{
duration 0.1
action allmidframe
{
y2 398 108
color_image 32008AFF 00008AFF
}
}
transition tr2r
{
duration 0.10
action alldikframel
{
x 110 315
color_image 32008AFF 00008AFF
}
action alldikframer
{
x2 550 325
color_image 32008AFF 00008AFF
}
}
transition tr3r
{
duration 0.1
action alldikbox
{
color_image 10008AFF 00008AFF
}
}
transition tr0
{
duration 0.01
element $1
{
int x 330 115
int x2 330 545
color color_image 00006FD6 24006FD6
}
}
transition tr0r
{
duration 0.01
element $1
{
int x 115 330
int x2 545 330
color color_image 24006FD6 00006FD6
}
}
transition ui_fade_in
{
duration 0.20
element $1
{
color color_text c8006FD6 F50084FF
}
}
transition ui_fade_out
{
duration 0.20
element $1
{
color color_text F50084FF c8006FD6
}
}
transition controls_on
{
duration 0.20
action controls
{
color_text 32536685 F50084FF
}
}
transition controls_off
{
duration 0.20
action controls
{
color_text F50084FF 32536685
}
}
transition player_on
{
duration 0.20
action player
{
color_text 32536685 F50084FF
}
}
transition player_off
{
duration 0.20
action player
{
color_text F50084FF 32536685
}
}
transition audio_on
{
duration 0.20
action audio
{
color_text 99536685 F50084FF
}
}
transition audio_off
{
duration 0.20
action audio
{
color_text F50084FF 99536685
}
}
transition video_on
{
duration 0.20
action video
{
color_text 32536685 F50084FF
}
}
transition video_off
{
duration 0.20
action video
{
color_text F50084FF 32536685
}
}
transition gameplay_on
{
duration 0.20
action gameplay
{
color_text 32536685 F50084FF
}
}
transition gameplay_off
{
duration 0.20
action gameplay
{
color_text F50084FF 32536685
}
}
transition cwars_on
{
duration 0.1
action soundonoff
{
color_text 0000F6DE 3200F6DE
}
action soundonoffd
{
color_text 00006FD6 64006FD6
}
action sndfreq
{
color_text 0000F6DE 3200F6DE
}
action soundfreqd
{
color_text 00006FD6 64006FD6
}
action eax
{
color_text 0000F6DE 3200F6DE
}
action eaxd
{
color_text 00006FD6 64006FD6
}
action sndsfx
{
color_text 0000F6DE 3200F6DE
}
action sndsfxd
{
color_text 00006FD6 64006FD6
}
action soundv_slider
{
color_image 00536685 32536685
color_slider 00FFFFFF 32FFFFFF
}
action soundf_slider
{
color_image 00536685 32536685
color_slider 00FFFFFF 32FFFFFF
}
action soundfx_slider
{
color_image 00536685 32536685
color_slider 00FFFFFF 32FFFFFF
}
action software
{
color_text 0000F6DE 3200F6DE
}
action softwared
{
color_text 00006FD6 64006FD6
}
}
transition cwars_off
{
duration 0.1
action soundonoff
{
color_text 3200F6DE 0000F6DE
}
action soundonoffd
{
color_text 64006FD6 00006FD6
}
action sndfreq
{
color_text 3200F6DE 0000F6DE
}
action soundfreqd
{
color_text 64006FD6 00006FD6
}
action eax
{
color_text 3200F6DE 0000F6DE
}
action eaxd
{
color_text 64006FD6 00006FD6
}
action sndsfx
{
color_text 3200F6DE 0000F6DE
}
action sndsfxd
{
color_text 64006FD6 00006FD6
}
action soundv_slider
{
color_image 32536685 00536685
color_slider 32FFFFFF 00FFFFFF
}
action soundf_slider
{
color_image 32536685 00536685
color_slider 32FFFFFF 00FFFFFF
}
action soundfx_slider
{
color_image 32536685 00536685
color_slider 32FFFFFF 00FFFFFF
}
action software
{
color_text 3200F6DE 0000F6DE
}
action softwared
{
color_text 64006FD6 00006FD6
}
}
transition keys_on
{
duration 0.10
element $1
{
color color_text 3200F6DE 9900F6DE
}
}
transition keys_off
{
duration 0.10
element $1
{
color color_text 9900F6DE 3200F6DE
}
}
transition svslider_on
{
duration 0.10
action soundv_slider
{
color_slider 3200F6DE 9900F6DE
}
}
transition svslider_off
{
duration 0.10
action soundv_slider
{
color_slider 9900F6DE 32FFFFFF
}
}
transition sfslider_on
{
duration 0.10
action soundf_slider
{
color_slider 3200F6DE 9900F6DE
}
}
transition sfslider_off
{
duration 0.10
action soundf_slider
{
color_slider 9900F6DE 32FFFFFF
}
}
transition sfxslider_on
{
duration 0.10
action soundfx_slider
{
color_slider 3200F6DE 9900F6DE
}
}
transition sfxslider_off
{
duration 0.10
action soundfx_slider
{
color_slider 9900F6DE 32FFFFFF
}
}
// BLOCKS
block on_mouseover soundv_slider
{
runwait_trans svslider_on
}
block on_mouseover soundf_slider
{
runwait_trans sfslider_on
}
block on_mouseover soundfx_slider
{
runwait_trans sfxslider_on
}
block on_mouseout soundv_slider
{
runwait_trans svslider_off
}
block on_mouseout soundf_slider
{
runwait_trans sfslider_off
}
block on_mouseout soundfx_slider
{
runwait_trans sfxslider_off
}
block on_leftclick done
{
execute apply_volume
commit
close_form
activate_form mainmenu
}
block on_activate form
{
run_block method3
}
block direct_exec rw
{
run_transition $1
wait_transition $1
}
block direct_exec method3
{
runwait_trans tr1
runwait_trans tr2
runwait_trans tr3
runwait_trans tr0 b1
runwait_trans tr0 b2
runwait_trans tr0 b3
runwait_trans tr0 b4
runwait_trans tr0 b5
runwait_trans tr0 b6
runwait_trans tr0 b7
runwait_trans tr0 b8
runwait_trans tr0 b9
runwait_trans tr0 b10
runwait_trans tr0 b11
runwait_trans tr0 b12
runwait_trans tr0 b13
runwait_trans tr0 b14
run_transition cwars_on
}
block on_leftclick back
{
run_block method4
}
block direct_exec method4
{
run_transition cwars_off
runwait_trans tr0r b14
runwait_trans tr0r b13
runwait_trans tr0r b12
runwait_trans tr0r b11
runwait_trans tr0r b10
runwait_trans tr0r b9
runwait_trans tr0r b8
runwait_trans tr0r b7
runwait_trans tr0r b6
runwait_trans tr0r b5
runwait_trans tr0r b4
runwait_trans tr0r b3
runwait_trans tr0r b2
runwait_trans tr0r b1
runwait_trans tr3r
runwait_trans tr2r
runwait_trans tr1r
close_form
activate_form mainmenu
}
block direct_exec method5
{
run_transition cwars_off
runwait_trans tr0r b14
runwait_trans tr0r b13
runwait_trans tr0r b12
runwait_trans tr0r b11
runwait_trans tr0r b10
runwait_trans tr0r b9
runwait_trans tr0r b8
runwait_trans tr0r b7
runwait_trans tr0r b6
runwait_trans tr0r b5
runwait_trans tr0r b4
runwait_trans tr0r b3
runwait_trans tr0r b2
runwait_trans tr0r b1
runwait_trans tr3r
runwait_trans tr2r
runwait_trans tr1r
commit
activate_form options_video
close_form
}
block direct_exec method6
{
run_transition cwars_off
runwait_trans tr0r b14
runwait_trans tr0r b13
runwait_trans tr0r b12
runwait_trans tr0r b11
runwait_trans tr0r b10
runwait_trans tr0r b9
runwait_trans tr0r b8
runwait_trans tr0r b7
runwait_trans tr0r b6
runwait_trans tr0r b5
runwait_trans tr0r b4
runwait_trans tr0r b3
runwait_trans tr0r b2
runwait_trans tr0r b1
runwait_trans tr3r
runwait_trans tr2r
runwait_trans tr1r
commit
activate_form options_audio
close_form
}
block direct_exec method7
{
run_transition cwars_off
runwait_trans tr0r b14
runwait_trans tr0r b13
runwait_trans tr0r b12
runwait_trans tr0r b11
runwait_trans tr0r b10
runwait_trans tr0r b9
runwait_trans tr0r b8
runwait_trans tr0r b7
runwait_trans tr0r b6
runwait_trans tr0r b5
runwait_trans tr0r b4
runwait_trans tr0r b3
runwait_trans tr0r b2
runwait_trans tr0r b1
runwait_trans tr3r
runwait_trans tr2r
runwait_trans tr1r
commit
activate_form options_player
close_form
}
block direct_exec method8
{
run_transition cwars_off
runwait_trans tr0r b14
runwait_trans tr0r b13
runwait_trans tr0r b12
runwait_trans tr0r b11
runwait_trans tr0r b10
runwait_trans tr0r b9
runwait_trans tr0r b8
runwait_trans tr0r b7
runwait_trans tr0r b6
runwait_trans tr0r b5
runwait_trans tr0r b4
runwait_trans tr0r b3
runwait_trans tr0r b2
runwait_trans tr0r b1
runwait_trans tr3r
runwait_trans tr2r
runwait_trans tr1r
commit
activate_form options_controls
close_form
}
block direct_exec method9
{
run_transition cwars_off
runwait_trans tr0r b14
runwait_trans tr0r b13
runwait_trans tr0r b12
runwait_trans tr0r b11
runwait_trans tr0r b10
runwait_trans tr0r b9
runwait_trans tr0r b8
runwait_trans tr0r b7
runwait_trans tr0r b6
runwait_trans tr0r b5
runwait_trans tr0r b4
runwait_trans tr0r b3
runwait_trans tr0r b2
runwait_trans tr0r b1
runwait_trans tr3r
runwait_trans tr2r
runwait_trans tr1r
commit
activate_form options_gameplay
close_form
}
// default blocks for ui buttons
block on_mouseover def_ui_mover
{
stop_transition ui_fade_out
run_transition ui_fade_in $1
}
block on_mouseout def_ui_mout
{
stop_transition ui_fade_in
run_transition ui_fade_out $1
}
block on_leftclick video
{
run_block method5
}
block on_leftclick player
{
run_block method7
}
block on_leftclick controls
{
run_block method8
}
block on_leftclick gameplay
{
run_block method9
}
block on_mouseover player
{
run_transition player_on
stop_transition player_off
}
block on_mouseout player
{
stop_transition player_on
run_transition player_off
}
block on_mouseout audio
{
stop_transition audio_on
run_transition audio_off
}
block on_mouseover audio
{
run_transition audio_on
stop_transition audio_off
}
block on_mouseover video
{
run_transition video_on
stop_transition video_off
}
block on_mouseout video
{
stop_transition video_on
run_transition video_off
}
block on_mouseover controls
{
run_transition controls_on
stop_transition controls_off
}
block on_mouseout controls
{
stop_transition controls_on
run_transition controls_off
}
block on_mouseover gameplay
{
run_transition gameplay_on
stop_transition controls_off
}
block on_mouseout gameplay
{
stop_transition gameplay_on
run_transition gameplay_off
}
block on_mouseover keys_over
{
stop_transition keys_off $1
run_transition keys_on $1
}
block on_mouseout keys_out
{
stop_transition keys_on $1
run_transition keys_off $1
}
block on_leftclick resetto
{
reset_to_defaults
}
}