• 0

    posted a message on Customizing DBM timer bars
    Those are soo beautiful its is possible for an upload of the file for those....please pretty please :p

    -Strongbow-
    Posted in: AddOn HELP!
  • 0

    posted a message on kgPanels Offical Thread
    Finally this seems to work for what i want.

    In OnLoad
    self:RegisterEvent("PLAYER_REGEN_DISABLED")
    self:RegisterEvent("PLAYER_REGEN_ENABLED")


    and in OnEvent
    if event == "PLAYER_REGEN_DISABLED" then
    
    self:SetHeight(57)
    end
    local playerClass, englishClass = UnitClass("player");
    if englishClass == "HUNTER" or englishClass == "DEATHKNIGHT" or englishClass == "SHAMAN" then
    self:SetHeight(108)
    end
    
    if event == "PLAYER_REGEN_ENABLED" then
    self:SetHeight(57)
    end


    -Strongbow-
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Quote from Bajenfan
    Hi!

    I need some help with my script here.

    I have in my OnLoad
    self:RegisterEvent("PLAYER_TARGET_CHANGED")


    and in OnEvent
     if UnitCanAttack("player","target") then
      self:SetHeight(108)
    else
      self:SetHeight(57)
    end


    its working great so far but what i would like it to do is to only expand if im on my DK, Shammy or my Hunter, how would i go about for making that happen ?

    -Strongbow-


    I have tried a few things and changed a few things but to no avail, this is what i have now

    In OnLoad
    self:RegisterEvent("PLAYER_REGEN_DISABLED")
    self:RegisterEvent("PLAYER_REGEN_ENABLED")


    and this is what i tried in OnEvent
    if event == "PLAYER_REGEN_ENABLED" or englishClass == "HUNTER" or englishClass == "DEATHKNIGHT" or englishClass == "SHAMAN" then
    
    self:SetHeight(108)
    else 
    self:SetHeight(57)
    end
    
    if event == "PLAYER_REGEN_DISABLED" then
    self:SetHeight(57)
    end


    And on my rogue its working like i have the lower height in combat but then ooc it turns to the higher height which it shouldn't.

    Pls help.

    -Strongbow-
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Hi!

    I need some help with my script here.

    I have in my OnLoad
    self:RegisterEvent("PLAYER_TARGET_CHANGED")


    and in OnEvent
     if UnitCanAttack("player","target") then
      self:SetHeight(108)
    else
      self:SetHeight(57)
    end


    its working great so far but what i would like it to do is to only expand if im on my DK, Shammy or my Hunter, how would i go about for making that happen ?

    -Strongbow-
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Hi!

    I would like some help with getting my Pet bar to be attached to my action bar and then be woved up when im in combat since my action bar then have 2 rows instead of 1 ?



    This is how it looks now and I would like it to sit right on top of the action bar.



    And then when im in combat it should move up to be on top of that second bar.

    Any help would be greatful.

    -Strongbow-
    Posted in: General AddOns
  • To post a comment, please or register a new account.