General.args.url=ACH:Toggle(L["URL Links"],L["Attempt to create URL links inside the chat."],1)
General.args.shortChannels=ACH:Toggle(L["Short Channels"],L["Shorten the channel names in chat."],2)
General.args.hideChannels=ACH:Toggle(L["Hide Channels"],L["Hide the channel names in chat."],3)
General.args.hyperlinkHover=ACH:Toggle(L["Hyperlink Hover"],L["Display the hyperlink tooltip while hovering over a hyperlink."],4,nil,nil,nil,nil,function(info,value)E.db.chat[info[#info]]=valueCH:ToggleHyperlink(value)end)
General.args.sticky=ACH:Toggle(L["Sticky Chat"],L["When opening the Chat Editbox to type a message having this option set means it will retain the last channel you spoke in. If this option is turned off opening the Chat Editbox should always default to the SAY channel."],5)
General.args.emotionIcons=ACH:Toggle(L["Emotion Icons"],L["Display emotion icons in chat."],6)
General.args.lfgIcons=ACH:Toggle(L["Role Icon"],L["Display LFG Icons in group chat."],7,nil,nil,nil,nil,function(info,value)E.db.chat.lfgIcons=valueCH:CheckLFGRoles()end,nil,notE.Retail)
General.args.useAltKey=ACH:Toggle(L["Use Alt Key"],L["Require holding the Alt key down to move cursor or cycle through messages in the editbox."],8,nil,nil,nil,nil,function(info,value)E.db.chat.useAltKey=valueCH:UpdateSettings()end)
General.args.autoClosePetBattleLog=ACH:Toggle(L["Auto-Close Pet Battle Log"],nil,9,nil,nil,nil,nil,nil,nil,notE.Retail)
General.args.useBTagName=ACH:Toggle(L["Use Real ID BattleTag"],L["Use BattleTag instead of Real ID names in chat. Chat History will always use BattleTag."],10)
General.args.socialQueueMessages=ACH:Toggle(L["Quick Join Messages"],L["Show clickable Quick Join messages inside of the chat."],11,nil,nil,nil,nil,nil,nil,notE.Retail)
General.args.copyChatLines=ACH:Toggle(L["Copy Chat Lines"],L["Adds an arrow infront of the chat lines to copy the entire line."],12)
General.args.throttleInterval=ACH:Range(L["Spam Interval"],L["Prevent the same messages from displaying in chat more than once within this set amount of seconds, set to zero to disable."],20,{min=0,max=120,step=1},nil,nil,function(info,value)E.db.chat[info[#info]]=valueifvalue==0thenCH:DisableChatThrottle()endend)
General.args.scrollDownInterval=ACH:Range(L["Scroll Interval"],L["Number of time in seconds to scroll down to the bottom of the chat window if you are not scrolled down completely."],21,{min=0,max=120,step=1})
General.args.numScrollMessages=ACH:Range(L["Scroll Messages"],L["Number of messages you scroll for each step."],22,{min=1,max=12,step=1})
General.args.editBoxPosition=ACH:Select(L["Chat EditBox Position"],L["Position of the Chat EditBox, if datatexts are disabled this will be forced to be above chat."],26,{BELOW_CHAT=L["Below Chat"],ABOVE_CHAT=L["Above Chat"],BELOW_CHAT_INSIDE=L["Below Chat (Inside)"],ABOVE_CHAT_INSIDE=L["Above Chat (Inside)"]},nil,nil,nil,function(info,value)E.db.chat[info[#info]]=valueCH:UpdateEditboxAnchors()end)
General.args.tabSelection.args.tabSelectedTextColor=ACH:Color(L["Selected Text Color"],nil,2,nil,nil,function(info)localt,d=E.db.chat[info[#info]],P.chat[info[#info]]returnt.r,t.g,t.b,t.a,d.r,d.g,d.bend,function(info,r,g,b)localt=E.db.chat[info[#info]]t.r,t.g,t.b=r,g,bCH:UpdateChatTabColors()end,function()returnnotE.db.chat.tabSelectedTextEnabledend)
General.args.historyGroup.args.chatHistory=ACH:Toggle(L["Enable"],L["Log the main chat frames history. So when you reloadui or log in and out you see the history from your last session."],1)
General.args.combatRepeat.args.numAllowedCombatRepeat=ACH:Range(L["Number Allowed"],L["Number of repeat characters while in combat before the chat editbox is automatically closed."],2,{min=2,max=10,step=1})
General.args.fadingGroup.args.fade=ACH:Toggle(L["Enable"],L["Fade the chat text when there is no activity."],1)
General.args.fadingGroup.args.inactivityTimer=ACH:Range(L["Inactivity Timer"],L["Controls how many seconds of inactivity has to pass before chat is faded."],2,{min=5,softMax=120,step=1},nil,nil,nil,function()returnnotCH.db.fadeend)
General.args.alerts.args.keywordAlerts.args.keywords=ACH:Input(L["Keywords"],L["List of words to color in chat if found in a message. If you wish to add multiple words you must separate the word with a comma. To search for your current name you can use %MYNAME%.\n\nExample:\n%MYNAME%, ElvUI, RBGs, Tank"],2,4,'double',nil,function(info,value)E.db.chat[info[#info]]=valueCH:UpdateChatKeywords()end)
General.args.voicechatGroup.args.hideVoiceButtons=ACH:Toggle(L["Hide Voice Buttons"],L["Completely hide the voice buttons."],1,nil,nil,nil,nil,function(info,value)E.db.chat[info[#info]]=valueE.ShowPopup=trueend)
General.args.voicechatGroup.args.pinVoiceButtons=ACH:Toggle(L["Pin Voice Buttons"],L["This will pin the voice buttons to the chat's tab panel. Unchecking it will create a voice button panel with a mover."],2,nil,nil,nil,nil,function(info,value)E.db.chat[info[#info]]=valueE.ShowPopup=trueend,function()returnE.db.chat.hideVoiceButtonsend)
General.args.voicechatGroup.args.voicePanelAlpha=ACH:Range(L["Alpha"],L["Change the alpha level of the frame."],5,{min=0,max=1,step=0.01},nil,nil,function(info,value)E.db.chat[info[#info]]=valueCH:ResetVoicePanelAlpha()end,function()returnE.db.chat.hideVoiceButtonsorE.db.chat.pinVoiceButtonsornotE.db.chat.mouseoverVoicePanelend)
General.args.timestampGroup.args.timeStampLocalTime=ACH:Toggle(L["Local Time"],L["If not set to true then the server time will be displayed instead."],1)
General.args.classColorMentionGroup=ACH:Group(L["Class Color Mentions"],nil,100,nil,nil,nil,function()returnnotE.Chat.Initializedend)
General.args.classColorMentionGroup.args.classColorMentionsChat=ACH:Toggle(L["Chat"],L["Use class color for the names of players when they are mentioned."],1,nil,nil,nil,function(info)returnE.db.chat[info[#info]]end,function(info,value)E.db.chat[info[#info]]=valueend,function()returnE.private.general.chatBubbles=='disabled'end)
General.args.classColorMentionGroup.args.classColorMentionsSpeech=ACH:Toggle(L["Chat Bubbles"],L["Use class color for the names of players when they are mentioned."],2,nil,nil,nil,function(info)returnE.private.general[info[#info]]end,function(info,value)E.private.general[info[#info]]=valueE.ShowPopup=trueend)
General.args.classColorMentionGroup.args.classColorMentionExcludeName=ACH:Input(L["Exclude Name"],L["Excluded names will not be class colored."],3,nil,nil,C.Blank,function(_,value)ifvalue==''orgsub(value,'%s+','')==''thenreturnendE.global.chat.classColorMentionExcludedNames[strlower(value)]=valueend)
Panels.args.fadeUndockedTabs=ACH:Toggle(L["Fade Undocked Tabs"],L["Fades the text on chat tabs that are not docked at the left or right chat panel."],1,nil,nil,nil,nil,function(info,value)E.db.chat[info[#info]]=valueCH:UpdateChatTabs()end,nil,function()returnnotE.Chat.Initializedend)
Panels.args.fadeTabsNoBackdrop=ACH:Toggle(L["Fade Tabs No Backdrop"],L["Fades the text on chat tabs that are docked in a panel where the backdrop is disabled."],2,nil,nil,nil,nil,function(info,value)E.db.chat[info[#info]]=valueCH:UpdateChatTabs()end,nil,function()returnnotE.Chat.Initializedend)
Panels.args.fadeChatToggles=ACH:Toggle(L["Fade Chat Toggles"],L["Fades the buttons that toggle chat windows when that window has been toggled off."],4,nil,nil,nil,nil,function(info,value)E.db.chat[info[#info]]=valueCH:RefreshToggleButtons()end,function()returnE.db.chat.hideChatTogglesend)
Panels.args.panels.args.separateSizes=ACH:Toggle(L["Separate Panel Sizes"],L["Enable the use of separate size options for the right chat panel."],2,nil,nil,nil,nil,function(info,value)E.db.chat[info[#info]]=valueCH:PositionChats()end)
Panels.args.panels.args.panelHeight=ACH:Range(function()returnE.db.chat.separateSizesandL["Left Panel Height"]orL["Panel Height"]end,function()returnE.db.chat.separateSizesandL["Adjust the height of your left chat panel."]ornilend,3,{min=60,max=1000,step=1},nil,nil,function(info,value)E.db.chat[info[#info]]=valueCH:PositionChats()end)
Panels.args.panels.args.panelWidth=ACH:Range(function()returnE.db.chat.separateSizesandL["Left Panel Width"]orL["Panel Width"]end,function()returnE.db.chat.separateSizesandL["Adjust the width of your left chat panel."]ornilend,4,{min=50,max=2000,step=1},nil,nil,function(info,value)E.db.chat[info[#info]]=valueCH:PositionChats()end)
Panels.args.panels.args.panelBackdrop=ACH:Select(L["Panel Backdrop"],L["Toggle showing of the left and right chat panels."],5,{HIDEBOTH=L["Hide Both"],SHOWBOTH=L["Show Both"],LEFT=L["Left Only"],RIGHT=L["Right Only"]},nil,nil,nil,function(info,value)E.db.chat[info[#info]]=valueLO:ToggleChatPanels()CH:PositionChats()CH:UpdateEditboxAnchors()end)
Panels.args.panels.args.panelSnapping=ACH:Toggle(L["Panel Snapping"],L["When disabled, the Chat Background color has to be set via Blizzards Chat Tabs Background setting."],6,nil,nil,nil,nil,function(info,value)E.db.chat[info[#info]]=valueCH:PositionChats()end,nil,function()returnnotE.Chat.Initializedend)
Panels.args.panels.args.panelHeightRight=ACH:Range(L["Right Panel Height"],L["Adjust the height of your right chat panel."],7,{min=60,max=1000,step=1},nil,nil,function(info,value)E.db.chat[info[#info]]=valueCH:PositionChats()end,nil,function()returnnotE.db.chat.separateSizesend)
Panels.args.panels.args.panelWidthRight=ACH:Range(L["Right Panel Width"],L["Adjust the width of your right chat panel."],8,{min=50,max=2000,step=1},nil,nil,function(info,value)E.db.chat[info[#info]]=valueCH:PositionChats()end,nil,function()returnnotE.db.chat.separateSizesend)