Fixing Plater Options Panel not opening due to the new Language system

This commit is contained in:
Tercio Jose
2023-02-27 19:56:10 -03:00
parent 516596f7ff
commit 35f6ade9e3
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
local dversion = 416
local dversion = 417
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary(major, minor)
+1 -1
View File
@@ -1572,7 +1572,7 @@ end
---return a font (path for a file) which works for the languageId passed, if the languageId is not registered, it'll return a compatible font registered by another addon or the default font
---@param languageId string
---@param addonId string
---@param addonId string|nil
---@return string
function DF.Language.GetFontForLanguageID(languageId, addonId)
if (addonId) then
+1 -2
View File
@@ -3558,8 +3558,7 @@ function detailsFramework:CreateTabContainer (parent, title, frameName, frameLis
end
--languageInfo
local addonId = languageInfo.language_addonId
local languageTable = DetailsFramework.Language.GetLanguageTable(addonId)
local addonId = languageInfo and languageInfo.language_addonId or "none"
for i, frameInfo in ipairs(frameList) do
local f = CreateFrame("frame", "$parent" .. frameInfo.name, mainFrame, "BackdropTemplate")
+2
View File
@@ -1055,6 +1055,8 @@ local default_profile = {
line_height = 16,
line_texture = "Details Serenity",
line_color = {.1, .1, .1, 0.3},
show_crowdcontrol_pvp = true,
show_crowdcontrol_pvm = false,
},
--current damage