mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-15 22:19:07 +00:00
Faster mousewheel zoom for SceneEditor + reload songbank when reloading a map in the editor
This commit is contained in:
parent
1705b091aa
commit
5d74665323
1 changed files with 3 additions and 2 deletions
|
@ -2594,6 +2594,7 @@ void SceneEditor::loadScene()
|
||||||
Shot::loadShotBank(dsq->shotBank1, dsq->shotBank2);
|
Shot::loadShotBank(dsq->shotBank1, dsq->shotBank2);
|
||||||
dsq->game->loadEntityTypeList();
|
dsq->game->loadEntityTypeList();
|
||||||
dsq->loadElementEffects();
|
dsq->loadElementEffects();
|
||||||
|
dsq->continuity.loadSongBank();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SceneEditor::saveScene()
|
void SceneEditor::saveScene()
|
||||||
|
@ -3563,14 +3564,14 @@ void SceneEditor::update(float dt)
|
||||||
if (core->getShiftState() && !core->getCtrlState()) // hackish: to prevent accidental recache()
|
if (core->getShiftState() && !core->getCtrlState()) // hackish: to prevent accidental recache()
|
||||||
nextElement();
|
nextElement();
|
||||||
else
|
else
|
||||||
zoom /= 1.05f;
|
zoom /= 1.12f;
|
||||||
}
|
}
|
||||||
else if (core->mouse.scrollWheelChange > 0)
|
else if (core->mouse.scrollWheelChange > 0)
|
||||||
{
|
{
|
||||||
if (core->getShiftState() && !core->getCtrlState()) // hackish: to prevent accidental entity selection
|
if (core->getShiftState() && !core->getCtrlState()) // hackish: to prevent accidental entity selection
|
||||||
prevElement();
|
prevElement();
|
||||||
else
|
else
|
||||||
zoom *= 1.05f;
|
zoom *= 1.12f;
|
||||||
}
|
}
|
||||||
if (zoom.x < 0.04f)
|
if (zoom.x < 0.04f)
|
||||||
zoom.x = zoom.y = 0.04f;
|
zoom.x = zoom.y = 0.04f;
|
||||||
|
|
Loading…
Reference in a new issue