View Single Post
12-11-13, 04:26 AM   #5
13ulbasaur
A Deviate Faerie Dragon
 
13ulbasaur's Avatar
Join Date: May 2013
Posts: 14
Hi there! Sorry for the late reply, been distracted by Pokemon. Thanks so much for the help! I've put in the script and put in the name of the frame and whatnot. I haven't tested it in a real party for the select thing but I can't even get the hover over part to work, ahah.

I think I must've not edited it properly. What was I supposed to do.
Code:
-- Change this value for each frame to match the party unit ID:
self.id = 1

-- Don't need to edit below here.
self:RegisterEvent("PLAYER_TARGET_CHANGED")

self.unit = "party"..self.id
self.frame = _G["stuf.units.party"..self.id]

self.frame:HookScript("OnEnter", function()
     self:Show()
end)
self.frame:HookScript("OnLeave", function()
     if not UnitIsUnit("target", self.unit) then
          self:Hide()
     end
end)

Did I make a mistake? The unit frame name thing for the party was 'stuf.units.party1', 'stuf.units.party2' etc.etc. so I assumed I was supposed to write stuf.units.party.

Thanks so much.
  Reply With Quote