One menu scene works, but I need some more UI widgets

Namely, I need a text box widget, which can display text without having to
re-create and destroy the texture every frame.
This commit is contained in:
2015-08-02 04:13:54 +10:00
parent 8838fcd14e
commit f0ab1dfef8
9 changed files with 24 additions and 20 deletions
+4 -6
View File
@@ -21,14 +21,11 @@
*/
#pragma once
//graphics
#include "image.hpp"
#include "button.hpp"
//client
#include "base_scene.hpp"
#include "button.hpp"
#include "image.hpp"
#include "SDL2/SDL_ttf.h"
//std namespace
#include <chrono>
class DisconnectedScreen : public BaseScene {
@@ -55,6 +52,7 @@ protected:
//graphics
Image image;
TTF_Font* font = nullptr;
Button backButton;
//auto return