thanks for looking at this for me!
The adding to the scene works fine which I do in the CreateUI function.
The SetHiddenForReason call feels like exactly what I need. Ive tried to implement it as follows:
Code:
function Ui:ToggleShow()
settings.activeWindow = not settings.activeWindow
local fragment = ZO_SimpleSceneFragment:New(TLC)
fragment:SetHiddenForReason("disabled", settings.activeWindow) -- <<<<< line 76
end
but Im getting the error:
user:/AddOns/myAddon/Ui.lua:76: function expected instead of nil
stack traceback:
|
Ive looked in the docs and I can see the syntax seems to be correct, but it seems to be wanting a function somewhere, but I cant figure out where.. any ideas?