gui/Button.cpp
// Sets the image used when the mouse hovers over the button. If no image is
// set, the default image will be used.
Sets the image used when the mouse hovers over the button. If no image is
set, the default image will be used.
Sets the image used when the mouse hovers over the button . If no image is set the default image will be used .
void Button::setOnHoverImage(std::unique_ptr<sf::Sprite> image)
{
	if (currentImage == onHoverImage.get())
	{
		currentImage = defaultImage.get();
	}
	onHoverImage = std::move(image);
}
void Button :: setOnHoverImage ( std :: unique_ptr < sf :: Sprite > image ) { if ( currentImage == onHoverImage . get ( ) ) { currentImage = defaultImage . get ( ) ; } onHoverImage = std :: move ( image ) ; }
Sets the image used when the mouse hovers over the button.
Sets the image used when the mouse hovers over the button .