lua help
Can anyone help me please?
I have following code Lua Code:
It makes the Combo points frame anchoring to my custom frame. SetParent is for showing it up, because PlayerFrame is disabled via other addon. Sooo, and it gives me always an error about family anchoring bla bla bla since 8.2 patch... i know blizzard did something to the frames since 8.2 But the thing is: the code is working but this error... is there any way to get rid of it? |
A more precise Lua error message would be nice aswell as the full addon code.
Second: wrong forum. |
As per Zork, what is the error text ( all of it ) that shows. Any of the addons anchoring could be at fault so if there are other blocks of code that include anchoring you will definitely need to show them.
|
Code:
Message: Interface\FrameXML\ComboFramePlayer.lua:48: Action[SetPoint] failed because[SetPoint would result in anchor family connection]: attempted from: ComboPointPlayerFrame:SetPoint. |
It still doesn't tell us what part of your code is causing/triggering the error.
Looking at your original code, you have a MyNewFrame being used but not defined and a zzz frame being defined to handle events. And a ComboPointPlayerFrame which is either yours or Blizzards. How is MyNewFrame created and what is it parented/anchored to ? If ComboPointPlayerFrame is yours, how is it created ? What is the file ComboFramePlayer ? Yours or Blizzards. If yours how is it doing what it is doing? |
Blizzard is probably doing a SetPoint without a corresponding ClearAllPoints on a frame you are also moving.
You could try "killing off" the frames SetPoint function Code:
frame.SetPoint = function() end |
MyNewFrame this is my player frame from my ouf layout. I need to set parent because the blizzard default player frame is hidden by the ouf addon. By setting parent, combo point still show, else it will be hidden with the default blizz player frame also.
Code:
ComboPointPlayerFrame Code work fine but spaming errors... |
Quote:
|
All times are GMT -6. The time now is 01:45 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI