Quantcast
WoWInterface - View Single Post - Help hide item Borders from actionbars
View Single Post
08-26-20, 03:33 PM   #2
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 532
Code:
ActionButton1.Border = nil
Using hide won't work, since the code responsible for the green border will show it again.

\FrameXML\ActionButton.lua

Lua Code:
  1. -- Add a green border if button is an equipped item
  2. local border = self.Border;
  3. if border then
  4.     if ( IsEquippedAction(action) ) then
  5.         border:SetVertexColor(0, 1.0, 0, 0.35);
  6.         border:Show();
  7.     else
  8.         border:Hide();
  9.     end
  10. end
  Reply With Quote