Originally Posted by goris29
Should there be a "function" in front of MyFrame.EventHandler and MyFrame.OnShow?...And i also get errors about trying to index global values w/ a value of nil.
|
Yes they should be declared as functions, sorry. Actually there are other problems with it as well, which I didn't notice before because I wasn't really paying attention x_x The global variables thing is not one of those problems though; if there are variables referenced in my code that you aren't creating, then you need to change the names in my code to match yours, or change the code to apply to the way you're doing things.
Also, as I noted above, the major problem with what I posted before is that the table of fontstrings should *not* be cleared the second+ times the frame is shown, they should just all have :hide() called on them. The event handler should check to see if the table exists, and if so search backwards from the end for the last fontstring that :IsHidden(), and use that if there is one. If there is no fontstring in the table or if the last one is visible, then create a new one and append it to the end.