Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/CampaignMap_HS17/src/modules/overlays/hud/StoryModeHUD.h @ 11544

Last change on this file since 11544 was 11544, checked in by fanconic, 6 years ago

Story Mode Hud was edited, and a level file was added

File size: 1.9 KB
Line 
1/*
2 *   ORXONOX - the hottest 3D action shooter ever to exist
3 *                    > www.orxonox.net <
4 *
5 *
6 *   License notice:
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.  S
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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21 *
22 *   Author:
23 *      Felix Schulthess
24 *   Co-authors:
25 *      Reto Grieder
26 *      Matthias Spalinger
27 *
28 */
29
30#ifndef _StoryModeHUD_H__
31#define _StoryModeHUD_H__
32
33#include "overlays/OverlaysPrereqs.h"
34
35#include <map>
36#include <string>
37
38#include "util/OgreForwardRefs.h"
39#include "tools/interfaces/Tickable.h"
40#include "overlays/OrxonoxOverlay.h"
41
42namespace orxonox
43{
44    class _OverlaysExport StoryModeHUD : public OrxonoxOverlay, public Tickable
45    {
46    public:
47            StoryModeHUD(Context* context);
48            virtual ~StoryModeHUD();
49
50            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
51            virtual void tick(float dt) override;
52
53
54        private:
55            Ogre::TextAreaOverlayElement* text_;
56     
57            void setTextSize(float size);
58            float getTextSize() const;
59
60            void setFont(const std::string& font);
61            const std::string& getFont() const;
62
63   
64            std::string fontName_;
65            float textSize_;
66   
67    };
68}
69
70#endif /* _StoryModeHUD_H__ */
Note: See TracBrowser for help on using the repository browser.