Added an empty navigation shell to the client

This commit is contained in:
Kayne Ruse
2013-10-27 22:00:09 +11:00
parent 26eba2def6
commit 2bd8adaf69
8 changed files with 129 additions and 62 deletions
+6 -39
View File
@@ -26,7 +26,8 @@
//-------------------------
SplashScreen::SplashScreen() {
//
logo.LoadSurface("rsc\\graphics\\logos\\krstudios.bmp");
startTick = std::chrono::steady_clock::now();
}
SplashScreen::~SplashScreen() {
@@ -37,46 +38,12 @@ SplashScreen::~SplashScreen() {
//Frame loop
//-------------------------
void SplashScreen::FrameStart() {
//
}
void SplashScreen::Update(double delta) {
//
}
void SplashScreen::FrameEnd() {
//
}
void SplashScreen::Render(SDL_Surface* const screen) {
//
}
//-------------------------
//Event handlers
//-------------------------
void SplashScreen::MouseMotion(SDL_MouseMotionEvent const& motion) {
//
}
void SplashScreen::MouseButtonDown(SDL_MouseButtonEvent const& button) {
//
}
void SplashScreen::MouseButtonUp(SDL_MouseButtonEvent const& button) {
//
}
void SplashScreen::KeyDown(SDL_KeyboardEvent const& key) {
switch(key.keysym.sym) {
case SDLK_ESCAPE:
QuitEvent();
break;
if (std::chrono::steady_clock::now() - startTick > std::chrono::duration<int>(1)) {
SetNextScene(SceneList::MAINMENU);
}
}
void SplashScreen::KeyUp(SDL_KeyboardEvent const& key) {
//
void SplashScreen::Render(SDL_Surface* const screen) {
logo.DrawTo(screen, (screen->w - logo.GetClipW()) / 2, (screen->h - logo.GetClipH()) / 2);
}