Skip to content

Commit

Permalink
moved imorph globals into frame
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketho committed Oct 4, 2019
1 parent 42a8425 commit 93e4412
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ClickMorph.lua
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ CM.morphers = {
-- morphers can be unloaded and initialized at any later moment
loaded = function() return IMorphInfo end,
reset = function() -- todo: add reset to naked
Reset()
if iMorphFrame.Reset then
iMorphFrame:Reset()
else
Reset()
end
end,
model = function(_, displayID)
Morph(displayID)
Expand All @@ -132,7 +136,11 @@ CM.morphers = {
SetItem(slotID, itemID)
end,
itemset = function(itemSetID) -- handled in iMorph Lua
SetItemSet(itemSetID)
if iMorphFrame.SetItemSet then
iMorphFrame:SetItemSet(itemSetID)
else
SetItemSet(itemSetID)
end
end,
--SetEnchant(slotId, enchantId)
--SetTitle(titleId)
Expand Down

0 comments on commit 93e4412

Please sign in to comment.