Skip to content

Commit

Permalink
remove the unnecessary export layer popup
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Feb 14, 2024
1 parent bf08789 commit b90cca0
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,6 @@ static auto IMPORT_PICK_OPTIONS = file::FilePickOptions {
}
};

class ExportLevelLayer : public Popup<GJGameLevel*> {
protected:
GJGameLevel* m_level;

bool setup(GJGameLevel* level) {
m_noElasticity = true;
return true;
}

public:
static ExportLevelLayer* create(GJGameLevel* level) {
auto ret = new ExportLevelLayer();
if (ret && ret->init(348.f, 230.f, level)) {
ret->autorelease();
return ret;
}
CC_SAFE_DELETE(ret);
return nullptr;
}
};

void promptExportLevel(GJGameLevel* level) {
auto opts = IMPORT_PICK_OPTIONS;
opts.defaultPath = std::string(level->m_levelName) + ".gmd";
Expand Down

0 comments on commit b90cca0

Please sign in to comment.