WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Legion Beta archived threads (https://www.wowinterface.com/forums/forumdisplay.php?f=177)
-   -   Understanding C_TradeSkillUI (https://www.wowinterface.com/forums/showthread.php?t=53953)

bsmorgan 07-20-16 01:25 PM

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.

Ketho 07-20-16 02:04 PM

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

Kanegasi 07-23-16 07:28 PM

Quote:

Originally Posted by bsmorgan (Post 316641)
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


bsmorgan 07-24-16 11:32 AM

Quote:

Originally Posted by Kanegasi (Post 316868)
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!


All times are GMT -6. The time now is 03:00 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI