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. |
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". |
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 |
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. |
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 01:55 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI