createvar modes_position_hor
createvar modes_position_vert
createvar modes_width
createvar modes_height
createvar modes_col_space
createvar modes_hor_space
createvar _modes_position_hor
createvar _modes_position_vert

set old_brushstrength_model 15
//-------size-------------------------------------
set modes_position_hor 2
set modes_position_vert 2
set modes_width 1024
set modes_height 40
//-----end-size-----------------------------------

set _modes_position_hor #modes_position_hor#
inc _modes_position_hor 14

set _modes_position_vert #modes_position_vert#
inc _modes_position_vert 12

set modes_col_space 0
set modes_hor_space 1

//_______________________________________________________________


create panel modes $_modes_position_hor$ $_modes_position_vert$

create graphic modehighlight $modes_col_space$ $modes_row_space$ 120 16
	param image 1_nl_selected120x16.tga
	param interactive 0

	


create button modes_deform_button $modes_col_space$ $modes_row_space$ 120 16 
		param up_image button120x16.tga
		param command "exec /gui/jesse/ui_deform_mode.cfg"
		param text "Deform F1"

inc modes_col_space 125



create button modes_paint_button $modes_col_space$ $modes_row_space$ 120 16 
		param up_image button120x16.tga
		param command "exec /gui/jesse/ui_paint_mode.cfg"
		param text "Paint F2"

inc modes_col_space 125



create button modes_texture_button $modes_col_space$ $modes_row_space$ 120 16 
		param up_image button120x16.tga
		param command "exec /gui/jesse/ui_texture_mode.cfg"
		param text "Texture F3"

inc modes_col_space 125



create button modes_object_button $modes_col_space$ $modes_row_space$ 120 16 
		param up_image button120x16.tga
		param command "exec /gui/jesse/ui_object_mode.cfg"
		param text "Object F4"

inc modes_col_space 125



create button modes_enviro_button $modes_col_space$ $modes_row_space$ 120 16 
		param up_image button120x16.tga
		param command "exec /gui/jesse/ui_enviro_mode.cfg"
		param text "Enviroment F5"

inc modes_col_space 125

create button modes_util_button $modes_col_space$ $modes_row_space$ 120 16 
		param up_image button120x16.tga
		param command "exec /gui/jesse/ui_util_mode.cfg"
		param text "Utilities F6"

inc modes_col_space 125

create button modes_undo_button $modes_col_space$ 0 120 16 
		param up_image button120x16.tga
		param command "world _undo_"
		param text "Undo u"

inc modes_col_space 125

create button modes_quit_button $modes_col_space$ $modes_row_space$ 120 16
		param up_image button120x16.tga
		param command "quit"
		param text "Quit"

inc modes_col_space 125




create panel modesframe $modes_position_hor$ $modes_position_vert$ $modes_width$ $modes_height$


create floater "modes_frame" 0 0 $modes_width$ $modes_height$ 		
set framewidth $modes_width$
set frameheight $modes_height$
exec ui_frame.cfg


panel link modes modesframe