18#include <OgreRenderQueueListener.h>
19#include <OgreSingleton.h>
20#include <OgreUTFString.h>
30 public Manager,
public Ogre::RenderQueueListener,
public Ogre::Singleton<UiManager>
151 bool& skipThisInvocation
A base manager.
Definition: Manager.h:24
The UI widgets font.
Definition: UiFont.h:64
The UI manager.
Definition: UiManager.h:31
std::vector< UiPrototype > prototypes_
List of prototypes.
Definition: UiManager.h:197
std::vector< UiFont * > fonts_
List of fonts in the manager.
Definition: UiManager.h:174
UiWidget * ScriptGetWidget(const char *name)
Retrieves a UI widget by name.
Definition: UiManager.cpp:124
void AddFont(UiFont *font)
Adds a font to the manager.
Definition: UiManager.cpp:68
void renderQueueStarted(Ogre::uint8 queueGroupId, const Ogre::String &invocation, bool &skipThisInvocation)
Updates the render queue.
Definition: UiManager.cpp:126
void Input(const VGears::Event &event) override
Handles an input event.
Definition: UiManager.cpp:54
UiFont * GetFont(const Ogre::String &name)
Retrieves a font by name.
Definition: UiManager.cpp:81
void OnResize()
Handles resizing events.
Definition: UiManager.cpp:64
void UpdateWorld() override
Updates the world map UI elements in the manager.
Definition: UiManager.cpp:143
void ClearWorld() override
Clears all world map UI elements in the manager.
Definition: UiManager.cpp:62
void Initialise()
Initializes the manager.
Definition: UiManager.cpp:47
UiWidget * GetWidget(const Ogre::String &name)
Retrieves a UI widget by name.
Definition: UiManager.cpp:108
TiXmlNode * GetPrototype(const Ogre::String &name) const
Retrieves a prototype by name.
Definition: UiManager.cpp:100
void ClearBattle() override
Clears all battle UI elements in the manager.
Definition: UiManager.cpp:60
void AddPrototype(const Ogre::String &name, TiXmlNode *prototype)
Adds a prototype to the manager.
Definition: UiManager.cpp:93
void UpdateDebug() override
Updates the elements in the manager with debug information.
Definition: UiManager.cpp:56
UiManager()
Constructor.
Definition: UiManager.cpp:37
void AddWidget(UiWidget *widget)
Adds a UI widget to the manager.
Definition: UiManager.cpp:106
std::vector< UiWidget * > widgets_
List of widgets.
Definition: UiManager.h:202
virtual ~UiManager()
Destructor.
Definition: UiManager.cpp:41
void ClearField() override
Clears all field UI elements in the manager.
Definition: UiManager.cpp:58
void UpdateField() override
Updates the field UI elements in the manager.
Definition: UiManager.cpp:135
void UpdateBattle() override
Updates the battle UI elements in the manager.
Definition: UiManager.cpp:141
Ogre::String String
Definition: TypeDefine.h:37
unsigned char uint8
Definition: scummsys.h:431
A UI prototype.
Definition: UiManager.h:181
TiXmlNode * node
The prototype structure as an XML node.
Definition: UiManager.h:191
Ogre::String name
The prototype node.
Definition: UiManager.h:186
An input event.
Definition: Event.h:84