Add scale config
This commit is contained in:
@@ -1395,7 +1395,19 @@ function shared.Config.Init()
|
|||||||
self:SetText(Heimdall_Data.config.minimapTagger.masterChannel)
|
self:SetText(Heimdall_Data.config.minimapTagger.masterChannel)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
minimapTaggerConfigFrame:Add(masterChannel, 2, 6)
|
minimapTaggerConfigFrame:Add(masterChannel, 2, 3)
|
||||||
|
|
||||||
|
local scale = CreateBasicSmallEditBox("HeimdallMinimapTaggerConfigScale",
|
||||||
|
minimapTaggerConfigFrame.frame, "Scale",
|
||||||
|
Heimdall_Data.config.minimapTagger.scale,
|
||||||
|
function(self)
|
||||||
|
local text = self:GetText()
|
||||||
|
if string.match(text, "%d+") then
|
||||||
|
Heimdall_Data.config.minimapTagger.scale = tonumber(text)
|
||||||
|
print("Scale set to", tostring(text))
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
minimapTaggerConfigFrame:Add(scale, 2, 3)
|
||||||
|
|
||||||
local tagSound = CreateBasicButton("HeimdallMinimapTaggerConfigTagSound",
|
local tagSound = CreateBasicButton("HeimdallMinimapTaggerConfigTagSound",
|
||||||
minimapTaggerConfigFrame.frame, "Tag Sound", function()
|
minimapTaggerConfigFrame.frame, "Tag Sound", function()
|
||||||
|
|||||||
Reference in New Issue
Block a user