Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - ultra

#1
Help requests / Re: Set Color of Texture
21 May 2016, 12:07:39
All right, thank you! With this information at hand, I will somehow manage to work around the problem.
#2
Help requests / Set Color of Texture
20 May 2016, 14:08:06
Hello everybody,

I want to set the HoverTexture of a button to be the same as the NormalTexture but in a different color.
Unfortunately, the texture seems to remain unchanged on hovering (The hover event is handled properly, I tried with a different texture ;) ).
How can I get a texture colored?

Code (cpp) Select

tgui::Button::Ptr button = std::make_shared<tgui::Button>();
...
tgui::Texture texture;
texture.load(...);
texture.setColor( sf::Color(255, 0, 0) );
button->getRenderer()->setHoverTexture(texture);