Add tests for event handling, use NazaraUnitTests [EventHandler]

This commit is contained in:
Gawaboumga
2016-10-12 21:08:02 +02:00
parent f19100d179
commit d4e569c09e
26 changed files with 1165 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#ifndef __TEXT_HPP__
#define __TEXT_HPP__
#include <Nazara/Graphics/TextSprite.hpp>
#include <NDK/Entity.hpp>
#include "StateContext.hpp"
class Text
{
public:
Text(StateContext& context);
~Text();
void SetContent(const Nz::String& string, unsigned int size = 72);
void SetVisible(bool shouldBeVisible = true);
private:
StateContext& m_context;
Ndk::EntityHandle m_text;
Nz::TextSpriteRef m_textSprite;
};
#endif // __TEXT_HPP__