40 lines
1.3 KiB
C++
40 lines
1.3 KiB
C++
#include "MapEditor.h"
|
|
#include "Button.h"
|
|
using namespace MiniEngine;
|
|
using namespace std;
|
|
|
|
struct SizePack
|
|
{
|
|
int line,col;
|
|
};
|
|
|
|
//virtual
|
|
void MapEditorScene::start(void* ptr)
|
|
{
|
|
SizePack* ppack=(SizePack*)global.frame->run(new MapEditorMapSizeConfigureScene,new SizePack);
|
|
}
|
|
|
|
class MapEditorMapSizeConfigureSceneReturnButton : public StaticButtonBase
|
|
{
|
|
public:
|
|
|
|
};
|
|
|
|
//virtual
|
|
void MapEditorMapSizeConfigureScene::start(void* ptr)
|
|
{
|
|
Rect winSize=global.wnd->getSize();
|
|
|
|
Texture text_a1 = global.font->renderUTF8(*(global.rnd),global.strEngine->getString("INPUT_SIZE"), RGBA(255, 255, 255, 255));
|
|
Texture text_a2 = global.font->renderUTF8(*(global.rnd),global.strEngine->getString("BACK"), RGBA(255, 255, 255, 255));
|
|
Texture text_a3 = global.font->renderUTF8(*(global.rnd),global.strEngine->getString("CREATE_MAP"), RGBA(255, 255, 255, 255));
|
|
Texture text_b1 = global.font->renderUTF8(*(global.rnd),global.strEngine->getString("W:"), RGBA(255, 255, 255, 255));
|
|
Texture text_b2 = global.font->renderUTF8(*(global.rnd),global.strEngine->getString("H:"), RGBA(255, 255, 255, 255));
|
|
Texture text_c1 = global.font->renderUTF8(*(global.rnd),global.strEngine->getString("999"), RGBA(255, 255, 255, 255));
|
|
|
|
Looper lp;
|
|
LooperAdapter lpa(lp);
|
|
ButtonAdapter btna(lpa);
|
|
|
|
}
|