mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-14 10:30:39 +00:00
Restore & correct collision radius rendering. Enabled toggling the debug console on Mac.
Collision rendering is now mapped to Ctrl+Shift+Return instead of capslock. Also fixed one float->int truncation in script interface, and removed useless debug message when particle effect "" was supposed to be spawned (but does never exist).
This commit is contained in:
parent
5cef84ad9d
commit
1350876b3d
3 changed files with 13 additions and 11 deletions
|
@ -1981,7 +1981,8 @@ void DSQ::setInputMode(InputMode mode)
|
|||
|
||||
void DSQ::toggleRenderCollisionShapes()
|
||||
{
|
||||
RenderObject::renderCollisionShape = !RenderObject::renderCollisionShape;
|
||||
if (core->getCtrlState() && core->getShiftState())
|
||||
RenderObject::renderCollisionShape = !RenderObject::renderCollisionShape;
|
||||
}
|
||||
|
||||
void DSQ::takeScreenshot()
|
||||
|
@ -4137,13 +4138,11 @@ void DSQ::bindInput()
|
|||
#endif
|
||||
if (isDeveloperKeys())
|
||||
{
|
||||
#if defined(BBGE_BUILD_WINDOWS) || defined(BBGE_BUILD_UNIX)
|
||||
addAction(MakeFunctionEvent(DSQ, instantQuit), KEY_Q, 1);
|
||||
#ifdef AQUARIA_BUILD_CONSOLE
|
||||
addAction(MakeFunctionEvent(DSQ, toggleConsole), KEY_TILDE, 0);
|
||||
#endif
|
||||
#endif
|
||||
addAction(MakeFunctionEvent(DSQ, toggleRenderCollisionShapes), KEY_CAPSLOCK, 0);
|
||||
addAction(MakeFunctionEvent(DSQ, instantQuit), KEY_Q, 1);
|
||||
addAction(MakeFunctionEvent(DSQ, toggleRenderCollisionShapes), KEY_RETURN, 0);
|
||||
}
|
||||
addAction(MakeFunctionEvent(DSQ, debugMenu), KEY_BACKSPACE, 0);
|
||||
#if BBGE_BUILD_SDL
|
||||
|
@ -4879,6 +4878,8 @@ std::string DSQ::getSaveDirectory()
|
|||
|
||||
ParticleEffect *DSQ::spawnParticleEffect(const std::string &name, Vector position, float rotz, float t, int layer, float follow)
|
||||
{
|
||||
if (name.empty())
|
||||
return NULL;
|
||||
if (t!=0)
|
||||
{
|
||||
PECue p(name, position, rotz, t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue