Localize strings, correct grammar and spelling, fix close menu error, add hide omen menu item.
This commit is contained in:
@@ -1274,12 +1274,12 @@ do
|
||||
local Omen_TitleDropDownMenu = CreateFrame("Frame", "Omen_TitleDropDownMenu")
|
||||
Omen_TitleDropDownMenu.displayMode = "MENU"
|
||||
Omen_TitleDropDownMenu.initialize = function(self, level)
|
||||
if (not level) then return end
|
||||
if not level then return end
|
||||
for k in pairs(info) do info[k] = nil end
|
||||
if (level == 1) then
|
||||
if level == 1 then
|
||||
-- Create the title of the menu
|
||||
info.isTitle = 1
|
||||
info.text = "Omen Quick Menu"
|
||||
info.text = L["Omen Quick Menu"]
|
||||
info.notCheckable = 1
|
||||
UIDropDownMenu_AddButton(info, level)
|
||||
|
||||
@@ -1304,9 +1304,13 @@ do
|
||||
info.func = function() Omen:ShowConfig() end
|
||||
UIDropDownMenu_AddButton(info, level)
|
||||
|
||||
info.text = L["Hide Omen"]
|
||||
info.func = function() Omen:Toggle() end
|
||||
UIDropDownMenu_AddButton(info, level)
|
||||
|
||||
-- Close menu item
|
||||
info.text = CLOSE
|
||||
info.func = CloseDropDownMenus
|
||||
info.func = function() CloseDropDownMenus() end
|
||||
info.checked = nil
|
||||
info.arg1 = nil
|
||||
info.notCheckable = 1
|
||||
@@ -1806,20 +1810,20 @@ local options = {
|
||||
Sound = {
|
||||
type = "toggle",
|
||||
order = 2,
|
||||
name = "Enable Sound",
|
||||
desc = "Enable Sound",
|
||||
name = L["Enable Sound"],
|
||||
desc = L["Causes Omen to play a chosen sound effect"],
|
||||
},
|
||||
Flash = {
|
||||
type = "toggle",
|
||||
order = 3,
|
||||
name = "Enable Screen Flash",
|
||||
desc = "Enable Screen Flash",
|
||||
name = L["Enable Screen Flash"],
|
||||
desc = L["Causes the entire screen to flash red momentarily"],
|
||||
},
|
||||
Shake = {
|
||||
type = "toggle",
|
||||
order = 4,
|
||||
name = "Enable Screen Shake",
|
||||
desc = "Enable Screen Shake",
|
||||
name = L["Enable Screen Shake"],
|
||||
desc = L["Causes the entire game world to shake momentarily. This option only works if nameplates are turned off."],
|
||||
},
|
||||
Message = {
|
||||
type = "toggle",
|
||||
|
||||
Reference in New Issue
Block a user