Add a scale config... such as it is
This commit is contained in:
@@ -375,6 +375,8 @@ end
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
shared.Config = {}
|
||||
function shared.Config.Init()
|
||||
configFrame.frame:SetScale(Heimdall_Data.config.scale)
|
||||
|
||||
local buttonColors = {
|
||||
enabled = { 0, 1, 0, 1 },
|
||||
disabled = { 1, 0, 0, 1 }
|
||||
@@ -514,9 +516,18 @@ function shared.Config.Init()
|
||||
return container
|
||||
end
|
||||
|
||||
local scale = CreateBasicSmallEditBox("HeimdallConfigScale", configFrame.frame, "Scale", Heimdall_Data.config.scale,
|
||||
function(self)
|
||||
local text = self:GetText()
|
||||
if string.match(text, "%d+") then
|
||||
Heimdall_Data.config.scale = tonumber(text)
|
||||
configFrame.frame:SetScale(Heimdall_Data.config.scale)
|
||||
end
|
||||
end)
|
||||
configFrame:Add(scale, 2, 2)
|
||||
local title = configFrame.frame:CreateFontString(nil, "ARTWORK", "GameFontNormal")
|
||||
title:SetText("Heimdall Config")
|
||||
configFrame:Add(title, 2, 12)
|
||||
configFrame:Add(title, 2, 10)
|
||||
|
||||
-- Spotter
|
||||
do
|
||||
|
||||
@@ -428,7 +428,7 @@ function shared.MinimapTagger.Init()
|
||||
end
|
||||
if x and y then
|
||||
x, y = tonumber(x), tonumber(y)
|
||||
PlantHelp(x, y, 2)
|
||||
PlantHelp(x, y, 1)
|
||||
if TomTom then
|
||||
if Heimdall_Data.config.minimapTagger.debug then
|
||||
print(string.format("[%s] Adding help waypoint to TomTom", ModuleName))
|
||||
|
||||
Reference in New Issue
Block a user