• 0

    posted a message on kgPanels Offical Thread
    i have another question :-)

    is it possible to parent a panel to the "buff-area" of pitbull for example, so that the panel expands und shrinks with the number of buffs / debuffs ?


    Regards Kassadar
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    hello again,

    i it possoble to set an panel parent to a complete row of bartender 3 or 4 ?

    @ avazza: Whats about your layout? Didn't you plan to offer is here ?



    Regards..

    Kassadar
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    great !!! thank you !
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Greetings,
    i'm new to the way of coding used in eepanels and kgpanels, and i tried to rebuild that wonderfull layout created by avazza: http://www.wowace.com/forums/index.php?topic=6878.msg171165#msg171165

    But eepanels2 is not working on my wow so i decided to use kgpanels. Now i have the problem that the scripts don't fit. Is there anybody out there who could "translate" those scripts to kgpanels?

    function eePanels2:RaidPanelVisibility(self, event, ...)
      
      if GetNumPartyMembers() > 4 or GetNumRaidMembers() > 0 then    
        eePanel13:Show()
        eePanel14:Show()  
        eePanel15:Show()
        eePanel16:Show() 
       else
        eePanel13:Hide()
        eePanel14:Hide()
        eePanel15:Hide()
        eePanel16:Hide()
      end
      
        -- Just you / not in a party
        if GetNumPartyMembers() < 1 then
          eePanel13:Hide()
          eePanel14:Hide()
          eePanel15:Hide()
          eePanel16:Hide()
        -- You plus 1 other person
        elseif GetNumPartyMembers() == 1 then
          eePanel13:Show()
          eePanel14:Hide()
          eePanel15:Hide()
          eePanel16:Hide()
        -- You plus 2 other people
        elseif GetNumPartyMembers() == 2 then
          eePanel13:Show()
          eePanel14:Show()
          eePanel15:Hide()
          eePanel16:Hide()
        -- You plus 3 other people
        elseif GetNumPartyMembers() == 3 then
          eePanel13:Show()
          eePanel14:Show()
          eePanel15:Show()
          eePanel16:Hide()
        -- You in a full group
        elseif GetNumPartyMembers() == 4 then
          eePanel13:Show()
          eePanel14:Show()
          eePanel15:Show()
          eePanel16:Show()
      end
      
      local _, class = UnitClass("party1");
      if class == "WARRIOR" then
        eePanel13:SetBackdropBorderColor(0.780,0.611,0.431,1)
      elseif class == "PRIEST" then
        eePanel13:SetBackdropBorderColor(1,1,1,1)
      elseif class == "DRUID" then
        eePanel13:SetBackdropBorderColor(1,0.490,0.0392,1)
      elseif class == "HUNTER" then
        eePanel13:SetBackdropBorderColor(0.6705,0.8313,0.4509,1)
      elseif class == "MAGE" then
        eePanel13:SetBackdropBorderColor(0.4117,0.8,0.9411,1)
      elseif class == "PALADIN" then
        eePanel13:SetBackdropBorderColor(0.9607,0.5490,0.7294,1)
      elseif class == "SHAMAN" then
        eePanel13:SetBackdropBorderColor(0.1411,0.3490,1,1)
      elseif class == "WARLOCK" then
        eePanel13:SetBackdropBorderColor(0.580,0.5098,0.7882,1)
      elseif class == "ROGUE" then
        eePanel13:SetBackdropBorderColor(1,0.9607,0.4117,1)
      end
    
      local _, class = UnitClass("party2");
      if class == "WARRIOR" then
        eePanel14:SetBackdropBorderColor(0.780,0.611,0.431,1)
      elseif class == "PRIEST" then
        eePanel14:SetBackdropBorderColor(1,1,1,1)
      elseif class == "DRUID" then
        eePanel14:SetBackdropBorderColor(1,0.490,0.0392,1)
      elseif class == "HUNTER" then
        eePanel14:SetBackdropBorderColor(0.6705,0.8313,0.4509,1)
      elseif class == "MAGE" then
        eePanel14:SetBackdropBorderColor(0.4117,0.8,0.9411,1)
      elseif class == "PALADIN" then
        eePanel14:SetBackdropBorderColor(0.9607,0.5490,0.7294,1)
      elseif class == "SHAMAN" then
        eePanel14:SetBackdropBorderColor(0.1411,0.3490,1,1)
      elseif class == "WARLOCK" then
        eePanel14:SetBackdropBorderColor(0.580,0.5098,0.7882,1)
      elseif class == "ROGUE" then
        eePanel14:SetBackdropBorderColor(1,0.9607,0.4117,1)
      end
    
      local _, class = UnitClass("party3");
      if class == "WARRIOR" then
        eePanel15:SetBackdropBorderColor(0.780,0.611,0.431,1)
      elseif class == "PRIEST" then
        eePanel15:SetBackdropBorderColor(1,1,1,1)
      elseif class == "DRUID" then
        eePanel15:SetBackdropBorderColor(1,0.490,0.0392,1)
      elseif class == "HUNTER" then
        eePanel15:SetBackdropBorderColor(0.6705,0.8313,0.4509,1)
      elseif class == "MAGE" then
        eePanel15:SetBackdropBorderColor(0.4117,0.8,0.9411,1)
      elseif class == "PALADIN" then
        eePanel15:SetBackdropBorderColor(0.9607,0.5490,0.7294,1)
      elseif class == "SHAMAN" then
        eePanel15:SetBackdropBorderColor(0.1411,0.3490,1,1)
      elseif class == "WARLOCK" then
        eePanel15:SetBackdropBorderColor(0.580,0.5098,0.7882,1)
      elseif class == "ROGUE" then
        eePanel15:SetBackdropBorderColor(1,0.9607,0.4117,1)
      end
    
      local _, class = UnitClass("party4");
      if class == "WARRIOR" then
        eePanel16:SetBackdropBorderColor(0.780,0.611,0.431,1)
      elseif class == "PRIEST" then
        eePanel16:SetBackdropBorderColor(1,1,1,1)
      elseif class == "DRUID" then
        eePanel16:SetBackdropBorderColor(1,0.490,0.0392,1)
      elseif class == "HUNTER" then
        eePanel16:SetBackdropBorderColor(0.6705,0.8313,0.4509,1)
      elseif class == "MAGE" then
        eePanel16:SetBackdropBorderColor(0.4117,0.8,0.9411,1)
      elseif class == "PALADIN" then
        eePanel16:SetBackdropBorderColor(0.9607,0.5490,0.7294,1)
      elseif class == "SHAMAN" then
        eePanel16:SetBackdropBorderColor(0.1411,0.3490,1,1)
      elseif class == "WARLOCK" then
        eePanel16:SetBackdropBorderColor(0.580,0.5098,0.7882,1)
      elseif class == "ROGUE" then
        eePanel16:SetBackdropBorderColor(1,0.9607,0.4117,1)
      end
    end
    
    -- Ace2 event listeners; can't do this in more than one script
    eePanels2:RegisterEvent("PLAYER_ENTERING_WORLD", eePanels2.RaidPanelVisibility)
    eePanels2:RegisterEvent("PARTY_MEMBERS_CHANGED", eePanels2.RaidPanelVisibility)
    eePanels2:RegisterEvent("RAID_ROSTER_UPDATE", eePanels2.RaidPanelVisibility)
    Posted in: General AddOns
  • To post a comment, please or register a new account.