life status bar

BlitzMax Forums/BlitzMax Programming/life status bar

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You can't draw an unfilled rectangle in BMax. Try this code for the outline, the fill it as you've suggested.

' -----------------------------------------------------------------------------
' ccDrawRectOutline: Draws an outlined rectangle
' -----------------------------------------------------------------------------
Function ccDrawRectOutline(x,y,w,h)
	'BlitzMax can only draw filled rectangles, so I made this.
	'Trim width and height.
	w = w-1
	h = h-1
	DrawLine(x,y,x+w,y,0)
	DrawLine(x+w,y,x+w,y+h,0)
	DrawLine(x+w,y+h,x,y+h,0)
	DrawLine(x,y+h,x,y,0)	
End Function