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