Add minimaptagger config
This commit is contained in:
@@ -1348,6 +1348,50 @@ function shared.Config.Init()
|
||||
combatAlerterConfigFrame:Add(masterChannel, 2, 6)
|
||||
end
|
||||
|
||||
-- Minimap Tagger
|
||||
do
|
||||
local r, g, b, a = GetNextColor()
|
||||
local minimapTaggerConfigFrame = GridFrame.new("HeimdallMinimapTaggerConfig",
|
||||
UIParent, 12, 20)
|
||||
minimapTaggerConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||
configFrame:Add(minimapTaggerConfigFrame, 3, 3)
|
||||
|
||||
local title = CreateFancyText("HeimdallMinimapTaggerConfigTitle", minimapTaggerConfigFrame.frame,
|
||||
"Minimap Tagger",
|
||||
{ r, g, b, a })
|
||||
minimapTaggerConfigFrame:Add(title, 1, 8)
|
||||
local debugButton = CreateBasicButton("HeimdallMinimapTaggerConfigDebugButton",
|
||||
minimapTaggerConfigFrame.frame, "Debug", function()
|
||||
Heimdall_Data.config.minimapTagger.debug = not Heimdall_Data.config.minimapTagger.debug
|
||||
return Heimdall_Data.config.minimapTagger.debug
|
||||
end)
|
||||
debugButton:UpdateColor(Heimdall_Data.config.minimapTagger.debug)
|
||||
minimapTaggerConfigFrame:Add(debugButton, 1, 4)
|
||||
|
||||
local enableButton = CreateBasicButton("HeimdallMinimapTaggerConfigEnableButton",
|
||||
minimapTaggerConfigFrame.frame, "Enabled", function()
|
||||
Heimdall_Data.config.minimapTagger.enabled = not Heimdall_Data.config.minimapTagger.enabled
|
||||
return Heimdall_Data.config.minimapTagger.enabled
|
||||
end)
|
||||
enableButton:UpdateColor(Heimdall_Data.config.minimapTagger.enabled)
|
||||
minimapTaggerConfigFrame:Add(enableButton, 2, 6)
|
||||
|
||||
local masterChannel = CreateBasicSmallEditBox("HeimdallMinimapTaggerConfigMasterChannel",
|
||||
minimapTaggerConfigFrame.frame, "Master Channel",
|
||||
Heimdall_Data.config.minimapTagger.masterChannel,
|
||||
function(self)
|
||||
local text = self:GetText()
|
||||
if string.match(text, "%S+") then
|
||||
Heimdall_Data.config.minimapTagger.masterChannel = text
|
||||
print("Master channel set to", tostring(text))
|
||||
else
|
||||
print("Invalid master channel", tostring(text))
|
||||
self:SetText(Heimdall_Data.config.minimapTagger.masterChannel)
|
||||
end
|
||||
end)
|
||||
minimapTaggerConfigFrame:Add(masterChannel, 2, 6)
|
||||
end
|
||||
|
||||
-- Whisper Notify
|
||||
do
|
||||
local r, g, b, a = GetNextColor()
|
||||
|
Reference in New Issue
Block a user