createvar sky_position_hor
createvar sky_position_vert
createvar sky_width
createvar sky_height
createvar sky_row_space
createvar _sky_position_hor
createvar _sky_position_vert


createvar skyiconwidth
createvar skyiconheight

set skyiconwidth 64
set skyiconheight 48

//-------size-------------------------------------
set sky_position_hor 226
set sky_position_vert 640
set sky_width 200
set sky_height 125
//-----end-size-----------------------------------



set sky_row_space 0

set _sky_position_hor #sky_position_hor#
inc _sky_position_hor 14

set _sky_position_vert #sky_position_vert#
inc _sky_position_vert 12

create panel sky $_sky_position_hor$ $_sky_position_vert$ 120 100


//create graphic skythumb 48 $sky_row_space$ $skyiconwidth$ $skyiconheight$
	//	param image /textures/foliage/foliage_sky.tga


create menu "skymenu" 0 5 80
		param bg_color        0 0 0
		param text_color      1 1 1
		param highlight_color 1 1 .2
		// param char_height 10


//game/objects/general/environment/sky
menu itemizedirs sky:skymenu /../game/objects/general/environment/sky/  "tl_skyskin #sky:skymenu#"


create panel skyframe $sky_position_hor$ $sky_position_vert$ $sky_width$ $sky_height$


create floater "sky_frame" 0 0 $sky_width$ $sky_height$ 		
set framewidth $sky_width$
set frameheight $sky_height$
exec ui_frame.cfg


panel link sky skyframe

hide sky
hide skyframe
