- Registered User
Member for 13 years and 20 days
Last active Fri, Oct, 4 2013 21:35:00
- 0 Followers
- 2 Total Posts
- 0 Thanks
Jul 24, 2009Posted in: General AddOnsQuote from SkaldedI was meaning to set something like this up myself. I created a panel for Omen and a Panel for Recount (similar size and placement, but not exactly since things get wonky for me when I parent the Omen Anchor and try to mimic sizes) then set the follow code:
Recount Panel OnLoad:
Recount Panel OnEvent:
if (event == "PLAYER_REGEN_DISABLED") then Recount.MainWindow:Hide() if not Omen.Anchor:IsVisible() then Omen:Toggle() end elseif event == "PLAYER_REGEN_ENABLED" then Recount.MainWindow:Show() if Omen.Anchor:IsVisible() then Omen:Toggle() end end
Recount and Omen Panels OnClick:
if Recount.MainWindow:IsVisible() then Recount.MainWindow:Hide() Omen:Toggle() else Recount.MainWindow:Show() Omen:Toggle() end
Can someone help me im trying to do something like this but with more
If im in combat, not in a vehicle, my target is a hostle npc my omen would show.
Im in combat, in a vehicle, my target is a hostile npc my omen wouldnt show.
If i change my target to a friendly npc or a friendly player while in combat it would swap to recount
if the vehicle thing cant be done can some1 help me just getting it to swap when im in combat and my target is a hostile npc
- To post a comment, please login or register a new account.