function buttontext(txt, font, x, y, align, w, f) surface.SetFont(font) local ax, ay = surface.GetTextSize(txt) local ax = w local ply = LocalPlayer() local color local color2 if gui.MouseX() >= x and gui.MouseX() <= x + ax and gui.MouseY() >= y and gui.MouseY() <= y + ay then color = Color(135,255,91,255) color2 = Color(224,255,91,100) ply.selected = f else if ply.selected == f then ply.selected = nil end color = Color(255,185,119,255) color2 = Color( 200, 171, 135, 100 ) end draw.RoundedBox( 0, x-3, y-2, w - 6, ay+4, color2 ) return draw.SimpleText(txt, font, x, y, color, align, align) end