This commit is contained in:
Bunny67
2020-07-26 14:29:54 +03:00
parent 368a646da5
commit 0dfc91e3a3
6 changed files with 20 additions and 33 deletions
+1 -3
View File
@@ -92,9 +92,7 @@ function spellCache.GetIcon(name)
if (icons) then
if (icons.spells) then
for spellId, icon in pairs(icons.spells) do
if (not bestMatch) then
bestMatch = spellId
elseif(type(spellId) == "number" and IsSpellKnown(spellId)) then
if not bestMatch or (type(spellId) == "number" and IsSpellKnown(spellId)) then
bestMatch = spellId
end
end
+1 -1
View File
@@ -82,7 +82,7 @@ local function createOptions(id, data)
local textJustify = ""
if data.justify == "CENTER" then
-- CENTER is default
elseif data.justify == "LEFT" then
textJustify = " " .. L["and aligned left"]
elseif data.justify == "RIGHT" then
@@ -105,7 +105,7 @@ local function createOptions(parentData, data, index, subIndex)
local textJustify = ""
if data.text_justify == "CENTER" then
-- CENTER is default
elseif data.text_justify == "LEFT" then
textJustify = " " .. L["and aligned left"]
elseif data.text_justify == "RIGHT" then