47 lines
1.0 KiB
C++
47 lines
1.0 KiB
C++
#ifndef GUI_MAINMENU_H__
|
|
#define GUI_MAINMENU_H__
|
|
|
|
#include "GUI/TextureFrame.h"
|
|
#include "Game/MainMenuMain.h"
|
|
#include "Game/MainMenuOptions.h"
|
|
|
|
namespace dd
|
|
{
|
|
namespace GUI
|
|
{
|
|
|
|
class MainMenu : public TextureFrame
|
|
{
|
|
public:
|
|
MainMenu(Frame* parent, std::string name)
|
|
: TextureFrame(parent, name)
|
|
{
|
|
SetTexture("Textures/GUI/Menu/Background.png");
|
|
Width = 675;
|
|
Height = 1080;
|
|
|
|
m_LeftBanner = new GUI::TextureFrame(this, "MainMenuLeftBanner");
|
|
m_LeftBanner->SetTexture("Textures/GUI/Menu/Left.png");
|
|
m_LeftBanner->Width = 231;
|
|
m_LeftBanner->Height = 1080;
|
|
|
|
m_MainMenuMain = new GUI::MainMenuMain(this, "MainMenuMain");
|
|
m_MainMenuMain->SetLeft(m_LeftBanner->Right());
|
|
m_MainMenuMain->SetTop(60);
|
|
|
|
m_MainMenuOptions = new GUI::MainMenuOptions(this, "MainMenuOptions");
|
|
m_MainMenuOptions->SetLeft(m_LeftBanner->Right());
|
|
m_MainMenuOptions->SetTop(m_MainMenuMain->Bottom());
|
|
}
|
|
|
|
private:
|
|
TextureFrame* m_LeftBanner;
|
|
MainMenuMain* m_MainMenuMain;
|
|
MainMenuOptions* m_MainMenuOptions;
|
|
};
|
|
|
|
}
|
|
}
|
|
#endif
|
|
|