Skip to content

Commit 321ee6a

Browse files
authored
Update client.lua
1 parent 8685121 commit 321ee6a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

client.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,14 @@ function showDialog(dialog)
230230
ShowMouseCursor(true)
231231
SetInputMode(INPUT_GAMEANDUI)
232232
end
233+
function getCurrent()
234+
if lastOpened ~= -1 then
235+
return lastOpened
236+
end
237+
end
238+
function isVisible()
239+
return getCurrent() ~= nil
240+
end
233241
function applyTheme(theme)
234242
ExecuteWebJS(web, "SetTheme(\""..theme.."\");")
235243
end
@@ -291,3 +299,5 @@ AddFunctionExport("setSelectLabeledOptions", setDialogSelectOptionsWithLabels)
291299
AddFunctionExport("setAutoClose", setDialogAutoclose)
292300
AddFunctionExport("setGlobalTheme", setGlobalTheme)
293301
AddFunctionExport("setDialogTheme", setDialogTheme)
302+
AddFunctionExport("getCurrent", getCurrent)
303+
AddFunctionExport("isVisible", isVisible)

0 commit comments

Comments
 (0)