Text on top of each other in frame
Hey all, I'm trying to make a simple addon to myself because I'm too lazy to look through the chat in M+ :D
The addon opens a frame with peoples loot and a button to easily whisper them and it works okay when two players get loot, BUT when a third or more players receives loot the text is printed on top of the two first players text/loot. I give the complete code for the addon here, but I would recon that the problem is somewhere in the 'UpdateLootWindow' function? I guess it's maybe yoffset that needs adjustment? But I cannot get anything to work. I also give you an image of the loot frame when a third or more player gets loot. [IMG] https://prnt.sc/bh4sMlYgbGer Code beneath: https://github.com/Trailertina/MythicPlusLoot |
Every time UpdateLootWindow runs, it's creating a new set of widgets (Fontstrings and Buttons) on top of the old ones.
You should only create them once (and maybe add extras (once) if needed) Very rough example: Lua Code:
UpdateLootWindow() Lua Code:
|
All times are GMT -6. The time now is 04:25 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI