Add whispernotify and stinkies configs
This commit is contained in:
@@ -1235,7 +1235,7 @@ function shared.Config.Init()
|
|||||||
configFrame:Add(combatAlerterConfigFrame, 3, 3)
|
configFrame:Add(combatAlerterConfigFrame, 3, 3)
|
||||||
|
|
||||||
local title = CreateFancyText("HeimdallCombatAlerterConfigTitle", combatAlerterConfigFrame.frame,
|
local title = CreateFancyText("HeimdallCombatAlerterConfigTitle", combatAlerterConfigFrame.frame,
|
||||||
"Combat Alerter",
|
"Combat Alerter",
|
||||||
{ r, g, b, a })
|
{ r, g, b, a })
|
||||||
combatAlerterConfigFrame:Add(title, 1, 12)
|
combatAlerterConfigFrame:Add(title, 1, 12)
|
||||||
|
|
||||||
@@ -1263,6 +1263,54 @@ function shared.Config.Init()
|
|||||||
combatAlerterConfigFrame:Add(masterChannel, 2, 6)
|
combatAlerterConfigFrame:Add(masterChannel, 2, 6)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Whisper Notify
|
||||||
|
do
|
||||||
|
local r, g, b, a = GetNextColor()
|
||||||
|
local whisperNotifyConfigFrame = GridFrame.new("HeimdallWhisperNotifyConfig",
|
||||||
|
UIParent, 12, 20)
|
||||||
|
whisperNotifyConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||||
|
configFrame:Add(whisperNotifyConfigFrame, 9, 3)
|
||||||
|
|
||||||
|
local title = CreateFancyText("HeimdallWhisperNotifyConfigTitle", whisperNotifyConfigFrame.frame,
|
||||||
|
"Whisper Notify",
|
||||||
|
{ r, g, b, a })
|
||||||
|
whisperNotifyConfigFrame:Add(title, 1, 12)
|
||||||
|
|
||||||
|
local whisperNotify = CreateBasicBigEditBox("HeimdallWhisperNotifyConfigWhisperNotify",
|
||||||
|
whisperNotifyConfigFrame.frame, "Whisper Notify",
|
||||||
|
table.concat(Heimdall_Data.config.whisperNotify, "\n"),
|
||||||
|
function(self)
|
||||||
|
local text = self:GetText()
|
||||||
|
Heimdall_Data.config.whisperNotify = StringToArray(text, "\n")
|
||||||
|
end)
|
||||||
|
whisperNotifyConfigFrame:Add(whisperNotify, 8, 12)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Stinkies
|
||||||
|
do
|
||||||
|
local r, g, b, a = GetNextColor()
|
||||||
|
local stinkiesConfigFrame = GridFrame.new("HeimdallStinkiesConfig",
|
||||||
|
UIParent, 12, 20)
|
||||||
|
stinkiesConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||||
|
configFrame:Add(stinkiesConfigFrame, 14, 3)
|
||||||
|
-- Why do 17 rows of content fit into a frame that is 14 rows?
|
||||||
|
-- I don't know, at this point I can't be fucked to fix it, the display is minimally functional
|
||||||
|
|
||||||
|
local title = CreateFancyText("HeimdallStinkiesConfigTitle", stinkiesConfigFrame.frame,
|
||||||
|
"Stinkies",
|
||||||
|
{ r, g, b, a })
|
||||||
|
stinkiesConfigFrame:Add(title, 1, 12)
|
||||||
|
|
||||||
|
local stinkies = CreateBasicBigEditBox("HeimdallStinkiesConfigStinkies",
|
||||||
|
stinkiesConfigFrame.frame, "Stinkies",
|
||||||
|
table.concat(Heimdall_Data.config.stinkies, "\n"),
|
||||||
|
function(self)
|
||||||
|
local text = self:GetText()
|
||||||
|
Heimdall_Data.config.stinkies = StringToArray(text, "\n")
|
||||||
|
end)
|
||||||
|
stinkiesConfigFrame:Add(stinkies, 16, 12)
|
||||||
|
end
|
||||||
|
|
||||||
print("Heimdall - Config loaded")
|
print("Heimdall - Config loaded")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user