View Single Post
11-08-22, 06:54 AM   #7
Deadlyz
A Wyrmkin Dreamwalker
 
Deadlyz's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 55
Originally Posted by Xrystal View Post
You could try IsVisible() in addition to IsShown()
https://wowpedia.fandom.com/wiki/API...Region_IsShown


You could try just having the Hide() line. Seeing as the function is to show the frame, rather than check if it is shown first just tell it to hide it regardless as your code runs after their code. The test on whether it is Shown or not may be returning false for some reason. But the above may rectify this scenario.
Thanks!

The final version of the code for anyone interested
Lua Code:
  1. TargetFrameSpellBar.BorderShield:SetTexture(0)
  2. FocusFrameSpellBar.BorderShield:SetTexture(0)
__________________

My last movie: Rogue Sweethearts
  Reply With Quote