1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-25 16:43:33 +00:00

Render global setting groups on renderlua

This commit is contained in:
uramer 2024-02-19 19:39:45 +01:00
parent 586706ffe0
commit cfa6dc076b

View File

@ -407,10 +407,7 @@ local function updateGroups(global)
end
end))
end
local updatePlayerGroups = function() updateGroups(false) end
updatePlayerGroups()
local updateGlobalGroups = function() updateGroups(true) end
local menuGroups = {}
@ -472,6 +469,11 @@ local function registerPage(options)
ui.registerSettingsPage(pageOptions[page.key])
end
updatePlayerGroups()
if menu.getState() == menu.STATE.Running then -- handle reloadlua correctly
updateGlobalGroups()
end
return {
interfaceName = 'Settings',
interface = {