Main menu finished

This commit is contained in:
2014-06-04 16:59:30 +02:00
parent 7b90e54899
commit 5f1feffe0d
21 changed files with 506 additions and 45 deletions
+41
View File
@@ -0,0 +1,41 @@
#ifndef GUI_GameOverFrame_h__
#define GUI_GameOverFrame_h__
#include "GUI/Frame.h"
#include "GUI/HealthOverlay.h"
namespace GUI
{
class GameOverFrame : public Frame
{
public:
GameOverFrame(Frame* parent, std::string name)
: Frame(parent, name)
{
//Hide();
m_Background = new TextureFrame(this, "Background");
m_Background->SetTexture("Textures/GUI/black.png");
m_Background->SetColor(glm::vec4(1.f, 1.f, 1.f, 0.6f));
m_Text = new TextureFrame(this, "Message");
m_Text->SetTexture("Textures/GUI/GloriousVictory.png");
}
void Show(bool victory)
{
if (victory)
m_Text->SetTexture("Textures/GUI/GloriousVictory.png");
else
m_Text->SetTexture("Textures/GUI/ShamefulDefeat.png");
Frame::Show();
}
protected:
bool m_Victory;
TextureFrame* m_Background;
TextureFrame* m_Text;
};
}
#endif // GUI_GameOverFrame_h__