The docs say r, g, b and a are public attributes of an sf::Color, so you should just be able to use ".a" to get at it.
yeah, but the color isn't a public attribute from the Shape class, and the only setter method I found is "setFillColor", which sets all colors at once.
maybe something like
text_box.setFillColor(sf::Color(text_box.getFillColor().r, text_box.getFillColor().g, text_box.getFillColor().b, text_box.getFillColor().a - 15));
would work, but i did something simpler:
sf::Color color(text_box.getFillColor());
color.a-=15;
text_box.setFillColor(color);
There's an operator - for sf::Color in the current development version.
ok, thanks for the info
and thanks everybody for the help