Skyscraper 2.0
startscreen.h
Go to the documentation of this file.
1/*
2 Skyscraper 2.1 - Startup Screen
3 Copyright (C)2003-2024 Ryan Thoryk
4 https://www.skyscrapersim.net
5 https://sourceforge.net/projects/skyscraper/
6 Contact - ryan@skyscrapersim.net
7
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21*/
22
23namespace Skyscraper
24{
25
27{
28public:
29
32 bool DrawBackground();
33 bool GetMenuInput();
34 void DeleteButtons();
35
36private:
37
38 //button locations
40 {
45 std::string filename;
46 std::string filename_selected;
47 std::string filename_pressed;
52 Ogre::SceneNode* node;
53 Ogre::Rectangle2D* rect;
54 };
57
58 Ogre::Rectangle2D* background_rect;
59 Ogre::SceneNode* background_node;
60 std::string background_image;
61
62 bool DrawImage(const std::string &filename, buttondata *button, Real x, Real y, bool center, const std::string &filename_selected = "", const std::string &filename_pressed = "");
63 void Click(int index);
64
67
68};
69
70}
bool DrawImage(const std::string &filename, buttondata *button, Real x, Real y, bool center, const std::string &filename_selected="", const std::string &filename_pressed="")
Ogre::Rectangle2D * background_rect
Definition startscreen.h:58
StartScreen(Skyscraper *frontend)
std::string background_image
Definition startscreen.h:60
Ogre::SceneNode * background_node
Definition startscreen.h:59
Ogre::Real Real
Definition globals.h:57