Included some testsuite into qtmain and updated travis file to try to use it.
This commit is contained in:
@@ -44,7 +44,7 @@ void GameStateStory::loadStoriesMenu(const char * root)
|
||||
flow = NEW StoryFlow(stories[0]);
|
||||
break;
|
||||
default:
|
||||
menu = NEW SimpleMenu(JGE::GetInstance(), 103, this, Fonts::MENU_FONT, 150, 60);
|
||||
menu = NEW SimpleMenu(JGE::GetInstance(), WResourceManager::Instance(), 103, this, Fonts::MENU_FONT, 150, 60);
|
||||
for (size_t i = 0; i < stories.size(); ++i)
|
||||
{
|
||||
menu->Add(i, stories[i].c_str());
|
||||
@@ -64,7 +64,7 @@ void GameStateStory::Update(float dt)
|
||||
{
|
||||
if (!menu && mEngine->GetButtonClick(JGE_BTN_MENU))
|
||||
{
|
||||
menu = NEW SimpleMenu(JGE::GetInstance(), 100, this, Fonts::MENU_FONT, SCREEN_WIDTH / 2 - 100, 25);
|
||||
menu = NEW SimpleMenu(JGE::GetInstance(), WResourceManager::Instance(), 100, this, Fonts::MENU_FONT, SCREEN_WIDTH / 2 - 100, 25);
|
||||
menu->Add(0, "Back to main menu");
|
||||
menu->Add(kCancelMenuID, "Cancel");
|
||||
}
|
||||
@@ -142,4 +142,4 @@ void GameStateStory::OnScroll(int, int inYVelocity)
|
||||
velocity -= 100;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user