• 0

    posted a message on kgPanels Offical Thread
    Thanks Skalded. Out of curiousity, why PLAYER REGEN event instead of ENTER COMBAT?
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Need some help. Trying to get omen to load on combat and switch to recount out of combat. However, I would like to retain my onclick event so i can toggle during combat between the two. Right now this is what I have;

    OnLoad:

    self:RegisterEvent("Player_Enter_Combat")
    self:RegisterEvent("Player_Leave_Combat")

    OnEvent:

    if (event == "Player_Enter_Combat") then
    Recount.MainWindow:Hide() Omen:Toggle(True)
    elseif event == "Player_Leave_Combat" then
    Recount.MainWindow:Show() Omen:Toggle(False)
    end

    Onclick;

    if pressed then
    if Recount.MainWindow:IsVisible () then
    Recount.MainWindow:Hide() Omen:Toggle(true) else Recount.MainWindow:Show() Omen:Toggle(false)
    end
    elseif released then
    end

    Any tips are appreciated.
    Posted in: General AddOns
  • To post a comment, please or register a new account.