create panel deform 19 586 120 96

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

create slider "flattenheight" 123 1 16 67 
		param variable le_flattenheight 
		param range -600 800

create graphic "flattenback" 123 0 16 67
	param image /gui/standard/sliderbg.tga
	param alpha .9
	
		

hide flattenheight


create button raiselower 0 0 120 16 
		param up_image button120x16.tga
		param down_image button120x16_selected.tga
		//param up_hover_image button120x16_over.tga
		param command "hide flattenheight;exec /gui/jesse/ui_deform_mode.cfg;modelmode raiselower;move selected120 0 0"
		param text "Raise/Lower"


create button flatten 0 18 120 16 
		param up_image button120x16.tga
		param down_image button120x16_selected.tga
		//param up_hover_image button120x16_over.tga
		param command "show flattenheight;exec /gui/jesse/ui_deform_mode.cfg;modelmode flatten;move selected120 0 18"
		param text "Flatten"


create button smooth 0 36 120 16 
		param up_image button120x16.tga
		param down_image button120x16_selected.tga
		//param up_hover_image button120x16_over.tga
		param command "hide flattenheight; exec /gui/jesse/ui_deform_mode.cfg; modelmode smooth;move selected120 0 36"
		param text "Smooth"


create button cut 0 54 120 16 
		param up_image button120x16.tga
		param down_image button120x16_selected.tga
		//param up_hover_image button120x16_over.tga
		param command "hide flattenheight;exec /gui/jesse/ui_deform_mode.cfg; modelmode cut;move selected120 0 54"
		param text "Cut"



create panel deformframe 5 575

//create floater "deformframe_frame" 0 0 162 96 
create floater "deformframe_frame" 0 0 168 96 		
set framewidth 168
set frameheight 93
exec ui_frame.cfg


panel link deform deformframe


hide deform
hide deformframe