5 Commits

Author SHA1 Message Date
Trihedraf 844cca4cba Fully expose UiFlags enum class to lua table 2026-01-12 11:14:34 +00:00
Trihedraf b540d0911e Extract lua functions from floatingnumbers to system and render modules (#8416) 2026-01-11 13:37:18 +00:00
Gleb Mazovetskiy 17e6da40f8 Lua: Improve function/property handling
1. Follows advice from
   https://sol2.readthedocs.io/en/latest/functions.html to use
   `set_function` when binding functions.
2. Adds autocomplete support for userdata methods.
3. Simplifies property bindings and improves string handling.
2025-07-20 17:46:35 +02:00
Gleb Mazovetskiy 4b38771263 Lua render: add screen_width/height() 2025-01-10 10:51:47 +00:00
Gleb Mazovetskiy de6eac137b Split up lua bindings a bit
```lua
local render = devilutionx.render

local function drawGreet ()
  render.string("Hello from " .. _VERSION, 10, 40)
end
Events.OnGameDrawComplete.Add(drawGreet)
```
2023-10-26 03:48:56 +01:00