Mega Macro

Mega Macro

39.7k Downloads

Potential 'fix' for the ElvUI icon range checking coloration

SwordaDev opened this issue · 5 comments

commented

Hello there !

I'm not really familiar with Lua, but I tried fixing the range coloration issue on the icons while not in range using ElvUI.
After tweaking around I found that commenting the two following lines:

icon:SetVertexColor(1.0, 1.0, 1.0)
normalTexture:SetVertexColor(1.0, 1.0, 1.0)

Seem to have the desired behaviour.
I do not have extensive knowledge as to why it works though, and hope it does not breaks anything - though I didn't see anything wild or any Lua error.

Example with a simple macro:
image

In the bar while not in range:
image

In the bar while in range:
image

I don't know if that's going to be useful at all, but I thought I might share. :)

commented

I suspect it will break under some conditions, maybe out of mana or similar cases where the icon is shaded. I haven't looked at this stuff or played WoW for many many months. I guess keep using your version and if you don't notice any issues for a while make a PR and I'll approve :)

commented

I will test it on other classes as well, so far it seems to work fine on my warrior and the shaded state is working when out of rage.

commented

So it's been a while and I didn't get any issues, though it might not be ideal for everyone (it's fine for me as I use ElvUI).
I would not really recommend to merge this change as it might have other impact (and I'm not fully knowledgeable in LUA). We could maybe leave this as a potential fix for people facing the same issue.

commented

I'm back on WoW (at least for a bit) so I'll make the change locally and see how it goes too. I'll do some quick tests and then give it the all clear if that all checks out.

commented

There are issues when using conditionals in macros. If the macro switches from an unusable ability to a usable one the button stays dark.