Thread Tools Display Modes
Unread 08-25-12, 04:05 PM   #1
CobraA1
A Cliff Giant
 
CobraA1's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 73
UI issue with Reagent Restocker

Hey all,

I'm preparing Reagent Restocker for the upcoming patch, and recently I've hit a bit of a wall.

In particular, there's a new feature I've been working on which shows up when you visit a vendor. It allows you to add/remove items to the various lists without having to go to the full interface.

Unfortunately, I discovered that it's currently not working in Mists, even though I have it working in the release version of WoW. I fear that means it may become broken when 5.0.4 is released.

It still seems to be detecting the MERCHANT_SHOW event correctly, and the function assigned to it seems to be running when the event is fired. It's just that my frame isn't showing up. Has something about frames changes in the last couple weeks or so? It was working earlier in the beta.

If anybody wants to look at the code itself, I've uploaded an alpha containing the broken code to curseforge. Just look for Reagent Restocker.
CobraA1 is offline  
Unread 08-26-12, 04:02 AM   #2
CobraA1
A Cliff Giant
 
CobraA1's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 73
I found it.

UIPanelButtonTemplate2 no longer exists in Mists. I remember them changing that, and I guess I forgot to change that everywhere in my code.
CobraA1 is offline  
Unread 08-26-12, 06:43 AM   #3
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 4,109
For future debugging efforts, having a decent error catcher running will be a huge help. Trying to inherit from a template that doesn't exist will definitely trigger a Lua error.

If you're creating frames in XML, you can check the World of Warcraft > Logs > FrameXML.log file; it will show you all TOC- and XML-related errors, including attempts to inherit from templates that don't exist, attempts to load files that don't exist, etc.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline  
 

Go BackWoWInterface » WoD Beta » MoP archived threads » UI issue with Reagent Restocker

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off