1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-12-25 22:25:46 +00:00

Add Lua functions: isPaused(), isInGameMenu(), isInEditor()

This commit is contained in:
fgenesis 2013-04-22 02:40:29 +02:00
parent f835f6c83c
commit ad10db82ad

View file

@ -3701,6 +3701,21 @@ luaFunc(unpause)
luaReturnNil();
}
luaFunc(isPaused)
{
luaReturnBool(dsq->game->isPaused());
}
luaFunc(isInGameMenu)
{
luaReturnBool(dsq->game->isInGameMenu());
}
luaFunc(isInEditor)
{
luaReturnBool(dsq->game->isSceneEditorActive());
}
luaFunc(clearControlHint)
{
dsq->game->clearControlHint();
@ -7595,6 +7610,9 @@ static const struct {
luaRegister(pause),
luaRegister(unpause),
luaRegister(isPaused),
luaRegister(isInGameMenu),
luaRegister(isInEditor),
luaRegister(vector_normalize),