mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-07 14:50:21 +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();
|
luaReturnNil();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
luaFunc(isPaused)
|
||||||
|
{
|
||||||
|
luaReturnBool(dsq->game->isPaused());
|
||||||
|
}
|
||||||
|
|
||||||
|
luaFunc(isInGameMenu)
|
||||||
|
{
|
||||||
|
luaReturnBool(dsq->game->isInGameMenu());
|
||||||
|
}
|
||||||
|
|
||||||
|
luaFunc(isInEditor)
|
||||||
|
{
|
||||||
|
luaReturnBool(dsq->game->isSceneEditorActive());
|
||||||
|
}
|
||||||
|
|
||||||
luaFunc(clearControlHint)
|
luaFunc(clearControlHint)
|
||||||
{
|
{
|
||||||
dsq->game->clearControlHint();
|
dsq->game->clearControlHint();
|
||||||
|
@ -7595,6 +7610,9 @@ static const struct {
|
||||||
|
|
||||||
luaRegister(pause),
|
luaRegister(pause),
|
||||||
luaRegister(unpause),
|
luaRegister(unpause),
|
||||||
|
luaRegister(isPaused),
|
||||||
|
luaRegister(isInGameMenu),
|
||||||
|
luaRegister(isInEditor),
|
||||||
|
|
||||||
|
|
||||||
luaRegister(vector_normalize),
|
luaRegister(vector_normalize),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue