remove awesomewotlk ref

This commit is contained in:
andrew6180
2025-10-17 09:37:41 -07:00
parent 836089bbdc
commit 82fc7a582d
15 changed files with 63 additions and 555 deletions
+6 -6
View File
@@ -214,7 +214,7 @@ function OptionsPrivate.GetActionOptions(data)
name = "",
order = 3.19,
image = function() return "", 0, 0 end,
hidden = function() return WeakAuras.IsAwesomeEnabled() ~= 2 or data.actions.start.message_type ~= "TTS" end,
hidden = function() return not WeakAuras.IsTTSEnabled() or data.actions.start.message_type ~= "TTS" end,
},
start_message_tts_settings = {
type = "execute",
@@ -228,8 +228,8 @@ function OptionsPrivate.GetActionOptions(data)
or L["Install AwesomeCVar to open the Voice Chat settings."],
name = L["Voice Settings"],
order = 3.2,
disabled = function() return WeakAuras.IsAwesomeEnabled() ~= 2 or not data.actions.start.do_message end,
hidden = function() return WeakAuras.IsAwesomeEnabled() ~= 2 or data.actions.start.message_type ~= "TTS" end,
disabled = function() return not WeakAuras.IsTTSEnabled() or not data.actions.start.do_message end,
hidden = function() return not WeakAuras.IsTTSEnabled() or data.actions.start.message_type ~= "TTS" end,
},
start_message = {
type = "input",
@@ -742,7 +742,7 @@ function OptionsPrivate.GetActionOptions(data)
name = "",
order = 23.19,
image = function() return "", 0, 0 end,
hidden = function() return WeakAuras.IsAwesomeEnabled() ~= 2 or data.actions.finish.message_type ~= "TTS" end,
hidden = function() return not WeakAuras.IsTTSEnabled() or data.actions.finish.message_type ~= "TTS" end,
},
finish_message_tts_settings = {
type = "execute",
@@ -756,8 +756,8 @@ function OptionsPrivate.GetActionOptions(data)
or L["Install AwesomeCVar to open the Voice Chat settings."],
name = L["Voice Settings"],
order = 23.2,
disabled = function() return WeakAuras.IsAwesomeEnabled() ~= 2 or not data.actions.finish.do_message end,
hidden = function() return WeakAuras.IsAwesomeEnabled() ~= 2 or data.actions.finish.message_type ~= "TTS" end,
disabled = function() return not WeakAuras.IsTTSEnabled() or not data.actions.finish.do_message end,
hidden = function() return not WeakAuras.IsTTSEnabled() or data.actions.finish.message_type ~= "TTS" end,
},
finish_message = {
type = "input",
+1 -1
View File
@@ -1016,7 +1016,7 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
}
order = order + 1;
if WeakAuras.IsAwesomeEnabled() == 2 then
if WeakAuras.IsTTSEnabled() then
args["condition" .. i .. "value" .. j .. "message voice"] = {
type = "execute",
name = L["Voice Settings"],
@@ -520,14 +520,6 @@ function OptionsPrivate.CreateFrame()
changelogButton:SetPoint("LEFT", thanksButton, "RIGHT", footerSpacing, 0)
end
local awesomeWotlkButton
if not WeakAuras.IsAwesomeEnabled() then
awesomeWotlkButton = addFooter("Awesome WotLK", [[Interface\AddOns\WeakAuras\Media\Textures\GitHub.tga]], "https://github.com/someweirdhuman/awesome_wotlk",
L["Unlock nameplate anchoring & units and Text-to-speech in WeakAuras with the Awesome WotLK client patch."])
awesomeWotlkButton:SetParent(tipFrame)
awesomeWotlkButton:SetPoint("LEFT", changelogButton or thanksButton, "RIGHT", footerSpacing, 0)
end
local reportbugButton = addFooter(L["Found a Bug?"], [[Interface\AddOns\WeakAuras\Media\Textures\bug_report.tga]], "https://github.com/NoM0Re/WeakAuras-WotLK/issues",
L["Report bugs on our issue tracker."], nil, nil, true)
reportbugButton:SetParent(tipFrame)
@@ -173,11 +173,9 @@ local function createOptions(id, data)
values = function()
local v = {
["UNITFRAME"] = L["Unit Frames"],
["CUSTOM"] = L["Custom Frames"]
["CUSTOM"] = L["Custom Frames"],
["NAMEPLATE"] = L["Nameplates"]
}
if WeakAuras.IsAwesomeEnabled() then
v["NAMEPLATE"] = L["Nameplates"]
end
return v
end,
hidden = function() return data.grow == "CUSTOM" end,