This commit is contained in:
Crum
2018-11-15 22:13:06 -06:00
parent ca31e8524d
commit bfba2a175d
3 changed files with 29 additions and 26 deletions
+21 -21
View File
@@ -32,24 +32,24 @@ E.Options.args.chat = {
name = GENERAL, name = GENERAL,
args = { args = {
header = { header = {
order = 0, order = 1,
type = "header", type = "header",
name = GENERAL name = GENERAL
}, },
url = { url = {
order = 1, order = 2,
type = "toggle", type = "toggle",
name = L["URL Links"], name = L["URL Links"],
desc = L["Attempt to create URL links inside the chat."] desc = L["Attempt to create URL links inside the chat."]
}, },
shortChannels = { shortChannels = {
order = 2, order = 3,
type = "toggle", type = "toggle",
name = L["Short Channels"], name = L["Short Channels"],
desc = L["Shorten the channel names in chat."] desc = L["Shorten the channel names in chat."]
}, },
hyperlinkHover = { hyperlinkHover = {
order = 3, order = 4,
type = "toggle", type = "toggle",
name = L["Hyperlink Hover"], name = L["Hyperlink Hover"],
desc = L["Display the hyperlink tooltip while hovering over a hyperlink."], desc = L["Display the hyperlink tooltip while hovering over a hyperlink."],
@@ -63,7 +63,7 @@ E.Options.args.chat = {
end end
}, },
sticky = { sticky = {
order = 4, order = 5,
type = "toggle", type = "toggle",
name = L["Sticky Chat"], name = L["Sticky Chat"],
desc = 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."], desc = 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."],
@@ -72,7 +72,7 @@ E.Options.args.chat = {
end end
}, },
fade = { fade = {
order = 5, order = 6,
type = "toggle", type = "toggle",
name = L["Fade Chat"], name = L["Fade Chat"],
desc = L["Fade the chat text when there is no activity."], desc = L["Fade the chat text when there is no activity."],
@@ -82,7 +82,7 @@ E.Options.args.chat = {
end end
}, },
fadeUndockedTabs = { fadeUndockedTabs = {
order = 6, order = 7,
type = "toggle", type = "toggle",
name = L["Fade Undocked Tabs"], name = L["Fade Undocked Tabs"],
desc = L["Fades the text on chat tabs that are not docked at the left or right chat panel."], desc = L["Fades the text on chat tabs that are not docked at the left or right chat panel."],
@@ -92,7 +92,7 @@ E.Options.args.chat = {
end end
}, },
fadeTabsNoBackdrop = { fadeTabsNoBackdrop = {
order = 7, order = 8,
type = "toggle", type = "toggle",
name = L["Fade Tabs No Backdrop"], name = L["Fade Tabs No Backdrop"],
desc = L["Fades the text on chat tabs that are docked in a panel where the backdrop is disabled."], desc = L["Fades the text on chat tabs that are docked in a panel where the backdrop is disabled."],
@@ -102,13 +102,13 @@ E.Options.args.chat = {
end end
}, },
chatHistory = { chatHistory = {
order = 8, order = 9,
type = "toggle", type = "toggle",
name = L["Chat History"], name = L["Chat History"],
desc = L["Log the main chat frames history. So when you reloadui or log in and out you see the history from your last session."] desc = L["Log the main chat frames history. So when you reloadui or log in and out you see the history from your last session."]
}, },
useAltKey = { useAltKey = {
order = 9, order = 10,
type = "toggle", type = "toggle",
name = L["Use Alt Key"], name = L["Use Alt Key"],
desc = L["Require holding the Alt key down to move cursor or cycle through messages in the editbox."], desc = L["Require holding the Alt key down to move cursor or cycle through messages in the editbox."],
@@ -118,12 +118,12 @@ E.Options.args.chat = {
end end
}, },
spacer = { spacer = {
order = 10, order = 11,
type = "description", type = "description",
name = " ", name = " "
}, },
throttleInterval = { throttleInterval = {
order = 11, order = 12,
type = "range", type = "range",
name = L["Spam Interval"], name = L["Spam Interval"],
desc = L["Prevent the same messages from displaying in chat more than once within this set amount of seconds, set to zero to disable."], desc = L["Prevent the same messages from displaying in chat more than once within this set amount of seconds, set to zero to disable."],
@@ -136,7 +136,7 @@ E.Options.args.chat = {
end end
}, },
scrollDownInterval = { scrollDownInterval = {
order = 12, order = 13,
type = "range", type = "range",
name = L["Scroll Interval"], name = L["Scroll Interval"],
desc = L["Number of time in seconds to scroll down to the bottom of the chat window if you are not scrolled down completely."], desc = L["Number of time in seconds to scroll down to the bottom of the chat window if you are not scrolled down completely."],
@@ -146,26 +146,26 @@ E.Options.args.chat = {
end end
}, },
numAllowedCombatRepeat = { numAllowedCombatRepeat = {
order = 13, order = 14,
type = "range", type = "range",
name = L["Allowed Combat Repeat"], name = L["Allowed Combat Repeat"],
desc = L["Number of repeat characters while in combat before the chat editbox is automatically closed."], desc = L["Number of repeat characters while in combat before the chat editbox is automatically closed."],
min = 2, max = 10, step = 1 min = 2, max = 10, step = 1
}, },
numScrollMessages = { numScrollMessages = {
order = 14, order = 15,
type = "range", type = "range",
name = L["Scroll Messages"], name = L["Scroll Messages"],
desc = L["Number of messages you scroll for each step."], desc = L["Number of messages you scroll for each step."],
min = 1, max = 10, step = 1, min = 1, max = 10, step = 1
}, },
spacer2 = { spacer2 = {
order = 16, order = 16,
type = "description", type = "description",
name = " ", name = " "
}, },
timeStampFormat = { timeStampFormat = {
order = 15, order = 17,
type = "select", type = "select",
name = L["Chat Timestamps"], name = L["Chat Timestamps"],
desc = "OPTION_TOOLTIP_TIMESTAMPS", desc = "OPTION_TOOLTIP_TIMESTAMPS",
@@ -180,13 +180,13 @@ E.Options.args.chat = {
} }
}, },
useCustomTimeColor = { useCustomTimeColor = {
order = 16, order = 18,
type = "toggle", type = "toggle",
name = L["Custom Timestamp Color"], name = L["Custom Timestamp Color"],
disabled = function() return not E.db.chat.timeStampFormat == "NONE" end disabled = function() return not E.db.chat.timeStampFormat == "NONE" end
}, },
customTimeColor = { customTimeColor = {
order = 17, order = 19,
type = "color", type = "color",
hasAlpha = false, hasAlpha = false,
name = L["Timestamp Color"], name = L["Timestamp Color"],
@@ -94,8 +94,13 @@ local function UpdateButton(button, treeline, selected, canExpand, isExpanded)
button:EnableMouse(false) button:EnableMouse(false)
button.text:SetText("|cff808080"..text..FONT_COLOR_CODE_CLOSE) button.text:SetText("|cff808080"..text..FONT_COLOR_CODE_CLOSE)
else else
button.text:SetText(text) if level > 1 then
button:EnableMouse(true) button.text:SetText("|cffFFFFFF"..text..FONT_COLOR_CODE_CLOSE)
button:EnableMouse(true)
else
button.text:SetText(text)
button:EnableMouse(true)
end
end end
if icon then if icon then
@@ -326,8 +331,6 @@ local methods = {
toggle:SetHeight(14) toggle:SetHeight(14)
toggle:ClearAllPoints() toggle:ClearAllPoints()
toggle:SetPoint("TOPRIGHT", button, "TOPRIGHT", -6, -1) toggle:SetPoint("TOPRIGHT", button, "TOPRIGHT", -6, -1)
toggle:SetNormalTexture("Interface\\Buttons\\UI-MinusButton-UP")
toggle:SetPushedTexture("Interface\\Buttons\\UI-MinusButton-DOWN")
toggle:SetHighlightTexture("Interface\Buttons\UI-PlusButton-Hilight", "ADD") toggle:SetHighlightTexture("Interface\Buttons\UI-PlusButton-Hilight", "ADD")
toggle:SetScript("OnClick", Button_OnClick) toggle:SetScript("OnClick", Button_OnClick)
button.toggle = toggle button.toggle = toggle
+1 -1
View File
@@ -448,7 +448,7 @@ E.Options.args.modulecontrol= {
header = { header = {
order = 0, order = 0,
type = "header", type = "header",
name = L["Core |cff00b30bE|r|cffC4C4C4lvUI|r options."] name = L["Core |cff175581E|r|cffC4C4C4lvUI|r options."]
}, },
actionbar = CreateActionbarsConfig(), actionbar = CreateActionbarsConfig(),
auras = CreateAurasConfig(), auras = CreateAurasConfig(),