mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-29 05:17:58 +03:00
Control UI pause from Lua
This commit is contained in:
parent
b4c8b8308f
commit
23a7661d0b
9 changed files with 65 additions and 7 deletions
|
@ -42,3 +42,22 @@ and ``arg`` (for example in the mode ``Book`` the argument is the book the playe
|
|||
print('UiModeChanged from', data.oldMode , 'to', data.newMode, '('..tostring(data.arg)..')')
|
||||
end
|
||||
}
|
||||
|
||||
World events
|
||||
------------
|
||||
|
||||
Global events that just call the corresponding function in `openmw.world`.
|
||||
|
||||
.. code-block:: Lua
|
||||
|
||||
-- world.pause(tag)
|
||||
core.sendGlobalEvent('Pause', tag)
|
||||
|
||||
-- world.unpause(tag)
|
||||
core.sendGlobalEvent('Unpause', tag)
|
||||
|
||||
-- world.setGameTimeScale(scale)
|
||||
core.sendGlobalEvent('SetGameTimeScale', scale)
|
||||
|
||||
-- world.setSimulationTimeScale(scale)
|
||||
core.sendGlobalEvent('SetSimulationTimeScale', scale)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue