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
|
||||
|
||||
Reference in New Issue
Block a user