void SimulatorWin::relaunch() { _project.setWindowOffset(Vec2(getPositionX(), getPositionY())); openNewPlayerWithProjectConfig(_project); quit(); }
void PlayerWin::relaunch() { int x = 0; int y = 0; GLViewImpl* view = dynamic_cast<GLViewImpl*>(Director::getInstance()->getOpenGLView()); glfwGetWindowPos(view->getWindow(), &x, &y); _project.setWindowOffset(Vec2(x, y)); openNewPlayerWithProjectConfig(_project); quit(); }
void SimulatorWin::openProjectWithProjectConfig(const ProjectConfig &config) { openNewPlayerWithProjectConfig(config); quit(); }
void SimulatorWin::openNewPlayer() { openNewPlayerWithProjectConfig(_project); }