Round of Fixes
This commit is contained in:
@@ -7,7 +7,7 @@ local Loc = _G.LibStub("AceLocale-3.0"):GetLocale("Details")
|
||||
--config class colors
|
||||
function Details:OpenClassColorsConfig()
|
||||
if (not _G.DetailsClassColorManager) then
|
||||
DF:CreateSimplePanel(UIParent, 300, 425, Loc ["STRING_OPTIONS_CLASSCOLOR_MODIFY"], "DetailsClassColorManager")
|
||||
DF:CreateSimplePanel(UIParent, 300, 455, Loc ["STRING_OPTIONS_CLASSCOLOR_MODIFY"], "DetailsClassColorManager")
|
||||
local panel = _G.DetailsClassColorManager
|
||||
|
||||
DF:ApplyStandardBackdrop(panel)
|
||||
@@ -191,10 +191,10 @@ function Details:OpenClassColorsConfig()
|
||||
local options_slider_template = DF:GetTemplate("slider", "OPTIONS_SLIDER_TEMPLATE")
|
||||
local options_button_template = DF:GetTemplate("button", "OPTIONS_BUTTON_TEMPLATE")
|
||||
|
||||
DetailsFramework:BuildMenu(panel, deathLogOptions, 5, -285, 700, true, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
DetailsFramework:BuildMenu(panel, deathLogOptions, 5, -315, 700, true, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
|
||||
local deathLogColorsLabel = DF:CreateLabel(panel, "Colors on Death Log:", 12, "yellow")
|
||||
deathLogColorsLabel:SetPoint("topleft", panel, "topleft", 5, -265)
|
||||
deathLogColorsLabel:SetPoint("topleft", panel, "topleft", 5, -295)
|
||||
end
|
||||
|
||||
for class, button in pairs(_G.DetailsClassColorManager.buttons) do
|
||||
|
||||
@@ -574,6 +574,9 @@ do
|
||||
name = Loc ["STRING_OPTIONS_WC_CREATE"],
|
||||
desc = Loc ["STRING_OPTIONS_WC_CREATE_DESC"],
|
||||
},
|
||||
|
||||
{type = "blank"},
|
||||
|
||||
{--class colors
|
||||
type = "execute",
|
||||
func = function(self)
|
||||
@@ -4259,6 +4262,32 @@ do
|
||||
desc = Loc ["STRING_OPTIONS_TOOLTIPS_FONTSHADOW_DESC"],
|
||||
},
|
||||
|
||||
{--text size
|
||||
type = "range",
|
||||
get = function() return _detalhes.tooltip.fontsize end,
|
||||
set = function(self, fixedparam, value)
|
||||
_detalhes.tooltip.fontsize = value
|
||||
afterUpdate()
|
||||
end,
|
||||
min = 5,
|
||||
max = 32,
|
||||
step = 1,
|
||||
name = Loc ["STRING_OPTIONS_TEXT_SIZE"],
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_SIZE_DESC"],
|
||||
},
|
||||
|
||||
{--text font
|
||||
type = "select",
|
||||
get = function() return _detalhes.tooltip.fontface end,
|
||||
values = function()
|
||||
return buildTooltipFontOptions()
|
||||
end,
|
||||
name = Loc ["STRING_OPTIONS_TEXT_FONT"],
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_FONT_DESC"],
|
||||
},
|
||||
|
||||
{type = "blank"},
|
||||
|
||||
{type = "label", get = function() return Loc["STRING_OPTIONS_TOOLTIPS_FONTCOLOR"] end},
|
||||
|
||||
{--text color left
|
||||
@@ -4315,33 +4344,27 @@ do
|
||||
desc = Loc ["STRING_OPTIONS_TOOLTIPS_ANCHORCOLOR"],
|
||||
},
|
||||
|
||||
{--text size
|
||||
type = "range",
|
||||
get = function() return _detalhes.tooltip.fontsize end,
|
||||
set = function(self, fixedparam, value)
|
||||
_detalhes.tooltip.fontsize = value
|
||||
afterUpdate()
|
||||
end,
|
||||
min = 5,
|
||||
max = 32,
|
||||
step = 1,
|
||||
name = Loc ["STRING_OPTIONS_TEXT_SIZE"],
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_SIZE_DESC"],
|
||||
},
|
||||
|
||||
{--text font
|
||||
type = "select",
|
||||
get = function() return _detalhes.tooltip.fontface end,
|
||||
values = function()
|
||||
return buildTooltipFontOptions()
|
||||
end,
|
||||
name = Loc ["STRING_OPTIONS_TEXT_FONT"],
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_FONT_DESC"],
|
||||
},
|
||||
|
||||
{type = "blank"},
|
||||
{type = "label", get = function() return Loc ["STRING_OPTIONS_MENU_ATTRIBUTESETTINGS_ANCHOR"] end, text_template = subSectionTitleTextTemplate},
|
||||
|
||||
{--bar color
|
||||
type = "color",
|
||||
get = function()
|
||||
local r, g, b, a = unpack(_detalhes.tooltip.bar_color)
|
||||
return {r, g, b, a}
|
||||
end,
|
||||
set = function(self, r, g, b, a)
|
||||
local color = _detalhes.tooltip.bar_color
|
||||
color[1] = r
|
||||
color[2] = g
|
||||
color[3] = b
|
||||
color[4] = a
|
||||
afterUpdate()
|
||||
end,
|
||||
name = "Bar Color",
|
||||
desc = "Bar Color",
|
||||
},
|
||||
|
||||
{--background color
|
||||
type = "color",
|
||||
get = function()
|
||||
@@ -4360,6 +4383,26 @@ do
|
||||
desc = Loc ["STRING_OPTIONS_TOOLTIPS_BACKGROUNDCOLOR"],
|
||||
},
|
||||
|
||||
{--divisor color
|
||||
type = "color",
|
||||
get = function()
|
||||
local r, g, b, a = unpack(_detalhes.tooltip.divisor_color)
|
||||
return {r, g, b, a}
|
||||
end,
|
||||
set = function(self, r, g, b, a)
|
||||
local color = _detalhes.tooltip.divisor_color
|
||||
color[1] = r
|
||||
color[2] = g
|
||||
color[3] = b
|
||||
color[4] = a
|
||||
afterUpdate()
|
||||
end,
|
||||
name = "Divisor Color",
|
||||
desc = "Divisor Color",
|
||||
},
|
||||
|
||||
{type = "blank"},
|
||||
|
||||
{--show amount
|
||||
type = "toggle",
|
||||
get = function() return _detalhes.tooltip.show_amount end,
|
||||
|
||||
Reference in New Issue
Block a user