createvar util_position_hor
createvar util_position_vert
createvar util_width
createvar util_height
createvar util_row_space
createvar _util_position_hor
createvar _util_position_vert



//-------size-------------------------------------
set util_position_hor 5
set util_position_vert 400
set util_width 149
set util_height 161
//-----end-size-----------------------------------



set util_row_space 0

set _util_position_hor #util_position_hor#
inc _util_position_hor 14

set _util_position_vert #util_position_vert#
inc _util_position_vert 12



create panel util $_util_position_hor$ $_util_position_vert$ 120 100


create graphic selected120u 0 0 120 16
	param image 1_nl_selected120x16.tga
	param interactive 0
hide selected120u


create togglebutton fpsbutton 0 $util_row_space$ 120 16 
		param up_image button120x16_down.tga
		param down_image button120x16.tga
		param command "le_showfps 0"
		param up_command "le_showfps 1"
		param text "FPS On/Off"

inc util_row_space 20


create togglebutton polycount 0 $util_row_space$ 120 16 
		param up_image button120x16.tga
		param down_image button120x16_down.tga
		param command "gfx_polycount 1"
		param up_command "gfx_polycount 0"
		param text "Polycount"
i
inc util_row_space 20

create button quicksave 0 $util_row_space$ 120 16 
		param up_image button120x16.tga
		param command "save quicksave"
		param text "Quick Save F9"
inc util_row_space 20

create button quickload 0 $util_row_space$ 120 16 
		param up_image button120x16.tga
		param command "world quicksave"
		param text "Quick Load F12"

inc util_row_space 20


create graphic camspeed 5 $util_row_space$ 40 16
		param text "Speed:"

create button camspeeddown 53 $util_row_space$ 32 16
	param up_image button120x16.tga
	param down_image button120x16_down.tga
	param command "inc le_speed -2; if [le_speed < 1] le_speed 1"
	param text "dn"

create button camspeedup 88 $util_row_space$ 32 16
	param up_image button120x16.tga
	param down_image button120x16_down.tga
	param command "inc le_speed 2; if [le_speed > 66] le_speed 66"
	param text "up"

inc util_row_space 20


create graphic pleasewait 0 $util_row_space$ 120 16
	param image button120x16_down.tga
	param text "Please Wait..."

hide pleasewait




create button lightmap 0 $util_row_space$ 120 16 
		param up_image button120x16.tga
		on mousedown "show pleasewait"
		on mouseup "lightmap; hide pleasewait"
		
param text "LightMap"
inc util_row_space 20

create graphic lefpsgfx 5 $util_row_space$ 40 16
		param text "FPS:"

create button fpsspeeddown 53 $util_row_space$ 32 16
	param up_image button120x16.tga
	param down_image button120x16_down.tga
	param command "inc le_modelfps -5; if [le_modelfps < 0] le_modelfps 0"
	param text "dn"

create button fpsspeedup 88 $util_row_space$ 32 16
	param up_image button120x16.tga
	param down_image button120x16_down.tga
	param command "inc le_modelfps 5; if [le_speed > 120] le_modelfps 5 120"
	param text "up"


create panel utilframe $util_position_hor$ $util_position_vert$ $util_width$ $util_height$


create floater "util_frame" 0 0 $util_width$ $util_height$ 		
set framewidth $util_width$
set frameheight $util_height$
exec ui_frame.cfg

hide util
hide utilframe

panel link util utilframe