You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix the enchant string section to allow users to add missing enchants by using the enchant id provided in the message in chat or tooltip on the item with the enchant
StringReplacement.args.desc=ACH:Description(L["This is the |cff00fc00recommended|r method to keep performance impact to a minimum.\nEnter the |cffFFD100EnchantID|r in the |cffFFD100EnchantID|r input box below. You can obtain the |cffFFD100EnchantID|r in the tooltip of the item."], 22, 'medium')
330
-
StringReplacement.args.selectID=ACH:Input(L["EnchantID"], L["Mouseover an item that has an enchant to view the id in the tooltip. \n|cffFFD100Hint:|r If you do not see it listed, make sure you have the option enabled and that the item even has the enchant on it."], 23, nil, nil, function() returnEnchantIDSelected--[[get]]end, function(info, value) EnchantIDSelected=value--[[set func]]end, nil, nil, --[[function(_, value) if value and E.Libs.GetEnchantList.LibGetEnchantDB[tonumber(value)] then return true else return false end end]]nil)
StringReplacement.args.desc=ACH:Description(L["This is the |cff00fc00recommended|r method to keep performance impact to a minimum.\nEnter the |cffFFD100EnchantID|r in the |cffFFD100EnchantID|r input box below. You can obtain the |cffFFD100EnchantID|r in the tooltip of the item.\n\n|cffFFD100Notice|r: You can use this if you find an enchant not in the database currently. This will keep you from having to wait for a new update."], 22, 'medium')
StringReplacement.args.selectID=ACH:Input(L["EnchantID"], L["Mouseover an item that has an enchant to view the id in the tooltip. \n|cffFFD100Hint:|r If you do not see it listed, make sure you have the option enabled and that the item even has the enchant on it."], 25, nil, nil, function() returnEnchantIDSelectedend, function(info, value) EnchantIDSelected=valueend)
343
+
StringReplacement.args.string = ACH:Input(function() local enchantName = EnchantIDSelected and EnchantIDSelected ~= '' and E.Libs.GetEnchantList.LibGetEnchantDB[tonumber(EnchantIDSelected)] if EnchantIDSelected and EnchantIDSelected ~= '' then return format(L["|cFFCA3C3CDefault String|r: |cff00fc00%s|r"], enchantName or 'Not In Database') else return L["No EnchantID Selected"] end end, function() if EnchantIDSelected and EnchantIDSelected ~= '' then return format(L["|cFFCA3C3CEnchantID:|r |cffFFD100%s|r|n|cFFCA3C3CModified String:|r |cff00fc00%s|r"], EnchantIDSelected, E.global.cataarmory.enchantStrings.UserReplaced[tonumber(EnchantIDSelected)] or L["Not Modified"]) end return '' end, 26, nil, 'full', function() return EnchantIDSelected and EnchantIDSelected ~= '' and (E.global.cataarmory.enchantStrings.UserReplaced[tonumber(EnchantIDSelected)] or E.Libs.GetEnchantList.LibGetEnchantDB[tonumber(EnchantIDSelected)]) or nil end, function(_, value) HandleReplacement(value) end, function() if not EnchantIDSelected or EnchantIDSelected == '' then return true end return false end)
0 commit comments