mirror of
https://codeberg.org/Duvelcorp/MetaHunt.git
synced 2026-10-04 13:30:01 +00:00
v1.0.5
This commit is contained in:
@@ -1114,10 +1114,26 @@ function MTH_SetupGeneralOptions()
|
||||
|
||||
local tooltipsSection = ensureSection("MetaHuntGeneralTooltipsBox", "Tooltips", topY, 356, "right")
|
||||
if tooltipsSection then
|
||||
local tooltipsStore = MTH and MTH.GetModuleSavedVariables and MTH:GetModuleSavedVariables("tooltips")
|
||||
local tooltipsStore = MTH and MTH.GetModuleCharSavedVariables and MTH:GetModuleCharSavedVariables("tooltips")
|
||||
if type(tooltipsStore) ~= "table" then
|
||||
tooltipsStore = {}
|
||||
end
|
||||
if MTH and MTH.GetModuleSavedVariables and next(tooltipsStore) == nil then
|
||||
local accountStore = MTH:GetModuleSavedVariables("tooltips")
|
||||
if type(accountStore) == "table" and next(accountStore) ~= nil then
|
||||
for key, value in pairs(accountStore) do
|
||||
if type(value) == "table" then
|
||||
local copied = {}
|
||||
for subKey, subValue in pairs(value) do
|
||||
copied[subKey] = subValue
|
||||
end
|
||||
tooltipsStore[key] = copied
|
||||
else
|
||||
tooltipsStore[key] = value
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if tooltipsStore.beastTooltips == nil then
|
||||
tooltipsStore.beastTooltips = true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user