Thread Tools Display Modes
07-20-16, 01:25 PM   #1
bsmorgan
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 219
Understanding C_TradeSkillUI

I'm the current maintainer of Skillet. Where can I find a list of all the functions in C_TradeSkillUI?

I tried /dump C_TradeSkillUI in WoW but the <skipped 40> at the end doesn't help.
 
07-20-16, 02:04 PM   #2
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Foxlit has a list of API functions https://www.townlong-yak.com/framexm.../GlobalAPI.lua

There is a lot of useful resources and diffs in Notable API changes in Legion and Consolidated Changes of all Types
Code:
C_TradeSkillUI.AnyRecipeCategoriesFiltered
C_TradeSkillUI.AreAnyInventorySlotsFiltered
C_TradeSkillUI.CanObliterateCursorItem
C_TradeSkillUI.CanTradeSkillListLink
C_TradeSkillUI.ClearInventorySlotFilter
C_TradeSkillUI.ClearPendingObliterateItem
C_TradeSkillUI.ClearRecipeCategoryFilter
C_TradeSkillUI.ClearRecipeSourceTypeFilter
C_TradeSkillUI.CloseObliterumForge
C_TradeSkillUI.CloseTradeSkill
C_TradeSkillUI.CraftRecipe
C_TradeSkillUI.DropPendingObliterateItemFromCursor
C_TradeSkillUI.GetAllFilterableInventorySlots
C_TradeSkillUI.GetAllRecipeIDs
C_TradeSkillUI.GetCategories
C_TradeSkillUI.GetCategoryInfo
C_TradeSkillUI.GetFilterableInventorySlots
C_TradeSkillUI.GetFilteredRecipeIDs
C_TradeSkillUI.GetObliterateSpellID
C_TradeSkillUI.GetOnlyShowLearnedRecipes
C_TradeSkillUI.GetOnlyShowMakeableRecipes
C_TradeSkillUI.GetOnlyShowSkillUpRecipes
C_TradeSkillUI.GetOnlyShowUnlearnedRecipes
C_TradeSkillUI.GetPendingObliterateItemID
C_TradeSkillUI.GetPendingObliterateItemLink
C_TradeSkillUI.GetRecipeCooldown
C_TradeSkillUI.GetRecipeDescription
C_TradeSkillUI.GetRecipeInfo
C_TradeSkillUI.GetRecipeItemLevelFilter
C_TradeSkillUI.GetRecipeItemLink
C_TradeSkillUI.GetRecipeItemNameFilter
C_TradeSkillUI.GetRecipeLink
C_TradeSkillUI.GetRecipeNumItemsProduced
C_TradeSkillUI.GetRecipeNumReagents
C_TradeSkillUI.GetRecipeReagentInfo
C_TradeSkillUI.GetRecipeReagentItemLink
C_TradeSkillUI.GetRecipeRepeatCount
C_TradeSkillUI.GetRecipeSourceText
C_TradeSkillUI.GetRecipeTools
C_TradeSkillUI.GetSubCategories
C_TradeSkillUI.GetTradeSkillLine
C_TradeSkillUI.GetTradeSkillLineForRecipe
C_TradeSkillUI.GetTradeSkillListLink
C_TradeSkillUI.GetTradeSkillTexture
C_TradeSkillUI.IsAnyRecipeFromSource
C_TradeSkillUI.IsDataSourceChanging
C_TradeSkillUI.IsInventorySlotFiltered
C_TradeSkillUI.IsNPCCrafting
C_TradeSkillUI.IsRecipeCategoryFiltered
C_TradeSkillUI.IsRecipeFavorite
C_TradeSkillUI.IsRecipeRepeating
C_TradeSkillUI.IsRecipeSearchInProgress
C_TradeSkillUI.IsRecipeSourceTypeFiltered
C_TradeSkillUI.IsTradeSkillGuild
C_TradeSkillUI.IsTradeSkillLinked
C_TradeSkillUI.IsTradeSkillReady
C_TradeSkillUI.ObliterateItem
C_TradeSkillUI.OpenTradeSkill
C_TradeSkillUI.SetInventorySlotFilter
C_TradeSkillUI.SetOnlyShowLearnedRecipes
C_TradeSkillUI.SetOnlyShowMakeableRecipes
C_TradeSkillUI.SetOnlyShowSkillUpRecipes
C_TradeSkillUI.SetOnlyShowUnlearnedRecipes
C_TradeSkillUI.SetRecipeCategoryFilter
C_TradeSkillUI.SetRecipeFavorite
C_TradeSkillUI.SetRecipeItemLevelFilter
C_TradeSkillUI.SetRecipeItemNameFilter
C_TradeSkillUI.SetRecipeRepeatCount
C_TradeSkillUI.SetRecipeSourceTypeFilter
C_TradeSkillUI.StopRecipeRepeat
or iterate over the table and print each key, then copypaste from any chat addon or custom editbox

