Current Addon issues
After getting my addon running in the beta I have noted the following issues:
All in all not too bad |
I've also noticed that all anchor offsets (at least in xml) now require both x and y coordinates (it would default the unspecified one to 0 previously).
There's also something fishy going on with positioning that I'm still tracking down. All my frames that are positioned relatively to their peers seems to gather in a heap at the bottom of their container. Looks fun, but not quite what I'm going for. |
I noticed that CancelUnitBuff() now only available for BlizzardUI
So you can spawn your buffs with oUF, but can't right click cancel them :( |
Quote:
There is a new secure template for auras, but it is not visible yet. Best to wait a while before looking at that stuff. |
i haven't been able to figure out why dbm has invisible text in GUI in beta. there are no frame or lua errors at all. text is just invisible.
I do however get an error from trying to use scroll wheel 9/3 21:18:47.969 Frame DBM_GUI_OptionsFramePanelContainerFOVScrollBar: Unknown script element OnVerticalScroll Error occured in: Global Count: 5 Message: [string "DBM_GUI_OptionsFrameBossMods:OnMouseWheel"] line 2: attempt to compare number with nil Debug: [C]: ? [string "*:OnMouseWheel"]:2: [string "*:OnMouseWheel"]:1 haven't been able to find any docs on that api change yet |
Quote:
I think they changed the default value from 0 to "fill your parent container". Again, this is from xml files. I'm not sure if you can even specify one coordinate without the other in lua. |
In my experience, the Lua code requires both offsets if you're specifying one.
|
Thought i'd mention a small change that I had noticed with my addon from WotLK to Cata beta that was causing me a few headaches to debug. The dropdown's on my options panel were all defaulting to 'Custom' even though that wasn't an item in the list.
Eventually I found that it was down to my initialisation code on load : Code:
UIDropDownMenu_SetText(MyDropDownFrame, "Selected Option"); Code:
UIDropDownMenu_SetSelectedValue(MyDropDownFrame, "Selected Option"); I noticed that blizzards own addon selection frame shows 'Custom' for the 'Configure Addons For:' dropdown, so also appears to have this problem. |
One of my addons is causing WoW to hardlock.
I guess it's my nameplates. It happens on a mouseover in Throne of the Tides at the first pack, but only when I use the LFG tool. |
The trouble I am having is with button texture sizes. The button active area seems to be fine, the pushed texture is the right size, its just the normaltexture that is insisting on being large. Like clown shoes size.
I'll add in the button creation code here so someone can show me that I'm being stupid or that yes indeed its broken. I find it interesting that even if I explicitly set a scale for the button, it ignores me. If I comment out the setwidth/height it remains the same. Basically, the below checks for the existence of a button. If it exists, just grab its width and height. If it doesn't exist, make one and make its width and height a little smaller (20% smaller) than standard. Code:
|
Quote:
|
As an "answer" to my own query, in the case that someone else may have a similar problem, I have found a way around it.
Actually it may be a more elegant solution than I had been using all through the last two expansions. First, I removed the inheritance of the ActionButtonTemplate from the button frame. If I have that inherited, the normatexture is huge. No idea why, it wasn't like that in the last two expansions. Unfortunately doing that means there is no automatic handling of the pushed texture or creation of a cooldown frame. You can manually create a cooldown frame derived from CooldownTemplate and make the button a parent. That neatly fixes that. Append "Cooldown" to the button name and you can manage it in the same generic manner as before (c=_G[name.."Cooldown"] etc.) I'll have to futz around getting a pushed texture functionality. That doesn't exist for generic secureactionbuttons apparently so my buttons are flat. |
All times are GMT -6. The time now is 11:14 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI