1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 13:23:53 +00:00
Commit graph

149 commits

Author SHA1 Message Date
uramer
586706ffe0 Handle group resets gracefully 2024-02-19 19:35:41 +01:00
uramer
ef730c4395 Clean up global setting groups, don't try to destroy setting pages before they were rendered 2024-02-19 18:26:58 +01:00
psi29a
ec1cf46ec7 Merge branch 'lua_keybinds' into 'master'
Lua Implement mouse input engine handlers, improve inputBinding renderer

See merge request OpenMW/openmw!3855
2024-02-14 08:30:38 +00:00
psi29a
a060a7297c Merge branch 'dehardcode-skillprogression' into 'master'
Lua: Dehardcode skill and level progression

See merge request OpenMW/openmw!3779
2024-02-12 14:10:51 +00:00
uramer
63a1bbb88d Enable Lua mouse engine handlers while in UI 2024-02-11 23:49:26 +01:00
uramer
f4fed4ca5f Simplify inputBinding renderer, allow binding controller buttons 2024-02-11 16:27:54 +01:00
uramer
891f3583fe Only reset settings when there is no game, not on game end / player death 2024-02-04 11:12:12 +01:00
uramer
72136e7e92 Remove debug log 2024-02-04 11:12:12 +01:00
Mads Buvik Sandvei
3882ba15fb Rework documentation of skill used/level up handlers. 2024-02-02 20:10:25 +01:00
Mads Buvik Sandvei
4f8476efd4 Comments 2024-01-31 23:01:16 +01:00
Mads Buvik Sandvei
9f15f3b431 Add engine handler for skill levelup, to dehardcode the book/trainer case. 2024-01-30 21:25:39 +01:00
Mads Buvik Sandvei
2cfa819ccc Use interface in _onSkillUse engine handler. 2024-01-30 21:25:39 +01:00
Mads Buvik Sandvei
e1a22242d9 skillGain as a table 2024-01-30 21:25:38 +01:00
Mads Buvik Sandvei
011d9d6493 Dehardcode skill and level progression 2024-01-30 21:25:36 +01:00
uramer
2008f35e57 Don't reset player setting groups right after game load, refactor update group functions 2024-01-27 19:09:26 +01:00
uramer
9cce2e39ba Merge branch 'master' into menuscripts 2024-01-27 15:45:31 +01:00
uramer
d9f8c5c3e8 Fix menu setting page key set 2024-01-27 15:03:34 +01:00
uramer
ad5d594c28 Let menu scripts clean up before loading a game 2024-01-27 14:47:22 +01:00
Mads Buvik Sandvei
a94add741e Lua: Animation bindings 2024-01-26 21:39:33 +00:00
uramer
94d782c4be Fix doc typos and add menu package to necessary lists 2024-01-14 17:47:23 +01:00
uramer
7cc0eae461 Fix Menu Lua settings reset between states 2024-01-13 00:46:24 +01:00
uramer
bd54292ff4 Update I.Settings.registerGroup documentation 2024-01-10 23:13:27 +01:00
uramer
8cc47f5363 Only allow menu scripts to register permanent groups 2024-01-10 23:13:27 +01:00
uramer
c2b8e318cf Move inputBinding renderer to menu context 2024-01-10 23:13:27 +01:00
uramer
79deb5f559 Remove settings pages in Lua 2024-01-10 23:13:27 +01:00
uramer
c6a27d06b0 Move controls settings to menu context 2024-01-10 23:13:27 +01:00
uramer
5b97a93169 Move camera settings to a menu script 2024-01-10 23:13:27 +01:00
uramer
6917384fc1 Don't reset menu-registered setting groups 2024-01-10 23:13:27 +01:00
uramer
d1d430b431 Initial Menu context Settings implementation 2024-01-10 22:29:03 +01:00
uramer
9b54f479e8 Move settings rendering to Menu scripts 2024-01-08 21:58:11 +01:00
uramer
d1268acf95 Merge branch 'master' into menuscripts 2024-01-07 23:15:21 +01:00
uramer
2c45d316fb Missing newlines in MWUI documentation 2024-01-05 11:21:12 +00:00
uramer
e734191b56 Add clarifying comment 2024-01-02 14:40:03 +01:00
uramer
9d1a3f243d Use the same controls check for startUse and processAttacking 2024-01-02 14:31:13 +01:00
uramer
5f2cbf810d Check if controls are on for Use action 2024-01-02 13:38:55 +01:00
Alexei Kotov
91a01ae1e2 Remove duplicate ToggleWeapon trigger handler registration 2023-12-30 03:23:27 +03:00
uramer
0e2e386dc9 Lua actions take 3 2023-12-29 18:56:59 +00:00
Evil Eye
047db00980 Merge branch 'useitem_force_fix' into 'master'
Allow not passing force in ItemUsage events

