mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 06:23:53 +00:00
Render global setting groups on renderlua
This commit is contained in:
parent
586706ffe0
commit
cfa6dc076b
1 changed files with 5 additions and 3 deletions
|
@ -407,10 +407,7 @@ local function updateGroups(global)
|
||||||
end
|
end
|
||||||
end))
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
local updatePlayerGroups = function() updateGroups(false) end
|
local updatePlayerGroups = function() updateGroups(false) end
|
||||||
updatePlayerGroups()
|
|
||||||
|
|
||||||
local updateGlobalGroups = function() updateGroups(true) end
|
local updateGlobalGroups = function() updateGroups(true) end
|
||||||
|
|
||||||
local menuGroups = {}
|
local menuGroups = {}
|
||||||
|
@ -472,6 +469,11 @@ local function registerPage(options)
|
||||||
ui.registerSettingsPage(pageOptions[page.key])
|
ui.registerSettingsPage(pageOptions[page.key])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
updatePlayerGroups()
|
||||||
|
if menu.getState() == menu.STATE.Running then -- handle reloadlua correctly
|
||||||
|
updateGlobalGroups()
|
||||||
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
interfaceName = 'Settings',
|
interfaceName = 'Settings',
|
||||||
interface = {
|
interface = {
|
||||||
|
|
Loading…
Reference in a new issue