Message Box
I'm trying to see if there are any other solutions for displaying a pop up message box other than message("xxx"). This addon displays a message box if you do not have any favorite mounts selected. I know favorite mounts are usually across characters, but I use an addon that lets me select favorites per character. Here is the code, any suggestions are appreciated.
Code:
--Addon will check to see if you have a favorite mount and remind you if you do not. |
You can create any frame you want to "popup/show()" your messages
Lua Code:
|
Thanks, this helps, but I must be doing something wrong with either frame creation or setting the text. I've merged my code with yours and nothing is displayed. I did make sure that I do not have any favorite mounts and I had print statements to show me if I had logic errors. No errors. I am confused on the SetText function. Why call a function and isn't there a potential conflict with the name of the function? What am I missing?
Code:
--Addon will check to see if you have a favorite mount and remind you if you do not. |
Your message FontString has a SetPoint of CENTER to your event frame which has no SetPoint. The SetText function was an "if needed" thought you might add to JDoubleU00MessageBox frame to set the text of its child FontString.
Lua Code:
|
Thank you so much, it worked perfectly! I learned a few things that I will need to remember for future frame creating. I had been trying to figure out the method you used for setting the message box width. I can use that in a couple of other addons of mine.
|
All times are GMT -6. The time now is 02:38 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI