Beispiel #1
0
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();
}
Beispiel #3
0
void SimulatorWin::openProjectWithProjectConfig(const ProjectConfig &config)
{
    openNewPlayerWithProjectConfig(config);
    quit();
}
Beispiel #4
0
void SimulatorWin::openNewPlayer()
{
    openNewPlayerWithProjectConfig(_project);
}