Added some functions and fixed drawRectangleRepeated

Added clippable drawRectangleRepeated
Added drawForeground component functions
---- Needed for tooltips to not get overlapped by elements drawn after the tooltip

Added drawBackground
Changed UIButton to use new repeated rectangle drawing (Looks better and is clippable)
Changed UITank to use new repeated rectangle drawing (Looks worse but is clippable)