Quantcast Problem recreating ElvUI Minimap Consolidated Buff Functionality - WoWInterface
Thread Tools Display Modes
11-10-15, 08:47 PM   #1
sirann
A Flamescale Wyrmkin
Join Date: Mar 2007
Posts: 142
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.
  Reply With Quote
11-10-15, 09:34 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
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".
__________________
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote
11-10-15, 09:55 PM   #3
sirann
A Flamescale Wyrmkin
Join Date: Mar 2007
Posts: 142
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
  Reply With Quote
11-10-15, 10:37 PM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,205
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.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 11-10-15 at 10:43 PM.
  Reply With Quote
11-10-15, 11:18 PM   #5
sirann
A Flamescale Wyrmkin
Join Date: Mar 2007
Posts: 142
I ended up doing: http://pastebin.com/MdxChCJc

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

WoWInterface » Developer Discussions » Lua/XML Help » Problem recreating ElvUI Minimap Consolidated Buff Functionality

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off