this seems mind blowing but i assume i need to create the window and the control 1st with the image and then animate it? Heres kinda what im working with so far.. no errors but no animation either just image. I feel im close but missing something.
Code:
function Initialize()
hourglass = WINDOW_MANAGER:CreateTopLevelWindow("TeleportHourglass")
hourglass:SetDimensions(128,128)
hourglass:SetAnchor(CENTER, GuiRoot, TOP, 0, 260)
hourglass:SetHidden(true)
image = WINDOW_MANAGER:CreateControl("TeleportHourglassImage", hourglass, CT_TEXTURE)
image:SetAnchorFill(hourglass)
TeleportHourglassImage:SetTexture("/esoui/art/screens_app/load_ourosboros.dds")
hourglass.animation = ANIMATION_MANAGER:CreateTimelineFromVirtual("LoadIconAnimation", GetControl(image, "/esoui/art/screens_app/load_ourosboros.dds"))
end
function to turn it on()
hourglass:SetHidden(false)
hourglass.animation:PlayForward()
end
function to turn it off()
hourglass:SetHidden(true)
hourglass.animation:Stop()
end