mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-03 06:24:32 +00:00
Little SceneEditor on-sreen text enhancement, regarding (auto-)save
This commit is contained in:
parent
3bdb0d6bc6
commit
5d41c93c5b
3 changed files with 25 additions and 12 deletions
|
@ -2593,12 +2593,15 @@ void SceneEditor::loadScene()
|
|||
particleManager->loadParticleBank(dsq->particleBank1, dsq->particleBank2);
|
||||
Shot::loadShotBank(dsq->shotBank1, dsq->shotBank2);
|
||||
dsq->game->loadEntityTypeList();
|
||||
dsq->loadElementEffects();
|
||||
}
|
||||
|
||||
void SceneEditor::saveScene()
|
||||
{
|
||||
dsq->screenMessage(dsq->game->sceneName + " Saved!");
|
||||
dsq->game->saveScene(dsq->game->sceneName);
|
||||
if(dsq->game->saveScene(dsq->game->sceneName))
|
||||
dsq->screenMessage(dsq->game->sceneName + " Saved!");
|
||||
else
|
||||
dsq->screenMessage(dsq->game->sceneName + " FAILED to save!");
|
||||
}
|
||||
|
||||
void SceneEditor::deleteSelectedElement()
|
||||
|
@ -3482,10 +3485,12 @@ void SceneEditor::update(float dt)
|
|||
autoSaveTimer = 0;
|
||||
std::ostringstream os;
|
||||
os << "auto/AUTO_" << autoSaveFile << "_" << dsq->game->sceneName;
|
||||
std::string m = "Map AutoSaved to " + os.str();
|
||||
dsq->game->saveScene(os.str());
|
||||
dsq->debugLog(m);
|
||||
dsq->screenMessage(m);
|
||||
if(dsq->game->saveScene(os.str()))
|
||||
{
|
||||
std::string m = "Map AutoSaved to " + os.str();
|
||||
dsq->debugLog(m);
|
||||
dsq->screenMessage(m);
|
||||
}
|
||||
|
||||
autoSaveFile++;
|
||||
if (autoSaveFile > vars->autoSaveFiles)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue