createvar swatchpanel_position_hor
createvar swatchpanel_position_vert
createvar swatchpanel_width
createvar swatchpanel_height
createvar swatchpanel_row_space
createvar _swatchpanel_position_hor
createvar _swatchpanel_position_vert


createvar sliderposw
createvar sliderposv
createvar sliderwidth
createvar sliderspacing
createvar sliderhieght

set sliderposw 0
set sliderposv 0
set sliderwidth 32
set sliderspacing [sliderwidth + 4]
set sliderhieght 60


//-------size-------------------------------------
set swatchpanel_position_hor 5
set swatchpanel_position_vert 553
set swatchpanel_width 169
set swatchpanel_height 115
//-----end-size-----------------------------------


create panel swatch_panel [swatchpanel_position_hor + 15] [swatchpanel_position_vert + 12]

//            name       x   y   w  h  
	create slider "r_slider" $sliderposw$ [sliderposv]  [sliderwidth] [sliderhieght]
		param range 0 2         
		param slider_color 0.9 0.1 0.1

inc sliderposw $sliderspacing$

	create slider "g_slider" $sliderposw$ [sliderposv]  [sliderwidth] [sliderhieght]
		param range 0 2          
		param slider_color 0.1 0.9 0.1
inc sliderposw $sliderspacing$

	create slider "b_slider" $sliderposw$ [sliderposv]  [sliderwidth] [sliderhieght]
		param range 0 2
		param slider_color 0.1 0.1 0.9
inc sliderposw $sliderspacing$

	create slider "a_slider" $sliderposw$ [sliderposv]  [sliderwidth] [sliderhieght]
		param range 0 1
		param slider_color 1 1 1
inc sliderposw $sliderspacing$
	
	


create swatch "generic_swatch"  6 [sliderhieght + 12] [sliderspacing * 4 -16] 16
	param interactive 0

 

create graphic swatchback 4 [sliderhieght + 10] [sliderspacing * 4 -12] 20
	param image button120x16.tga
	param interactive 0






create panel swatch_bar [swatchpanel_position_hor] [swatchpanel_position_vert] [swatchpanel_width] [swatchpanel_height]



create floater swatch_barframe 0 0 $swatchpanel_width$ $swatchpanel_height$

		


set framewidth $swatchpanel_width$
set frameheight $swatchpanel_height$
exec ui_frame.cfg





panel link swatch_panel swatch_bar

hide swatch_panel
hide swatch_bar


//panel link swatch_panel swatch_bar bottom
