uramer
b988db9bda
Merge branch 'master' into menuscripts
2024-02-01 20:11:02 +01:00
uramer
76915ce6e9
Queue auto started scripts until next update
2024-01-30 18:58:34 +01:00
Mads Buvik Sandvei
36e1bdab10
Use a smaller integer type instead of dealing with casting issues.
2024-01-28 14:48:49 +01:00
uramer
9cce2e39ba
Merge branch 'master' into menuscripts
2024-01-27 15:45:31 +01:00
Mads Buvik Sandvei
a94add741e
Lua: Animation bindings
2024-01-26 21:39:33 +00:00
uramer
dd09c9b362
Don't save global storage if global scripts didn't run
2024-01-13 00:42:55 +01:00
uramer
4ed2af7666
Merge branch 'master' into menuscripts
2024-01-10 23:21:42 +01:00
uramer
1afc7ecd58
Test Lua widgets for text inputs correctly
2024-01-10 23:13:27 +01:00
uramer
79deb5f559
Remove settings pages in Lua
2024-01-10 23:13:27 +01:00
uramer
82a125fb6a
Replace onUpdate with onFrame for menu scripts
2024-01-10 23:13:27 +01:00
uramer
2107bbc01d
Reuse input engine handlers in menu scripts
2024-01-10 23:13:23 +01:00
uramer
962ecc4329
Allow menu scripts to read global sections while a game is loaded
2024-01-10 22:28:57 +01:00
uramer
a6e2ceebb8
Don't clear menu UI on game load
2024-01-07 23:29:20 +01:00
uramer
d1268acf95
Merge branch 'master' into menuscripts
2024-01-07 23:15:21 +01:00
elsid
067957f57b
Use "" to quote apps/openmw includes and remove unused
...
Using "" makes clangd to find unused includes which makes it quite easy to
remove them.
2024-01-07 17:57:11 +01:00
Evil Eye
e63933efa6
Use NAM9 for stack count
2023-12-31 17:12:46 +00:00
uramer
0e2e386dc9
Lua actions take 3
2023-12-29 18:56:59 +00:00
elsid
1a39ef07c8
Fix build with Lua 5.4.6
...
/home/elsid/dev/openmw/apps/openmw/mwlua/luamanagerimp.cpp: In member function ‘void MWLua::LuaManager::update()’:
/home/elsid/dev/openmw/apps/openmw/mwlua/luamanagerimp.cpp:127:19: error: use of deleted function ‘Settings::SettingValue<T>::SettingValue(const Settings::SettingValue<T>&) [with T = int]’
127 | lua_gc(mLua.sol(), LUA_GCSTEP, Settings::lua().mGcStepsPerFrame);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/elsid/dev/openmw/components/settings/categories/camera.hpp:5,
from /home/elsid/dev/openmw/components/settings/values.hpp:4,
from /home/elsid/dev/openmw/apps/openmw/mwlua/luamanagerimp.cpp:16:
/home/elsid/dev/openmw/components/settings/settingvalue.hpp:355:9: note: declared here
355 | SettingValue(const SettingValue& other) = delete;
| ^~~~~~~~~~~~
2023-12-08 00:46:15 +01:00
Evil Eye
efb819b9d2
Rename to Died
2023-12-04 17:50:18 +01:00
Evil Eye
ad68b7e18b
Turn onDeath the engine handler into OnDeath the regular event
2023-12-04 17:32:38 +01:00
Petr Mikheev
a60726ce35
Fix #7674
2023-11-05 21:32:18 +01:00
Petr Mikheev
dafe858cb4
Add types.Player.sendMenuEvent
2023-10-31 11:05:00 +01:00
Petr Mikheev
1dd7a15255
Draft: add new type of Lua scripts - menu scripts
2023-10-31 10:29:24 +01:00
Petr Mikheev
4d66679204
Queue Lua handler uiModeChanged
2023-10-21 13:04:02 +02:00
Petr Mikheev
72b8ff82ff
!3362 with safe reloadlua
2023-09-15 19:10:33 +02:00
Petr Mikheev
892f6d1aee
Make LiveCellRef to remove itself from PtrRegistry in destructor (to prevent potential use after free); Update ContainerStore::mPtr after copying container/actor.
2023-09-09 21:54:13 +02:00
Petr Mikheev
42f2ece8b3
Fix bug: UI modes that are added not through Lua don't show windows that were hidden by Lua in other mode.
2023-09-07 02:16:22 +02:00
Petr Mikheev
f1bcf64afb
Dehardcode input.ACTION.Inventory, input.ACTION.Journal, input.ACTION.QuickKeysMenu
2023-08-20 17:49:56 +02:00
Petr Mikheev
87eacf774a
Control GUI modes from Lua
2023-08-20 17:49:56 +02:00
psi29a
e21e3a0d46
Merge branch 'time' into 'master'
...
Pause/resume the game in Lua scripts
See merge request OpenMW/openmw!3317
2023-08-18 08:22:04 +00:00
Petr Mikheev
efe2dfc056
Minor fix of error message in LuaManager::DealyedAction::apply
2023-08-12 11:08:19 +02:00
Petr Mikheev
87912065fd
Rename MWLua::WorldView -> MWLua::ObjectLists
2023-08-08 22:57:28 +02:00
Petr Mikheev
6c4e1f4e8f
Lua commands world.pause / world.unpause
2023-08-08 22:57:28 +02:00
Petr Mikheev
91c7585c8b
Move some time-related function from World and WorldView to DateTimeManager
2023-08-08 22:57:28 +02:00
psi29a
0c5faf8fbb
Merge branch 'save_apply_lua_actions' into 'master'
...
Apply delayed Lua actions before making a save
See merge request OpenMW/openmw!3294
2023-08-06 16:13:33 +00:00
Petr Mikheev
f344c26465
Apply delayed Lua actions before making a save
2023-07-30 02:50:22 +02:00
elsid
c9c32d9a0d
Cleanup includes
2023-07-29 00:16:43 +02:00
Petr Mikheev
4016e8b383
Lua engine handler onTeleported
2023-07-19 10:42:58 +02:00
Petr Mikheev
086fdb1f37
Run onNewGame handler in LuaManager::synchronizedUpdate
2023-07-19 10:07:30 +02:00
Petr Mikheev
b583aad14a
Fix bug in LuaManager::reloadAllScripts
2023-07-17 02:21:46 +02:00
psi29a
429e911da1
Merge branch 'lua_journal' into 'master'
...
Add Lua bindings for journal (second iteration of !3133 )
See merge request OpenMW/openmw!3189
2023-07-11 07:37:13 +00:00
Tobias Tribble
c792582376
Add Lua bindings for journal
2023-07-08 13:37:39 +02:00
elsid
f6fce5ee15
Cleanup includes
2023-07-08 11:28:56 +02:00
psi29a
6601b0cb15
Merge branch 'fastandloose' into 'master'
...
Drop support for --fs-strict
Closes #7394
See merge request OpenMW/openmw!3093
2023-07-02 19:24:14 +00:00
Petr Mikheev
8ca7770d56
Fix #7439 : world.players and nearby.players returns "0_-1" instead of "1_-1"
2023-06-27 23:56:45 +02:00
Petr Mikheev
9d15629ae2
[Lua] Add nearby.players
and world.players
2023-06-17 19:56:25 +02:00
Petr Mikheev
790ddcf32e
Fix #7420 (Local scripts on items cause the game to crash when activated)
2023-06-12 21:25:48 +02:00
Evil Eye
eeda48ec50
Drop support for --fs-strict
2023-06-08 21:10:09 +02:00
elsid
9012207e32
Make WorldModel a front-end for PtrRegistry
2023-05-31 21:44:27 +02:00
elsid
ce91784085
Move Ptr registry into a separate type
...
There is no dependency on the rest of the WorldModel state.
2023-05-28 13:04:17 +02:00