WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Problem recreating ElvUI Minimap Consolidated Buff Functionality (https://www.wowinterface.com/forums/showthread.php?t=52872)

sirann 11-10-15 08:47 PM

Problem recreating ElvUI Minimap Consolidated Buff Functionality
 
Hey all. I've been going crazy trying to figure out why this is not working. Upon fstack, I can see my frame next to the minimap, but nothing will show up, under any circumstances.

I have commented the hell out of my code so hopefully if I have any shit coding practices, my plain text will help anyone figure this out.

Here is the pastebin: http://pastebin.com/3R6qmqSa

I know this is something stupid that I'm simply overlooking, but I can't figure it out.

Phanx 11-10-15 09:34 PM

MMCBFrame.i

^ This is the equivalent of MMCBFrame["i"] where "i" is a string containing the letter "i". I think you meant to use this:

MMCBFrame[i]

^ where i is a variable containing the current iteration count of your for-loop.

Similarly this:

"MMCBButton..i"

... means that the actual name of your object is "MMCBButton..i". I think you meant to do this:

"MMCBButton"..i

... which appends the current value of the variable i to the string "MMCBButton", resulting in names like "MMCBButton3".

sirann 11-10-15 09:55 PM

Correct on both accounts, all instances of MMCBFrame.i changed to MMCBFrame[i]

The improper concatenation was also fixed.

The nested table MMCBFrame.i.fs was changed to MMCBFrame[i].fs

Despite these changes, still nothing is showing. Also jimhalpertface.jpg on those improper table keys

Fizzlemizz 11-10-15 10:37 PM

Your MMCBFrame[i] Buttons don't have a size so MMCBFrame[i].fs:SetAllPoints() is making the FontStrings zero by zero.

Edit: Not to mention the button size would make the SePoint place them in effect on top of each other.

sirann 11-10-15 11:18 PM

I ended up doing: http://pastebin.com/MdxChCJc

It worked, sorry for the easy mistakes and reminders of button sizes >.>


All times are GMT -6. The time now is 09:15 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI