Maintenance patch
This commit is contained in:
@@ -1501,7 +1501,7 @@ do
|
||||
},
|
||||
|
||||
{type = "blank"},
|
||||
{type = "label", get = function() return "Aligned Text Columns" end, text_template = subSectionTitleTextTemplate}, --localize-me
|
||||
{type = "label", get = function() return Loc["STRING_OPTIONS_ALIGNED_TEXT_COLUMNS"] end, text_template = subSectionTitleTextTemplate},
|
||||
|
||||
{--inline text enabled
|
||||
type = "toggle",
|
||||
@@ -1513,7 +1513,7 @@ do
|
||||
afterUpdate()
|
||||
end,
|
||||
name = Loc ["STRING_ENABLED"],
|
||||
desc = "Vertically align texts in the right side as a vertical line.",
|
||||
desc = Loc ["STRING_OPTIONS_ALIGNED_TEXT_COLUMNS_DESC"],
|
||||
},
|
||||
|
||||
{--lineText2 (left, usuali is the 'done' amount)
|
||||
@@ -1527,8 +1527,8 @@ do
|
||||
min = 0,
|
||||
max = 125,
|
||||
step = 1,
|
||||
name = "Text 1 Offset",
|
||||
desc = "Offset from right border",
|
||||
name = string.format(Loc["STRING_OPTIONS_ALIGNED_TEXT_COLUMNS_OFFSET"], 1),
|
||||
desc = Loc["STRING_OPTIONS_ALIGNED_TEXT_COLUMNS_OFFSET_DESC"],
|
||||
},
|
||||
|
||||
{--lineText3 (in the middle)
|
||||
@@ -1542,8 +1542,8 @@ do
|
||||
min = 0,
|
||||
max = 75,
|
||||
step = 1,
|
||||
name = "Text 2 Offset",
|
||||
desc = "Offset from right border",
|
||||
name = string.format(Loc["STRING_OPTIONS_ALIGNED_TEXT_COLUMNS_OFFSET"], 2),
|
||||
desc = Loc["STRING_OPTIONS_ALIGNED_TEXT_COLUMNS_OFFSET_DESC"],
|
||||
},
|
||||
|
||||
{--lineText4 (closest to the right)
|
||||
@@ -1557,8 +1557,8 @@ do
|
||||
min = 0,
|
||||
max = 50,
|
||||
step = 1,
|
||||
name = "Text 3 Offset",
|
||||
desc = "Offset from right border",
|
||||
name = string.format(Loc["STRING_OPTIONS_ALIGNED_TEXT_COLUMNS_OFFSET"], 3),
|
||||
desc = Loc["STRING_OPTIONS_ALIGNED_TEXT_COLUMNS_OFFSET_DESC"],
|
||||
},
|
||||
|
||||
{type = "blank"},
|
||||
@@ -1683,7 +1683,7 @@ do
|
||||
local sectionOptions = {
|
||||
{type = "label", get = function() return Loc ["STRING_OPTIONS_GENERAL_ANCHOR"] end, text_template = subSectionTitleTextTemplate},
|
||||
|
||||
{--text color
|
||||
{--text color 1
|
||||
type = "color",
|
||||
get = function()
|
||||
local r, g, b = unpack(currentInstance.row_info.fixed_text_color)
|
||||
@@ -1696,7 +1696,7 @@ do
|
||||
name = Loc ["STRING_OPTIONS_TEXT_FIXEDCOLOR"],
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_FIXEDCOLOR_DESC"],
|
||||
},
|
||||
{--text size
|
||||
{--text size 2
|
||||
type = "range",
|
||||
get = function() return currentInstance.row_info.font_size end,
|
||||
set = function (self, fixedparam, value)
|
||||
@@ -1709,7 +1709,7 @@ do
|
||||
name = Loc ["STRING_OPTIONS_TEXT_SIZE"],
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_SIZE_DESC"],
|
||||
},
|
||||
{--text font
|
||||
{--text font 3
|
||||
type = "select",
|
||||
get = function() return currentInstance.row_info.font_face end,
|
||||
values = function()
|
||||
@@ -1718,7 +1718,7 @@ do
|
||||
name = Loc ["STRING_OPTIONS_TEXT_FONT"],
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_FONT_DESC"],
|
||||
},
|
||||
{--percent type
|
||||
{--percent type 4
|
||||
type = "select",
|
||||
get = function() return currentInstance.row_info.percent_type end,
|
||||
values = function()
|
||||
@@ -1729,11 +1729,11 @@ do
|
||||
},
|
||||
|
||||
|
||||
{type = "blank"},
|
||||
--left text options
|
||||
{type = "blank"}, --5
|
||||
--left text options 6
|
||||
{type = "label", get = function() return Loc ["STRING_OPTIONS_TEXT_LEFT_ANCHOR"] end, text_template = subSectionTitleTextTemplate},
|
||||
|
||||
{--use class colors
|
||||
{--use class colors 7
|
||||
type = "toggle",
|
||||
get = function() return currentInstance.row_info.textL_class_colors end,
|
||||
set = function (self, fixedparam, value)
|
||||
@@ -1743,7 +1743,7 @@ do
|
||||
name = Loc ["STRING_OPTIONS_BAR_COLORBYCLASS"],
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_LCLASSCOLOR_DESC"],
|
||||
},
|
||||
{--outline
|
||||
{--outline 8
|
||||
type = "toggle",
|
||||
get = function() return currentInstance.row_info.textL_outline end,
|
||||
set = function (self, fixedparam, value)
|
||||
@@ -1753,7 +1753,7 @@ do
|
||||
name = Loc ["STRING_OPTIONS_TEXT_LOUTILINE"],
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_LOUTILINE_DESC"],
|
||||
},
|
||||
{--outline small
|
||||
{--outline small 9
|
||||
type = "toggle",
|
||||
get = function() return currentInstance.row_info.textL_outline_small end,
|
||||
set = function (self, fixedparam, value)
|
||||
@@ -1763,7 +1763,7 @@ do
|
||||
name = "Outline", --localize-me
|
||||
desc = "Text Outline",
|
||||
},
|
||||
{--outline small color
|
||||
{--outline small color 10
|
||||
type = "color",
|
||||
get = function()
|
||||
local r, g, b = unpack(currentInstance.row_info.textL_outline_small_color)
|
||||
@@ -1776,7 +1776,7 @@ do
|
||||
name = "Outline Color",
|
||||
desc = "Outline Color",
|
||||
},
|
||||
{--position number
|
||||
{--position number 11
|
||||
type = "toggle",
|
||||
get = function() return currentInstance.row_info.textL_show_number end,
|
||||
set = function (self, fixedparam, value)
|
||||
@@ -1786,7 +1786,7 @@ do
|
||||
name = Loc ["STRING_OPTIONS_TEXT_LPOSITION"],
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_LPOSITION_DESC"],
|
||||
},
|
||||
{--translit text
|
||||
{--translit text 12
|
||||
type = "toggle",
|
||||
get = function() return currentInstance.row_info.textL_translit_text end,
|
||||
set = function (self, fixedparam, value)
|
||||
@@ -1797,9 +1797,9 @@ do
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_LTRANSLIT_DESC"],
|
||||
},
|
||||
|
||||
{type = "blank"},
|
||||
{type = "blank"}, --13
|
||||
|
||||
{--custom left text
|
||||
{--custom left text 14
|
||||
type = "toggle",
|
||||
get = function() return currentInstance.row_info.textL_enable_custom_text end,
|
||||
set = function (self, fixedparam, value)
|
||||
@@ -1809,7 +1809,7 @@ do
|
||||
name = Loc ["STRING_OPTIONS_BARLEFTTEXTCUSTOM"],
|
||||
desc = Loc ["STRING_OPTIONS_BARLEFTTEXTCUSTOM_DESC"],
|
||||
},
|
||||
{--open custom text editor
|
||||
{--open custom text editor 15
|
||||
type = "execute",
|
||||
func = function(self)
|
||||
local callback = function(text)
|
||||
@@ -1822,15 +1822,15 @@ do
|
||||
end,
|
||||
icontexture = [[Interface\GLUES\LOGIN\Glues-CheckBox-Check]],
|
||||
--icontexcoords = {160/512, 179/512, 142/512, 162/512},
|
||||
name = "Edit Custom Text", --localize-me
|
||||
name = Loc ["STRING_OPTIONS_EDIT_CUSTOM_TEXT"],
|
||||
desc = Loc ["STRING_OPTIONS_OPEN_ROWTEXT_EDITOR"],
|
||||
},
|
||||
|
||||
{type = "breakline"},
|
||||
--right text options
|
||||
{type = "breakline"}, --16
|
||||
--right text options 17
|
||||
{type = "label", get = function() return Loc ["STRING_OPTIONS_TEXT_RIGHT_ANCHOR"] end, text_template = subSectionTitleTextTemplate},
|
||||
|
||||
{--use class colors
|
||||
{--use class colors 18
|
||||
type = "toggle",
|
||||
get = function() return currentInstance.row_info.textR_class_colors end,
|
||||
set = function (self, fixedparam, value)
|
||||
@@ -1840,7 +1840,7 @@ do
|
||||
name = Loc ["STRING_OPTIONS_BAR_COLORBYCLASS"],
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_LCLASSCOLOR_DESC"],
|
||||
},
|
||||
{--outline
|
||||
{--outline 19
|
||||
type = "toggle",
|
||||
get = function() return currentInstance.row_info.textR_outline end,
|
||||
set = function (self, fixedparam, value)
|
||||
@@ -1850,7 +1850,7 @@ do
|
||||
name = Loc ["STRING_OPTIONS_TEXT_LOUTILINE"],
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_LOUTILINE_DESC"],
|
||||
},
|
||||
{--outline small
|
||||
{--outline small 20
|
||||
type = "toggle",
|
||||
get = function() return currentInstance.row_info.textR_outline_small end,
|
||||
set = function (self, fixedparam, value)
|
||||
@@ -1860,7 +1860,7 @@ do
|
||||
name = "Outline", --localize-me
|
||||
desc = "Text Outline",
|
||||
},
|
||||
{--outline small color
|
||||
{--outline small color 21
|
||||
type = "color",
|
||||
get = function()
|
||||
local r, g, b = unpack(currentInstance.row_info.textR_outline_small_color)
|
||||
@@ -1874,9 +1874,9 @@ do
|
||||
desc = "Outline Color",
|
||||
},
|
||||
|
||||
{type = "blank"},
|
||||
{type = "blank"}, --22
|
||||
|
||||
{--show total
|
||||
{--show total --23
|
||||
type = "toggle",
|
||||
get = function() return currentInstance.row_info.textR_show_data[1] end,
|
||||
set = function (self, fixedparam, value)
|
||||
@@ -1886,7 +1886,7 @@ do
|
||||
name = Loc ["STRING_OPTIONS_TEXT_SHOW_TOTAL"],
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_SHOW_TOTAL_DESC"],
|
||||
},
|
||||
{--show per second
|
||||
{--show per second 24
|
||||
type = "toggle",
|
||||
get = function() return currentInstance.row_info.textR_show_data[2] end,
|
||||
set = function (self, fixedparam, value)
|
||||
@@ -1896,7 +1896,7 @@ do
|
||||
name = Loc ["STRING_OPTIONS_TEXT_SHOW_PS"],
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_SHOW_PS_DESC"],
|
||||
},
|
||||
{--show percent
|
||||
{--show percent 25
|
||||
type = "toggle",
|
||||
get = function() return currentInstance.row_info.textR_show_data[3] end,
|
||||
set = function (self, fixedparam, value)
|
||||
@@ -1907,9 +1907,9 @@ do
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_SHOW_PERCENT_DESC"],
|
||||
},
|
||||
|
||||
{type = "blank"},
|
||||
{type = "blank"}, --26
|
||||
|
||||
{--separator
|
||||
{--separator 27
|
||||
type = "select",
|
||||
get = function() return currentInstance.row_info.textR_separator end,
|
||||
values = function()
|
||||
@@ -1918,7 +1918,7 @@ do
|
||||
name = Loc ["STRING_OPTIONS_TEXT_SHOW_SEPARATOR"],
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_SHOW_SEPARATOR_DESC"],
|
||||
},
|
||||
{--brackets
|
||||
{--brackets 28
|
||||
type = "select",
|
||||
get = function() return currentInstance.row_info.textR_bracket end,
|
||||
values = function()
|
||||
@@ -1928,9 +1928,11 @@ do
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_SHOW_BRACKET_DESC"],
|
||||
},
|
||||
|
||||
{type = "blank"},
|
||||
{type = "label", get = function() return Loc["STRING_OPTIONS_ALIGNED_TEXT_COLUMNS"] .. " (".. Loc["STRING_OPTIONSMENU_ROWSETTINGS"] ..")\n" .. Loc["STRING_OPTIONS_ALIGNED_TEXT_COLUMNS_WARNING"] end, text_template = subSectionTitleTextTemplate}, --29
|
||||
|
||||
{--custom right text
|
||||
{type = "blank"}, --30
|
||||
|
||||
{--custom right text 31
|
||||
type = "toggle",
|
||||
get = function() return currentInstance.row_info.textR_enable_custom_text end,
|
||||
set = function (self, fixedparam, value)
|
||||
@@ -1940,7 +1942,7 @@ do
|
||||
name = Loc ["STRING_OPTIONS_BARLEFTTEXTCUSTOM"],
|
||||
desc = Loc ["STRING_OPTIONS_BARLEFTTEXTCUSTOM_DESC"],
|
||||
},
|
||||
{--open custom text editor
|
||||
{--open custom text editor 32
|
||||
type = "execute",
|
||||
func = function(self)
|
||||
local callback = function(text)
|
||||
@@ -1953,13 +1955,31 @@ do
|
||||
end,
|
||||
icontexture = [[Interface\GLUES\LOGIN\Glues-CheckBox-Check]],
|
||||
--icontexcoords = {160/512, 179/512, 142/512, 162/512},
|
||||
name = "Edit Custom Text", --localize-me
|
||||
name = Loc ["STRING_OPTIONS_EDIT_CUSTOM_TEXT"],
|
||||
desc = Loc ["STRING_OPTIONS_OPEN_ROWTEXT_EDITOR"],
|
||||
},
|
||||
}
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, true, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
|
||||
local separatorOption = sectionFrame.widget_list[23]
|
||||
local bracketOption = sectionFrame.widget_list[24]
|
||||
local warningLabel = sectionFrame.widget_list[25]
|
||||
Details.options.textSeparatorOption = separatorOption
|
||||
Details.options.textbracketOption = bracketOption
|
||||
|
||||
sectionFrame:SetScript("OnShow", function()
|
||||
if (currentInstance.use_multi_fontstrings) then
|
||||
separatorOption:Disable()
|
||||
bracketOption:Disable()
|
||||
warningLabel:Show()
|
||||
else
|
||||
separatorOption:Enable()
|
||||
bracketOption:Enable()
|
||||
warningLabel:Hide()
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
tinsert(Details.optionsSection, buildSection)
|
||||
@@ -3629,10 +3649,11 @@ do
|
||||
_detalhes:ShowImportWindow (str, nil, "Details! Export Profile")
|
||||
end
|
||||
end,
|
||||
name = "Export Profile", --localize-me
|
||||
name = Loc["STRING_OPTIONS_EXPORT_PROFILE"],
|
||||
icontexture = [[Interface\Buttons\UI-GuildButton-MOTD-Up]],
|
||||
icontexcoords = {1, 0, 0, 1},
|
||||
},
|
||||
|
||||
{--import profile
|
||||
type = "execute",
|
||||
func = function(self)
|
||||
@@ -3642,12 +3663,12 @@ do
|
||||
end
|
||||
|
||||
--prompt text panel returns what the user inserted in the text field in the first argument
|
||||
DF:ShowTextPromptPanel("Insert a Name for the New Profile:", function (newProfileName) --localize-me
|
||||
DF:ShowTextPromptPanel(Loc["STRING_OPTIONS_IMPORT_PROFILE_NAME"] .. ":", function (newProfileName)
|
||||
Details:ImportProfile (profileString, newProfileName)
|
||||
end)
|
||||
end, "Details! Import Profile (paste string)") --localize-me
|
||||
end, Loc["STRING_OPTIONS_IMPORT_PROFILE_PASTE"])
|
||||
end,
|
||||
name = "Import Profile", --localize-me
|
||||
name = Loc["STRING_OPTIONS_IMPORT_PROFILE"],
|
||||
icontexture = [[Interface\BUTTONS\UI-GuildButton-OfficerNote-Up]],
|
||||
icontexcoords = {0, 1, 0, 1},
|
||||
},
|
||||
@@ -4181,7 +4202,7 @@ do
|
||||
end,
|
||||
icontexture = [[Interface\HELPFRAME\OpenTicketIcon]],
|
||||
icontexcoords = {.1, .9, .1, .9},
|
||||
name = "Open Broker Text Editor", --localize-me
|
||||
name = Loc ["STRING_OPTIONS_OPENBROKER"],
|
||||
desc = Loc ["STRING_OPTIONS_OPEN_ROWTEXT_EDITOR"],
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user