mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-15 02:26:33 +00:00
Render openmw.animation inaccessible in menu scripts
This commit is contained in:
parent
093b562f58
commit
360abd9b90
2 changed files with 4 additions and 2 deletions
|
@ -32,7 +32,6 @@ namespace MWLua
|
|||
sol::state_view lua = context.mLua->unsafeState();
|
||||
MWWorld::DateTimeManager* tm = MWBase::Environment::get().getWorld()->getTimeManager();
|
||||
return {
|
||||
{ "openmw.animation", initAnimationPackage(context) },
|
||||
{ "openmw.async",
|
||||
LuaUtil::getAsyncPackageInitializer(
|
||||
lua, [tm] { return tm->getSimulationTime(); }, [tm] { return tm->getGameTime(); }) },
|
||||
|
@ -47,6 +46,7 @@ namespace MWLua
|
|||
initObjectBindingsForGlobalScripts(context);
|
||||
initCellBindingsForGlobalScripts(context);
|
||||
return {
|
||||
{ "openmw.animation", initAnimationPackage(context) },
|
||||
{ "openmw.core", initCorePackage(context) },
|
||||
{ "openmw.types", initTypesPackage(context) },
|
||||
{ "openmw.world", initWorldPackage(context) },
|
||||
|
@ -59,6 +59,7 @@ namespace MWLua
|
|||
initCellBindingsForLocalScripts(context);
|
||||
LocalScripts::initializeSelfPackage(context);
|
||||
return {
|
||||
{ "openmw.animation", initAnimationPackage(context) },
|
||||
{ "openmw.core", initCorePackage(context) },
|
||||
{ "openmw.types", initTypesPackage(context) },
|
||||
{ "openmw.nearby", initNearbyPackage(context) },
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
|:ref:`openmw.ambient <Package openmw.ambient>` | by player and menu | | Controls background sounds for given player. |
|
||||
| | scripts | |
|
||||
+------------------------------------------------------------+--------------------+---------------------------------------------------------------+
|
||||
|:ref:`openmw.animation <Package openmw.animation>` | everywhere | | Animation controls |
|
||||
|:ref:`openmw.animation <Package openmw.animation>` | by global, local, | | Animation controls |
|
||||
| | and player scripts | |
|
||||
+------------------------------------------------------------+--------------------+---------------------------------------------------------------+
|
||||
|:ref:`openmw.async <Package openmw.async>` | everywhere | | Timers and callbacks. |
|
||||
+------------------------------------------------------------+--------------------+---------------------------------------------------------------+
|
||||
|
|
Loading…
Reference in a new issue