WoWInterface - View Single Post - Need help with spell activation overlay
View Single Post
12-09-20, 05:02 PM   #5
nUI Maintainer
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,607
First off .. a link worth visiting and looking at the introduction pages and then start with something simple.

You can use xml or lua to create texture objects.
These are the pages that explain the different elements to create a texture for a frame


Start with those and make sure you look at SetPoint ( Anchoring ) to place the frame on the screen in relation to another frame.

There are options to Hide() and Show() any frame but they can't be done during combat without special secure code access, I don't think you're ready for that quite yet but you can use it for non combat testing just to see how it works. SetAlpha(1) will make the frame visible and SetAlpha(0) will make it invisible with numbers between variable transparency.

Take your time and slowly expand your knowledge as and when you find the need/wish.

I'm sure others will provide what knowledge they have to assist you in more detail but Vruls response is a good starting point to expand on.

Originally Posted by VeenixO View Post
Alright seems like I know nothing about textures in wow.
If I understand correctly I need an xml file to show textures?
How would I go about showing a texture whenever the spell activation overlay glow happens for hammer of wrath and make it dissapear when the overlay is hidden?
Also is there a way to make the texture 50% transparent when out of range?

Don't really understand how to link xml and lua, sorry very new to this haha

Last edited by Xrystal : 12-09-20 at 05:07 PM.
  Reply With Quote