3 #include "engine/component.h"
4 #include "engine/system.h"
5 #include "engine/touchable.h"
8 #include <OgreTextAreaOverlayElement.h>
20 COMPONENT(TextOverlay)
37 Ogre::ColourValue
colour = Ogre::ColourValue::White;
103 static luabind::scope
166 static luabind::scope
197 void update(
int,
int)
override;
201 struct Implementation;
202 std::unique_ptr<Implementation> m_impl;
Ogre::TextAreaOverlayElement * m_overlayElement
Pointer to internal overlay element.
Definition: text_overlay.h:138
Helper class for keeping track of changing data.
Definition: touchable.h:18
Properties.
Definition: text_overlay.h:27
Ogre::Real width
Textbox width in pixels.
Definition: text_overlay.h:81
Ogre::String fontName
Font name.
Definition: text_overlay.h:42
void load(const StorageContainer &storage) override
Loads the component.
Definition: text_overlay.cpp:67
void deactivate() override
Called by GameState::deactivate()
Definition: text_overlay.cpp:224
TextOverlaySystem()
Constructor.
Definition: text_overlay.cpp:207
Ogre::String name() const
The overlay's name.
Definition: text_overlay.h:128
Creates, updates and removes text overlays.
Definition: text_overlay.h:154
Base class for components.
Definition: component.h:31
static luabind::scope luaBindings()
Lua bindings.
Definition: text_overlay.cpp:20
Properties m_properties
Properties.
Definition: text_overlay.h:143
A system handles one specific part of the game.
Definition: system.h:23
void init(GameState *gameState) override
Initializes the system.
Definition: text_overlay.cpp:230
Ogre::Real top
Offset relative to screen anchor in pixels.
Definition: text_overlay.h:71
Ogre::Real left
Offset relative to screen anchor in pixels.
Definition: text_overlay.h:59
Ogre::ColourValue colour
Text colour.
Definition: text_overlay.h:37
Ogre::GuiVerticalAlignment verticalAlignment
Vertical alignment relative to screen.
Definition: text_overlay.h:76
Ogre::Real charHeight
The character height in pixels.
Definition: text_overlay.h:32
static luabind::scope luaBindings()
Lua bindings.
Definition: text_overlay.cpp:115
Definition: bullet_to_ogre_system.h:5
Definition: bullet_ogre_conversion.h:6
Ogre::String text
Text to display.
Definition: text_overlay.h:64
GameState * gameState() const
Returns the system's game state.
Definition: system.cpp:183
StorageContainer storage() const override
Serializes the component.
Definition: text_overlay.cpp:90
Represents a distinct set of active systems and entities.
Definition: game_state.h:41
void shutdown() override
Shuts the system down.
Definition: text_overlay.cpp:240
A component for a text overlay.
Definition: text_overlay.h:19
void update(int, int) override
Updates the system.
Definition: text_overlay.cpp:248
Ogre::Real height
Textbox height in pixels.
Definition: text_overlay.h:47
~TextOverlaySystem()
Destructor.
Definition: text_overlay.cpp:213
void activate() override
Called by GameState::activate()
Definition: text_overlay.cpp:217
A key-value storage for serialization.
Definition: serialization.h:36
Ogre::GuiHorizontalAlignment horizontalAlignment
Horizontal alignment relative to screen.
Definition: text_overlay.h:52