Quantcast WoWInterface - View Single Post - Addons - Single Source for Classic and current?
View Single Post
06-20-19, 11:14 AM   #16
bsmorgan
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 181
Originally Posted by Xrystal View Post
Couldn't you create a local function that is set to either the C_TradeSkill functions or the Classic equivalent / or nil based on the setup ? It would then simply be the case of adding an if nil test in front of the new function call.
My first attempt at this was to just remove "C_TradeSkill." and see what blew up. In numerous cases, the return values also "reverted" to an earlier time as well. I can't just change "C_TradeSkill." to "self:" because there are quite a few cases where Skillet already has a function of that name some of which do something different than the name would suggest.

I've come to the conclusion that Skillet is a Retail addon and Skillet - Classic will be a different addon with a different set of sources. This decision is supported by a comparison of:
World of Warcraft\_retail_\BlizzardInterfaceCode\Interface\AddOns\Blizzard_TradeSkillUI\
and
World of Warcraft\_classic_\BlizzardInterfaceCode\Interface\AddOns\Blizzard_TradeSkillUI\

The question now becomes, do I want to write Skillet - Classic?
  Reply With Quote