

//top edge

create graphic tl_corner 0 0 #cornersize# #cornersize#
	param image tl_#bargraphic#.tga

set temp_x #framewidth#
inc temp_x -#cornersize#    //-#cornerSize#
inc temp_x -#cornersize#    //-#cornerSize#

create graphic t_edge #cornersize# 0 #temp_x# #cornersize#
	param image t_#bargraphic#.tga

//top right corner

set temp_x #framewidth#
inc temp_x -#cornersize#	//-#cornerSize#

create graphic tr_corner #temp_x# 0 #cornersize# #cornersize#
	param image tr_#bargraphic#.tga


//right edge

set temp_x #framewidth#
inc temp_x -#cornersize#
set temp_y #frameheight#
inc temp_y -#cornersize#

create graphic r_edge #temp_x# 0 #cornersize# #temp_y#
	param image r_#bargraphic#.tga

//left edge

set temp_y #frameheight#
inc temp_y -#cornersize#
inc temp_y -#cornersize#

create graphic l_edge 0 #cornersize# #cornersize# #temp_y#
	param image l_#bargraphic#.tga


//bottom left corner
set temp_y #frameheight#
inc temp_y -#cornersize#

create graphic bl_corner 0 #temp_y# #cornersize# #cornersize#
	param image bl_#bargraphic#.tga

//bottom edge

set temp_x #framewidth#
inc temp_x -#cornersize#
inc temp_x -#cornersize#
set temp_y #frameheight#
inc temp_y -#cornersize#

create graphic b_edge #cornersize# #temp_y# #temp_x# #cornersize#
	param image b_#bargraphic#.tga

//bottom right corner

set temp_x #framewidth#
inc temp_x -#cornersize#
set temp_y #frameheight#
inc temp_y -#cornersize#

create graphic br_corner #temp_x# #temp_y# #cornersize# #cornersize#
	param image br_#bargraphic#.tga



set temp_x #framewidth#

set temp_y #frameheight#

create graphic background 0 0 #framewidth# #frameheight#
	param image black.tga






// Vars   bargraphic  =  graphic fileset

// tedgesize_hor  = width of top bar

// trcornerpos_hor = position of top right corner

//redgepos_hor

//redgesize_vert

//ledgesize_vert

//blcornerpos_vert

