|
From: Tapio V. <aa...@us...> - 2009-12-11 12:43:25
|
Module: performous
Branch: dance
Commit: a95803c43a0e6868e63d27553fb8642e218c5e22
Author: Lasse Karkkainen <tro...@tr...>
Date: Mon Nov 30 00:16:37 2009 +0200
Add notes about menu
---
game/screen_intro.cc | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/game/screen_intro.cc b/game/screen_intro.cc
index d50b990..885912c 100644
--- a/game/screen_intro.cc
+++ b/game/screen_intro.cc
@@ -20,6 +20,20 @@ void ScreenIntro::exit() {
m_dialog.reset();
}
+/*
+Tronic's note on making the menu more generic:
+
+struct MenuOption {
+ std::string screen;
+ Surface image;
+};
+
+In ScreenIntro:
+std::vector<MenuOption> m_menuOptions;
+
+This should avoid all if-elses for testing selected == 1, ...
+*/
+
void ScreenIntro::manageEvent(SDL_Event event) {
ScreenManager* sm = ScreenManager::getSingletonPtr();
if (event.type == SDL_KEYDOWN) {
|