function gui:newTextBase(tp,t,name,x,y,w,h,sx,sy,sw,sh)
	x,y,w,h,sx,sy,sw,sh=filter(name, x, y, w, h, sx ,sy ,sw ,sh)
	local c=self:newBase(tp,name, x, y, w, h, sx ,sy ,sw ,sh)
	c.Tween=0
	c.XTween=0
	c.FontHeight=_defaultfont:getHeight()
	c.Font=_defaultfont
	c.Font:setFilter("linear","nearest",4)
	c.FontSize=15
	c.TextFormat="center"
    c.text = t
	c.AutoScaleText=false
	c.TextVisibility=1
    c.Color = {220, 220, 220}
    c.TextColor = {0, 0, 0}
    return c
end