diff --git a/Locales/enUS.lua b/Locales/enUS.lua index 5d224a7..3c18266 100644 --- a/Locales/enUS.lua +++ b/Locales/enUS.lua @@ -60,12 +60,20 @@ L.UseFullyChargedTooltip = "Use fully charged color for the final stage" L.ShowEmpowerNameTooltip = "Show the spell name for Empowers" -- Name Format +L.NameFormats = "Name Formats" + L.fullName = "Full Name" L.lastName = "Last Name" L.firstName = "First Name" L.firstNameLastInitial = "First Name Last Initial" L.firstInitialLastName = "First Initial Last Name" +L.fullName_Example = "Cleave Training Dummy" +L.lastName_Example = "Dummy" +L.firstName_Example = "Cleave" +L.firstNameLastInitial_Example = "Cleave D." +L.firstInitialLastName_Example = "C. Dummy" + -- Widgets L.Widgets = "Widgets" L.nameText = "Name Text" diff --git a/Menu/Builder.lua b/Menu/Builder.lua index d4b0125..2e25cfe 100644 --- a/Menu/Builder.lua +++ b/Menu/Builder.lua @@ -943,10 +943,18 @@ function Builder:CreateNameFormatOptions(parent, widgetName) f.optionHeight = 20 f.id = "NameFormatOptions" + local tooltips = {} + for _, format in ipairs(const.NameFormatArray) do + local tooltip = L[format] .. ": " .. L[format .. "_Example"] + table.insert(tooltips, tooltip) + end + f.formatDropdown = self:CreateDropdown(f, widgetName, "Format", 200, const.NameFormatArray, const.OPTION_KIND.FORMAT) f.formatDropdown:SetPoint("TOPLEFT", f) + Cell:SetTooltips(f.formatDropdown, "ANCHOR_TOPLEFT", 0, 3, L.NameFormats, unpack(tooltips)) + return f end