createvar hider_position_hor
createvar hider_position_vert
createvar hider_width
createvar hider_height
createvar hider_row_space
createvar _hider_position_hor
createvar _hider_position_vert

//defaultbuttonwidth is 120

//-------size-------------------------------------
set hider_position_hor 300
set hider_position_vert 400
set hider_width 94
set hider_height 161
//-----end-size-----------------------------------



set hider_row_space 0

set _hider_position_hor #hider_position_hor#
inc _hider_position_hor 14

set _hider_position_vert #hider_position_vert#
inc _hider_position_vert 12



create panel hider $_hider_position_hor$ $_hider_position_vert$ 120 100


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


create togglebutton hider_deform 0 $hider_row_space$ 65 16 
		param up_image button120x16_down.tga
		param down_image button120x16.tga
		param command "hide deform; hide deformframe"
		param up_command "show deform; show deformframe"
		param text "Deform"

inc hider_row_space 20


create togglebutton hider_textures 0 $hider_row_space$ 65 16 
		param up_image button120x16_down.tga
		param down_image button120x16.tga
		param command "hide texture; hide textureframe"
		param up_command "show texture; show textureframe"
		param text "Textures"
inc hider_row_space 20


create togglebutton hider_objects 0 $hider_row_space$ 65 16 
		param up_image button120x16.tga
		param down_image button120x16_down.tga
		param command "hide objects; hide objectsframe"
		param up_command "show objects; show objectsframe"
		param text "Objects"
inc hider_row_space 20

create togglebutton hider_util 0 $hider_row_space$ 65 16 
		param up_image button120x16_down.tga
		param down_image button120x16.tga
		param command "hide util; hide utilframe"
		param up_command "show util; show utilframe"
		param text "Utility"
inc hider_row_space 20

create togglebutton hider_env 0 $hider_row_space$ 65 16 
		param up_image button120x16.tga
		param down_image button120x16_down.tga
		param command "gfx_foliageFalloff 0"
		param up_command "gfx_foliageFalloff 600"
		param text "Enviro"

inc hider_row_space 20


create togglebutton hider_brushes 0 $hider_row_space$ 65 16 
		param up_image button120x16_down.tga
		param down_image button120x16.tga
		param command "hide brushes; hide brushframe"
		param up_command "show brushes; show brushframe"
		param text "Brushes"

inc hider_row_space 20


create togglebutton hider_grass 0 $hider_row_space$ 65 16 
		param up_image button120x16_down.tga
		param down_image button120x16.tga
		param command "hide grass; hide grassframe"
		param up_command "show grass; show grassframe"
		param text "Grass"
inc hider_row_space 20


create panel hiderframe $hider_position_hor$ $hider_position_vert$ $hider_width$ $hider_height$


create floater "hider_frame" 0 0 $hider_width$ $hider_height$ 		
set framewidth $hider_width$
set frameheight $hider_height$
exec ui_frame.cfg


panel link hider hiderframe