mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-13 10:00:43 +00:00
Added a blockEditor="1" property to a mod xml.
This commit is contained in:
parent
3f0be8c79e
commit
ea780f2ac9
5 changed files with 29 additions and 14 deletions
|
@ -4047,6 +4047,15 @@ bool DSQ::isDeveloperKeys()
|
|||
return developerKeys;
|
||||
}
|
||||
|
||||
bool DSQ::canOpenEditor() const
|
||||
{
|
||||
#ifdef AQUARIA_BUILD_SCENEEDITOR
|
||||
return dsq->isDeveloperKeys() || (dsq->mod.isActive() && !dsq->mod.isEditorBlocked());
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool DSQ::isQuitFlag()
|
||||
{
|
||||
return watchQuitFlag;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue