Add updateinterval config to network
This commit is contained in:
@@ -1951,6 +1951,21 @@ function shared.Config.Init()
|
||||
self:SetText(table.concat(Heimdall_Data.config.network.members, ","))
|
||||
end)
|
||||
networkConfigFrame:Add(members, 5, 6)
|
||||
|
||||
local updateInterval = CreateBasicSmallEditBox("HeimdallNetworkConfigUpdateInterval",
|
||||
networkConfigFrame.frame, shared.L[Heimdall_Data.config.locale].config.updateInterval,
|
||||
tostring(Heimdall_Data.config.network.updateInterval),
|
||||
function(self)
|
||||
local text = self:GetText()
|
||||
if string.match(text, "%d+") then
|
||||
Heimdall_Data.config.network.updateInterval = tonumber(text)
|
||||
print("Update interval set to", tostring(text))
|
||||
else
|
||||
print("Invalid update interval", text)
|
||||
self:SetText(tostring(Heimdall_Data.config.network.updateInterval))
|
||||
end
|
||||
end)
|
||||
networkConfigFrame:Add(updateInterval, 2, 6)
|
||||
end
|
||||
|
||||
-- Whisper Notify
|
||||
|
||||
@@ -6,5 +6,10 @@ local ModuleName = "Network"
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
shared.Network = {}
|
||||
function shared.Network.Init()
|
||||
local networkFrame = CreateFrame("Frame")
|
||||
networkFrame:SetScript("OnUpdate", function(self, elapsed)
|
||||
if not Heimdall_Data.config.network.enabled then return end
|
||||
|
||||
end)
|
||||
print("[Heimdall] Network module loaded")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user