createvar old_brushstrength_model
createvar old_brushstrength_texture
createvar old_brushstrength_object
createvar old_brushstrength_color

set old_brushstrength_model 50
set old_brushstrength_texture 1
set old_brushstrength_object 1
set old_brushstrength_color 1

create panel brushes 40 686 128 64

createvar _buttoninc
createvar _buttonposinc
createvar _buttonrow
set _buttoninc 0
set _buttonposinc 0

create slider "brush_strength" -18 -3 12 69 
		param variable le_brushstrength 
		param range 1 20

// Row 1

create graphic selection 0 0 16 16
	param image brushselected.tga
	param interactive 0
le_brush 0

create graphic over 0 0 16 16
	param image brushselected.tga
	param interactive 0
	param alpha 0.5
hide over

set _buttonrow 0


exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg



//Row 2

set _buttonposinc 0
set _buttonrow 16

exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg


//Row3


set _buttonposinc 0
set _buttonrow 32


exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg

//Row4


set _buttonposinc 0
set _buttonrow 48


exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg
exec ui_brushrows.cfg




//--------------------


create panel brushframe 5 670

create floater "brushframe_frame" 0 0 180 96 		
set framewidth 180
set frameheight 96
exec ui_frame.cfg





panel link brushes brushframe

hide brushes
hide brushframe
