Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-02-18, 11:30 AM   #1
selfaddicted
A Defias Bandit
Join Date: Aug 2018
Posts: 2
Model Frame does not show again after hiding

As the title says, I could make a playermodel frame which shows a spell animation like Weakauras does when logged in. But after I hide it, I can't show it again until reloadui

Code:
local function CreateAniFrame(parent, path, size, pos, zxy)

  local model = CreateFrame("Playermodel", nil, parent)
  model:SetSize(unpack(size))
  model:SetPoint("CENTER", parent, "CENTER", pos[1], pos[2])
  model:SetModel(path)
  model:SetPosition(unpack(zxy))

end
FYI, it's not a unit portrait or something, it's about spell effect animation. Could anyone give me some clues or some references to fix the issue?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Model Frame does not show again after hiding


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off