Originally Posted by Baertram
|
I'm now using your DumpVars to generate esoui_constants_live.lua as follows:
Code:
local ACTIONBARSLOTTYPE_STRINGS = {
[1] = "ACTION_TYPE_ABILITY",
[6] = "ACTION_TYPE_CHAMPION_SKILL",
[7] = "ACTION_TYPE_COLLECTIBLE",
[8] = "ACTION_TYPE_EMOTE",
[2] = "ACTION_TYPE_ITEM",
[0] = "ACTION_TYPE_NOTHING",
[10] = "ACTION_TYPE_QUEST_ITEM",
[9] = "ACTION_TYPE_QUICK_CHAT",
}
function ActionBarSlotType_get_string(value)
return ACTIONBARSLOTTYPE_STRINGS[value] or tostring(value)
}
What's the proper way to include that file in my addon then use the functions?