mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-18 00:16:39 +00:00
isWindowVisible must handle replaced windows' visibility
This commit is contained in:
parent
9fe420e562
commit
b1f32c8cee
1 changed files with 8 additions and 1 deletions
|
@ -155,6 +155,13 @@ local function onUiModeChangedEvent(data)
|
|||
end
|
||||
end
|
||||
|
||||
local function isWindowVisible(windowName)
|
||||
if replacedWindows[windowName] then
|
||||
return replacedWindows[windowName].visible
|
||||
end
|
||||
return ui._isWindowVisible(windowName)
|
||||
end
|
||||
|
||||
return {
|
||||
interfaceName = 'UI',
|
||||
---
|
||||
|
@ -245,7 +252,7 @@ return {
|
|||
-- @function [parent=#UI] isWindowVisible
|
||||
-- @param #string windowName
|
||||
-- @return #boolean
|
||||
isWindowVisible = ui._isWindowVisible,
|
||||
isWindowVisible = isWindowVisible,
|
||||
|
||||
-- TODO
|
||||
-- registerHudElement = function(name, showFn, hideFn) end,
|
||||
|
|
Loading…
Reference in a new issue