StringReplacements.description=ACH:Description(format('%s%s|r',E:RGBToHex(1,0.82,0),L["If you found that some stat labels need to be shorten or abbreviated, select the label from the dropdown below and enter the string to be displayed instead."]),1,'medium',nil,nil,nil,nil,width)
StringReplacements.spacer=ACH:Spacer(2,'full')
StringReplacements.labelSelect=ACH:Select(L["Select A Label"],nil,5,getReplacementTable,nilconfirm,nilwidth,function(_)returnselectedStringend,function(_,value)selectedString=valueGetTextReplacements(selectedString)end,nildisabled,nilhidden)
ItemLevel.color=ACH:Group(L["Text Color Group"],nil,10,nil,function(info)returnE.db.sle.armory.stats.itemLevel[info[#info]]end,function(info,value)E.db.sle.armory.stats.itemLevel[info[#info]]=valueSA:UpdateIlvlFont()SA:UpdateCharacterItemLevel(_G.CharacterFrame,'Character')end)
ItemLevel.color.args.EquippedBlizzColor=ACH:Toggle(L["Use Blizzards Color"],L["This will color the text based on what blizzard would normally use."],2,nil,nil,nil,nilget,nilset,function()returnisItemLevelDisabledend)
ItemLevel.color.args.EquippedGradient=ACH:Toggle(L["Gradient Equipped Color"],L["Colors the equipped item level text as a gradient value based on Average and Equipped gear."],5,nil,nil,nil,nilget,nilset,function()returnisItemLevelDisabledorE.db.sle.armory.stats.itemLevel.EquippedBlizzColorend)
ItemLevel.color.args.EquippedColor=ACH:Color(L["Color of Equipped"],L["Sets the color of equipped item level."],6,false,nil,function(info)localt=E.db.sle.armory.stats.itemLevel[info[#info]]locald=P.sle.armory.stats.itemLevel[info[#info]]returnt.r,t.g,t.b,t.a,d.r,d.g,d.b,d.aend,function(info,r,g,b,a)E.db.sle.armory.stats.itemLevel[info[#info]]={}localt=E.db.sle.armory.stats.itemLevel[info[#info]]t.r,t.g,t.b,t.a=r,g,b,aM:UpdateCharacterInfo()PaperDollFrame_UpdateStats()end,function()returnisItemLevelDisabledorE.db.sle.armory.stats.itemLevel.EquippedGradientorE.db.sle.armory.stats.itemLevel.EquippedBlizzColorend)
ItemLevel.color.args.AverageBlizzColor=ACH:Toggle(L["Use Blizzards Color"],L["This will color the text based on what blizzard would normally use."],11,nil,nil,nil,nilget,nilset,function()returnisItemLevelDisabledornotE.db.sle.armory.stats.itemLevel.IlvlFullend)
ItemLevel.color.args.AverageColor=ACH:Color(L["Color of Average"],L["Sets the color of average item level."],12,false,nil,function(info)localt=E.db.sle.armory.stats.itemLevel[info[#info]]locald=P.sle.armory.stats.itemLevel[info[#info]]returnt.r,t.g,t.b,t.a,d.r,d.g,d.b,d.aend,function(info,r,g,b,a)E.db.sle.armory.stats.itemLevel[info[#info]]={}localt=E.db.sle.armory.stats.itemLevel[info[#info]]t.r,t.g,t.b,t.a=r,g,b,aM:UpdateCharacterInfo()PaperDollFrame_UpdateStats()end,function()returnisItemLevelDisabledornotE.db.sle.armory.stats.itemLevel.IlvlFullorE.db.sle.armory.stats.itemLevel.AverageBlizzColorend)