local window = BoxWindow -- name of the XML TopLevelControl element
local SM = SCENE_MANAGER
-- just toggles the window
-- UI work
local fragment = ZO_SimpleSceneFragment:New(window)
local scene = ZO_Scene:New(UAN.name, SM)
The ToogleBox() function is bound to a key and can be closed via a $(parent)BtnClose Button inside the box or via a keybind.
Currently when I toggle the box, everything from the UI will hide except my box and my mouse. Pressing
the key or closing the box via the BtnClose button will hide my mouse and get my UI back.
Toggle the box so that the box is acting like a overlay to my current base UI. (without a mouse icon)
By enabling the "mouse icon drag mode" (I don't know the name of this mode ) I should be able to close the box via the button or the keybind. After closing it, the mouse should disappear and my base UI should be brought to the top again.
I hope this is kind of understandable.
Thanks in advance.