Class Colored Names on Frames & No Background behind Name on Frames
Hello,
I'm trying to figure out a way I can create addons out of scripts from a addon I installed. When I use the addon however, it breaks other addons of mine which aren't very convenient. So I'd like to simply extract these two scripts from the addon; one gives Class Colours to names on the player & target frames, the other Removes the background behind the players name on the target frame. Code for Class Coloured Names: Lua Code:
Code for removing bar behind the target frame name: Lua Code:
Any idea on how I can make these into addons? |
A quick and easy way is to copy/paste the code into addon.bool.no. You may have to open the .toc file in something like Notepad after you extract everything and make sure the Interface# is correct for your game client.
|
Quote:
|
You need to either remove the function enclosures or call them. I suggest removing them since the functions hooked already exist on load.
Lua Code:
PS: I cleaned up the code some. Hooking UnitFrameHealthBar_Update() was unnecessary as it ended up triggering HealthBar_OnValueChanged() anyway. Also while RAID_CLASS_COLORS inherits ColorMixin, CUSTOM_CLASS_COLORS isn't so clearly defined as it's not a Blizzard variable. This is why :GetRGB() is called from ColorMixin instead of the color tables. Note '.' was used instead of ':' so the color table could be given to the function as a reference instead of it trying to take ColorMixin as self. |
Quote:
|
Strange, it works fine for me.
|
All times are GMT -6. The time now is 05:27 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI