aboutsummaryrefslogtreecommitdiffstats
path: root/src/titlescreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/titlescreen.cpp')
-rw-r--r--src/titlescreen.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/titlescreen.cpp b/src/titlescreen.cpp
index fc23a75..a416338 100644
--- a/src/titlescreen.cpp
+++ b/src/titlescreen.cpp
@@ -80,6 +80,8 @@ TitleScreen::TitleScreen() :
m_graphicWindow = Boxii::makeWindow<Boxii::Window>(0, 0, sw, graphicHeight + 1);
m_selectionWindow = Boxii::makeWindow<Boxii::TextWindow>(0, graphicHeight + 1, sw, selectionHeight + 1);
+ m_selectionWindow->border('_', '_', '_', '_', '_', ' ', 0xFFFFFF, 0x0);
+
printTitle(m_graphicWindow);
printSelections(m_selectionWindow, m_selection);
}
@@ -87,7 +89,7 @@ TitleScreen::TitleScreen() :
TitleScreen::~TitleScreen()
{
-}
+ }
void
TitleScreen::activate()
@@ -107,6 +109,10 @@ void
TitleScreen::parseSelection()
{
if(m_selection == static_cast<int>(Selection::QUIT)) Game::stop();
+ if(m_selection == static_cast<int>(Selection::TESTGEN)) {
+ Game::popScreen();
+ Game::pushScreen("test");
+ }
}
void
@@ -114,7 +120,7 @@ TitleScreen::update()
{
int c = Boxii::Input::getch(true);
if(c == Boxii::KEY_ESCAPE) {
- Game::pushScreen("pause");
+ Game::stop();
}
if(c == Boxii::KEY_LEFT){