Originally Posted by Azbandar
I may just have to give up the hiding in menus, this is all greek to me. I've tried every style here and in the attached post. All errors.
Basically, I'm trying to take something like FreeSlots but make it disappear in a menu. I thought it would be simple, my brain can't grasp it though.
|
What errors you get?
Here is sample code:
Lua Code:
--simple window with texture:
local tlw, texture
tlw = WINDOW_MANAGER:CreateTopLevelWindow()
tlw:SetDimensions(100,100)
tlw:SetAnchor(CENTER, GuiRoot, CENTER, 0, 0)
tlw:SetHidden(true)
texture = WINDOW_MANAGER:CreateControl(nil, tlw, CT_TEXTURE)
texture:SetTexture("/esoui/art/icons/poi/poi_groupboss_complete.dds")
texture:SetAnchorFill(tlw)
--create simple fragment
local fragment = ZO_FadeSceneFragment:New(tlw)
--add my fragment to scenes:
local sceneHud = SCENE_MANAGER:GetScene("hud")
local sceneHudUI = SCENE_MANAGER:GetScene("hudui")
sceneHud:AddFragment(fragment)
sceneHudUI:AddFragment(fragment)