WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=6)
-   -   Azerite Item borders (https://www.wowinterface.com/forums/showthread.php?t=56772)

feraldrood 10-07-18 10:17 AM

Azerite Item borders
 
Looking for a way to disable or replace the border textures on Azerite items in the character pane and tooltips. Anyone know of an addon already doing so?

Kanegasi 10-07-18 11:05 AM

https://addon.bool.no

Lua Code:
  1. hooksecurefunc("GameTooltip_SetBackdropStyle",function(self,style)
  2.     if style==GAME_TOOLTIP_BACKDROP_STYLE_AZERITE_ITEM then
  3.         GameTooltip_SetBackdropStyle(self,GAME_TOOLTIP_BACKDROP_STYLE_DEFAULT)
  4.     end
  5. end)
  6. for k,v in pairs(PaperDollItemsFrame.EquipmentSlots) do
  7.     hooksecurefunc(v,"SetAzeriteItem",function(self,item)
  8.         if item then
  9.             self:SetAzeriteItem()
  10.             if C_AzeriteItem.IsAzeriteItem(item) then
  11.                 self.RankFrame:SetShown(true)
  12.                 self:UpdateAzeriteRank(item)
  13.             end
  14.         end
  15.     end)
  16. end

feraldrood 10-07-18 12:30 PM

Well that was fast!

thanks much Kanegashi!

Kanegasi 10-07-18 12:35 PM

I was in the middle of editing it. Make sure you have the current code shown.

Viper_0000 02-17-20 11:41 PM

Would it be possible to get the corruption item version of this code please?

Update: Think I figured it out!

Code:

hooksecurefunc("GameTooltip_SetBackdropStyle",function(self,style)
    if style==GAME_TOOLTIP_BACKDROP_STYLE_CORRUPTED_ITEM then
        GameTooltip_SetBackdropStyle(self,GAME_TOOLTIP_BACKDROP_STYLE_DEFAULT)
    end
end



All times are GMT -6. The time now is 04:21 AM.

vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI