2013-08-18 14:16:11 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../GuiComponent.h"
|
|
|
|
#include "ComponentListComponent.h"
|
|
|
|
#include "../MetaData.h"
|
|
|
|
#include "TextComponent.h"
|
|
|
|
#include "../GameData.h"
|
2013-08-23 02:41:40 +00:00
|
|
|
#include "NinePatchComponent.h"
|
2013-08-22 20:29:50 +00:00
|
|
|
#include "ButtonComponent.h"
|
2013-08-18 14:16:11 +00:00
|
|
|
|
|
|
|
class GuiGameEd : public GuiComponent
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GuiGameEd(Window* window, GameData* game, const std::vector<MetaDataDecl>& mdd);
|
|
|
|
virtual ~GuiGameEd();
|
|
|
|
|
|
|
|
private:
|
2013-08-22 20:29:50 +00:00
|
|
|
void save();
|
|
|
|
|
2013-08-18 14:16:11 +00:00
|
|
|
void populateList(const std::vector<MetaDataDecl>& mdd);
|
|
|
|
|
2013-08-23 02:41:40 +00:00
|
|
|
NinePatchComponent mBox;
|
2013-08-18 14:16:11 +00:00
|
|
|
|
|
|
|
ComponentListComponent mList;
|
|
|
|
|
|
|
|
TextComponent mPathDisp;
|
|
|
|
|
2013-08-22 20:29:50 +00:00
|
|
|
std::vector<TextComponent*> mLabels;
|
|
|
|
std::vector<GuiComponent*> mEditors;
|
2013-08-18 14:16:11 +00:00
|
|
|
|
|
|
|
GameData* mGame;
|
2013-08-22 20:29:50 +00:00
|
|
|
|
|
|
|
ButtonComponent mDeleteButton;
|
|
|
|
ButtonComponent mFetchButton;
|
|
|
|
ButtonComponent mSaveButton;
|
2013-08-18 14:16:11 +00:00
|
|
|
};
|