Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Splash Screens?  (Read 2187 times)

0 Members and 1 Guest are viewing this topic.

Azurus

  • Newbie
  • *
  • Posts: 7
    • View Profile
Splash Screens?
« on: September 19, 2011, 12:27:23 am »
I want to hide the Minimize/Maximize/Close buttons as well as disable doing the same thing from the task bar temporarily for a splash screen. Is this possible? If so, how?

Currently, the part of my SplashScreen class is this:
Code: [Select]

void SplashScreen::Show(sf::RenderWindow& window)
{

sf::Image splash;
if(splash.LoadFromFile("images/PongSplash.png") != true) //Check if it's valid, if not, skip over the splash screen completely.
return;

window.Close();
window.Create(sf::VideoMode(splash.GetWidth(), splash.GetHeight()), "Pong!");

sf::Sprite sprite(splash);

window.Draw(sprite);
window.Display();
//Code to loop and close screen here
}

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
Splash Screens?
« Reply #1 on: September 19, 2011, 01:36:21 am »
http://sfml-dev.org/documentation/2.0/group__window.php
Scroll down to the enumerations part. If you're using 1.x, then this page will do: http://sfml-dev.org/documentation/1.6/namespacesf_1_1Style.php
To see where this belongs, look at the constructor for sf::Window/sf::RenderWindow
I use the latest build of SFML2

Azurus

  • Newbie
  • *
  • Posts: 7
    • View Profile
Splash Screens?
« Reply #2 on: September 19, 2011, 04:20:04 am »
Thanks. It worked perfectly.