!Beautycase
I am having huge problems with this addon. Everytime I try to input the code into the addon LUA file (ex. CreateBorder(SUFunitplayer, 12, r, g, b, 1, 1, 1, 1, 1, 1, 1, 1), the addon I am trying to get a border around completely disappears after refreshing the game (using /reload). It is as if the addon disables. I've tried numerous times, with many different addons, and I keep getting the same result. This has become extremely frustrating. What could I be doing wrong?
|
Quote:
r, g & b need to be values. And because your corners are all the same you can condense it. Try: local r, g, b = 1,1,1 CreateBorder(SUFUnitplayer, 12, r, g, b, 1) |
Quote:
|
I apologize about the delayed response. I honestly forgot I posted this thread.
Quote:
Quote:
|
Do you have BugSack installed? Is it showing any lua errors?
Also, could you post your code so that we can see where in the file you are trying to add the border? |
Quote:
Quote:
CreateBorder(SUFunitplayer, 12, r, g, b, 1, 1, 1, 1, 1, 1, 1, 1) When I post this code, I really just put it anywhere in the LUA file. I know I am supposed to put it where the frame I want to change is, but the problem with that is I can never find the unit frame name under the LUA file. For example, I know for a fact that Shadowed Unit Frames player frame is named "SUFunitplayer" because I used a macro/MoveAnything frame finder to find that out, but the word "SUFunitplayer" is not in the LUA file. |
Most likely, SUF creates its frames dynamically, and has not created the player frame yet at the time your code is running. It will work when you type the same code in-game because the loading process has completed by then. To solve this issue, you would need to figure out when SUF creates its frames and run your code after that event has fired, or hook the function it runs to create its frames. I don't have time to download SUF and dig through its code at the moment, but if you can't figure it out, maybe someone else more familiar with that addon can help you.
The frame name doesn't appear in the addon's Lua files because it isn't hardcoded. When SUF creates a frame for the "player" unit, it also creates a name, using some predefined pattern like "SUF" + "unit" + <the unit>. |
I was recently tinkering with !BeautyCase trying to get it to work with SUF. I was having the same problems so I perused through the comments section of the addon and found this snippet of code.
Code:
-- borders for all SUF Frames I have a question of my own concerning BeautyCase however. How do you get it to set up with Raven (buffs addon)? Do you have to create frames for each button for example RavenButton1, RavenButton2, etc. or is there a way to take over functions like Shadowed Unit Frames. Thanks everyone. |
All times are GMT -6. The time now is 02:59 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI