mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-15 14:09:06 +00:00
Add Lua functions: isPaused(), isInGameMenu(), isInEditor()
This commit is contained in:
parent
f835f6c83c
commit
ad10db82ad
1 changed files with 18 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue