• 0

    posted a message on PitBull 4.0
    was boss frames added? if so how do i get them to work
    Posted in: Unit Frames
  • 0

    posted a message on kgPanels Offical Thread
    Quote from Skalded
    I 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:
    self:RegisterEvent("PLAYER_REGEN_DISABLED")
    self:RegisterEvent("PLAYER_REGEN_ENABLED") 


    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.

    However if
    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
    Posted in: General AddOns
  • To post a comment, please or register a new account.