also take a look into the Developer Utilities addons, personally I'm fond of Spew

Last edited by Ketho : 07-20-16 at 02:08 PM.
 
07-23-16, 07:28 PM   #3
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
Originally Posted by bsmorgan View Post
I tried /dump C_TradeSkillUI in WoW but the <skipped 40> at the end doesn't help.
I found your post looking for roughly the same tradeskil api info, but I just want to make a suggestion that may help you in the future if you want more from /dump.

With the Blizzard_DebugTools addon loaded, the global variable DEVTOOLS_MAX_ENTRY_CUTOFF holds the limit of top level table entries to print, which is currently 30. If you want more than that out of /dump, you can manually change the limit by using /dump on anything once to load the addon then /run DEVTOOLS_MAX_ENTRY_CUTOFF=100 or whatever you want the limit to be.

Here's the following relevant globals in Blizzard_DebugTools\Dump.lua:

Code:
DEVTOOLS_MAX_ENTRY_CUTOFF = 30;    -- Maximum table entries shown
DEVTOOLS_LONG_STRING_CUTOFF = 200; -- Maximum string size shown
DEVTOOLS_DEPTH_CUTOFF = 10;        -- Maximum table depth
DEVTOOLS_INDENT='  ';              -- Indentation string
Something I've done to use /dump on local data within my personal addon, with "d" being the table I hold data:

Code:
SLASH_ZADDON1='/zao'
SlashCmdList['ZADDON']=function(args)
	local arg1,arg2 = strsplit(' ',args)
	UIParentLoadAddOn('Blizzard_DebugTools')
	local max=DEVTOOLS_MAX_ENTRY_CUTOFF
	arg2=arg2 or max
	DEVTOOLS_MAX_ENTRY_CUTOFF=arg2
	DevTools_Dump(d[arg1])
	DEVTOOLS_MAX_ENTRY_CUTOFF=max
end
This prints out the table, or other object, of d[arg1]. For example, I have a table of all class names in d.class, so /zao class 10 will print all but two classes, without the <skipped 2> message. Skipping the second argument, like /zao class, will go with the default max of 30. DevTools_Dump is the main function of /dump, so arg1 could be anything that's not a toplevel local, as long as DevTools_Dump receives a table with what you want to dump as a key.

Printing out global objects simply requires _G:

Code:
SLASH_ZADDON1='/zao'
SlashCmdList['ZADDON']=function(args)
	local arg1,arg2 = strsplit(' ',args)
	UIParentLoadAddOn('Blizzard_DebugTools')
	local max=DEVTOOLS_MAX_ENTRY_CUTOFF
	arg2=arg2 or max
	DEVTOOLS_MAX_ENTRY_CUTOFF=arg2
	DevTools_Dump(_G[arg1])
	DEVTOOLS_MAX_ENTRY_CUTOFF=max
end

Last edited by Kanegasi : 07-23-16 at 07:31 PM.
 
07-24-16, 11:32 AM   #4
bsmorgan
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 219
Originally Posted by Kanegasi View Post
I found your post looking for roughly the same tradeskil api info, but I just want to make a suggestion that may help you in the future if you want more from /dump.
Kanegasi,

Thanks for the very useful information!
 
 

WoWInterface » Site Forums » Archived Beta Forums » Legion Beta archived threads » Understanding C_TradeSkillUI

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