From 437703962a4a91bf88762d03ead29df04ba7af35 Mon Sep 17 00:00:00 2001 From: uruk Date: Mon, 3 Mar 2014 23:12:37 +0100 Subject: AVALANCHE: Add MainMenu's skeleton. --- engines/avalanche/mainmenu.h | 55 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 engines/avalanche/mainmenu.h (limited to 'engines/avalanche/mainmenu.h') diff --git a/engines/avalanche/mainmenu.h b/engines/avalanche/mainmenu.h new file mode 100644 index 0000000000..0eece87c02 --- /dev/null +++ b/engines/avalanche/mainmenu.h @@ -0,0 +1,55 @@ +/* ScummVM - Graphic Adventure Engine +* +* ScummVM is the legal property of its developers, whose names +* are too numerous to list here. Please refer to the COPYRIGHT +* file distributed with this source distribution. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +* +*/ + +/* +* This code is based on the original source code of Lord Avalot d'Argent version 1.3. +* Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman. +*/ + +#ifndef AVALANCHE_MAINMENU_H +#define AVALANCHE_MAINMENU_H + +namespace Avalanche { +class AvalancheEngine; + +class MainMenu { +public: + MainMenu(AvalancheEngine *vm); + + void run(); + +private: + AvalancheEngine *_vm; + + Common::String registrant; + + void icons(); + void loadMenu(); + void loadRegiInfo(); + void option(byte which, Common::String what); + void centre(int16 y, Common::String text); + void wait(); +}; + +} // End of namespace Avalanche + +#endif // AVALANCHE_MAINMENU_H -- cgit v1.2.3 From d69975af14e121ff32f26bb86353e30044da1537 Mon Sep 17 00:00:00 2001 From: uruk Date: Tue, 4 Mar 2014 12:01:41 +0100 Subject: AVALANCHE: Move to graphics and implement GraphicManager::menuLoadIcons(). Add and implement necessary graphical functions for the main menu during the process. --- engines/avalanche/mainmenu.h | 1 - 1 file changed, 1 deletion(-) (limited to 'engines/avalanche/mainmenu.h') diff --git a/engines/avalanche/mainmenu.h b/engines/avalanche/mainmenu.h index 0eece87c02..b5e0a0e3da 100644 --- a/engines/avalanche/mainmenu.h +++ b/engines/avalanche/mainmenu.h @@ -42,7 +42,6 @@ private: Common::String registrant; - void icons(); void loadMenu(); void loadRegiInfo(); void option(byte which, Common::String what); -- cgit v1.2.3 From 8b16fdcede688a156b4787601d284224d915d49f Mon Sep 17 00:00:00 2001 From: uruk Date: Tue, 4 Mar 2014 15:25:26 +0100 Subject: AVALANCHE: Implement loadMenu(). Unify it with menuLoadIcons(). Also rename menuLoadIcons to menuLoadPictures after the unifying. --- engines/avalanche/mainmenu.h | 1 - 1 file changed, 1 deletion(-) (limited to 'engines/avalanche/mainmenu.h') diff --git a/engines/avalanche/mainmenu.h b/engines/avalanche/mainmenu.h index b5e0a0e3da..7b1e38612f 100644 --- a/engines/avalanche/mainmenu.h +++ b/engines/avalanche/mainmenu.h @@ -42,7 +42,6 @@ private: Common::String registrant; - void loadMenu(); void loadRegiInfo(); void option(byte which, Common::String what); void centre(int16 y, Common::String text); -- cgit v1.2.3 From 80e01378d34217e572825bd6aa1e196247cc5b40 Mon Sep 17 00:00:00 2001 From: uruk Date: Tue, 4 Mar 2014 20:27:00 +0100 Subject: AVALANCHE: Implement MainMenu::option(). Rework and implement a lot of connected functions. --- engines/avalanche/mainmenu.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/avalanche/mainmenu.h') diff --git a/engines/avalanche/mainmenu.h b/engines/avalanche/mainmenu.h index 7b1e38612f..e973e0ccf3 100644 --- a/engines/avalanche/mainmenu.h +++ b/engines/avalanche/mainmenu.h @@ -40,8 +40,10 @@ public: private: AvalancheEngine *_vm; - Common::String registrant; + Common::String _registrant; + FontType _font; + void loadFont(); void loadRegiInfo(); void option(byte which, Common::String what); void centre(int16 y, Common::String text); -- cgit v1.2.3