See merge request OpenMW/openmw!3609
2023-11-29 15:42:35 +00:00
Zackhasacat
67421d67e2 Allow not passing force in ItemUsage events 2023-11-29 15:42:34 +00:00
uramer
435e9731df Render invalid 'select' setting renderer values instead of silent failure 2023-11-11 18:09:00 +01:00
Alexei Kotov
d851eaa199 Merge branch 'fix_lua_sneak' into 'master'
Remember sneaking when game is saved and loaded(#7664)

See merge request OpenMW/openmw!3546
2023-11-03 20:36:15 +00:00
Zackhasacat
8d0d9a49c6 Remember sneaking when game is saved and loaded(#7664) 2023-11-03 20:36:14 +00:00
uramer
abae5f031d Fix docs type 2023-11-02 16:05:52 +00:00
Petr Mikheev
889ddc10d6 Enable openmw.input in menu scripts 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
Zackhasacat
ac9cfc782a Add functions to lua ui library to toggle HUD visibility, and check current status. 2023-10-25 12:34:56 +00:00
Petr Mikheev
15306c7d49 [Lua] Add CONTROL_SWITCH functions to types.Player and deprecate them in openmw.input 2023-10-10 01:15:09 +02:00
psi29a
2c81220cf7 Merge branch 'book' into 'master'
Reading ESM4 books

See merge request OpenMW/openmw!3471
2023-10-05 17:24:50 +00:00
Petr Mikheev
54cc1f25a2 Mention in Lua documentation that default tag is an empty string 2023-10-04 10:36:54 +02:00
Petr Mikheev
fcc7b9bb9e Support tags in I.Camera.disable*, I.Camera.enable* in the same way as in world.pause; Update I.Camera docs. 2023-10-04 10:20:56 +02:00
Petr Mikheev
6161953106 Allow reading ESM4 books 2023-10-03 10:55:12 +02:00
PharisMods
01aa67c792 Use thick border textures for thick border UI templates 2023-10-01 00:54:24 +00:00
Petr Mikheev
fb8ccf52d8 Add missing argument force in UseItem 2023-09-11 16:21:34 +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
psi29a
938c487684
Merge branch 'time' into 'master'
[Lua] Ability to unpause the game when UI is opened.

See merge request OpenMW/openmw!3398
2023-09-06 08:16:49 +00:00
psi29a
5faf56950b
Merge branch 'lua_files' into 'master'
Implement Lua API for VFS

Closes #6864

See merge request OpenMW/openmw!3373
2023-09-03 17:06:14 +00:00
Andrei Kortunov
66bf7be373 Preload new packages to console 2023-09-03 08:24:51 +04:00
Petr Mikheev
65cd518b44 Update camera logic related to paused game / opened UI 2023-09-03 04:21:18 +02:00
Petr Mikheev
23a7661d0b Control UI pause from Lua 2023-09-03 03:41:13 +02:00
Petr Mikheev
b4c8b8308f Lock actiovation when the game is paused; Lock movement controls when UI is opened. 2023-09-03 02:43:55 +02:00
Petr Mikheev
ea8692a534 Add usehandlers.lua (same approach as activationhandlers.lua) 2023-08-30 22:48:51 +02:00
Petr Mikheev
c5ba289bc7 Handle UI modes open/close sounds in Lua 2023-08-20 17:49:56 +02:00
Petr Mikheev
36d22cff1c Improve GUI mode validation 2023-08-20 17:49:56 +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
Petr Mikheev
b34930d3f2 Add missing 'local' in playercontrols.lua 2023-08-09 10:18:26 +02:00
psi29a
3032b340a2 Merge branch 'teleporting' into 'master'
A few Lua changes related to teleporting

See merge request OpenMW/openmw!3246
2023-07-27 09:32:28 +00:00
Petr Mikheev
2c212b18e4 Remove World::activate since all activation now goes trough LuaManager 2023-07-22 17:22:43 +02:00
Petr Mikheev
f2edf05a55 Move camera update after teleporting from worldimp to camera.lua 2023-07-19 10:42:58 +02:00
uramer
bf7b39f214 Fix typos in Lua documentation 2023-07-08 18:40:33 +02:00
psi29a
68415a952e Merge branch 'lua_quat' into 'master'
Breaking change in Lua API: change obj.rotation from Euler angles to Quaternion

See merge request OpenMW/openmw!3123
2023-06-20 09:59:06 +00:00
Petr Mikheev
42f1cf9a07 Simplify cellhandlers.lua 2023-06-17 20:11:35 +02:00
Evil Eye
f02dd0ef03 Implement onNewExterior to spawn fish in generated exteriors 2023-06-13 17:04:22 +02:00
Petr Mikheev
3b43cc2aea Lua: change obj.rotation from Euler angles to Quaternion 2023-06-12 00:16:42 +02:00
Petr Mikheev
773669e69b Add Lua script to handler ESM4 doors with Flag_AutomaticDoor 2023-06-07 20:57:48 +02:00
Petr Mikheev
067df2d07e Rename some functions in Lua API from aaa to getAaa (for consistency with setAaa) 2023-05-08 00:49:06 +02:00
Petr Mikheev
480951207c Activation handler for ESM4 Door 2023-04-20 13:42:17 +02:00
Petr Mikheev
61d207bd78 Allow Lua scripts to extend or override standard activation mechanics 2023-04-16 23:50:27 +02:00
Petr Mikheev
3c5a9f55c5 Expose the argument cancelOther of AiSequence::stack to Lua 2023-03-27 02:28:45 +02:00
Krzysztof Antoniak
ccdd381f96 Minor fixes to Lua documentation 2023-02-28 22:04:53 -08:00
Alexei Kotov
2b56ab327c Only attempt attacks in an attack stance 2023-02-19 02:59:33 +03:00
Petr Mikheev
0c3237ad78 Fix #7223 2023-02-18 16:24:10 +01:00
uramer
c17eedd348 Documentation and API fixes (part of !2529) 2023-01-30 10:13:26 +00:00
Petr Mikheev
b9d38ae8d8 Fix #7156 "Autorun is broken" 2023-01-13 23:26:09 +01:00
Petr Mikheev
1869aeae5c Move some of player controls logic from C++ to Lua 2022-12-28 22:04:19 +01:00
uramer
1789160057 Clear storage of setting groups on reloadlua 2022-11-06 19:36:58 +01:00
Petr Mikheev
589d7e821d Fix Lua settings UI not working after a save (#7005) 2022-11-03 22:13:39 +01:00
Petr Mikheev
c1344c4765 Minor fix in move360.lua. Scrolling shouldn't toggle view mode when TAB is pressed. 2022-07-09 22:27:23 +02:00
glassmancody.info
05fedafd37 fixed mouse event for padded box 2022-07-09 09:43:37 -07:00
Petr Mikheev
466fc559f4 Fix move360.lua switching to 3rd person view when it shouldn't 2022-06-30 11:25:36 +02:00
Petr Mikheev
8123e41a75 Fix #6824 2022-06-21 21:11:15 +02:00
Alexei Kotov
54896e4883 Disable all the non-vanilla Lua camera settings by default 2022-06-13 18:23:46 +03:00
Petr Mikheev
5f0a7c2b16 Fix jumping when using move360 with a controller 2022-06-12 00:09:13 +02:00
Petr Mikheev
1ca0a3a555 Addition camera features: move360, pov_auto_switch, slow_view_change 2022-06-12 00:09:13 +02:00
Petr Mikheev
3fb470dcce Increase the size of the settings menu; reduce the size of Lua settings "number" in order to make camera settings look good with the default size of the settings menu. 2022-06-12 00:09:13 +02:00
Petr Mikheev
860d5899c4 Control camera settings in-game 2022-06-12 00:06:39 +02:00
uramer
6d2dcaea50 Lua UI: Enable autoSize for single line text edit 2022-06-11 22:24:20 +02:00
uramer
6c9c832927 Lua UI: Support autosized multiline text 2022-06-06 21:52:55 +00:00
Petr Mikheev
6d5a0542e7 Merge files/builtin_scripts and files/vfs into one dir 2022-05-26 01:47:38 +02:00