use zo_strformat for correct format
Marc [05-08-18 - 02:53]
use zo_strformat for correct format
diff --git a/IIfA/CharBagSpaceTooltip.lua b/IIfA/CharBagSpaceTooltip.lua
index f494e87..c91d96b 100644
--- a/IIfA/CharBagSpaceTooltip.lua
+++ b/IIfA/CharBagSpaceTooltip.lua
@@ -129,31 +129,29 @@ function CharBagFrame:FillCharAndBank()
if cName == self.EMPTY_STRING then
cName = GetCollectibleName(GetCollectibleForHouseBankBag(ctr))
end
- tControl:GetNamedChild("charName"):SetText(cName)
+ tControl:GetNamedChild("charName"):SetText(zo_strformat(SI_TOOLTIP_ITEM_TAG_FORMATER, cName))
spaceUsed = spaceUsed + tempUsed
spaceMax = spaceMax + GetBagSize(ctr)
end
else
tControl:SetHeight(0)
- tControl:GetNamedChild("charName"):SetText("")
- self.parent.houseChestSpace[ctr] = nil
+ self.currAssets.houseChestSpace[ctr] = nil
end
end
- local iFrameHeight
local iDivCount = 2
-
if iChestCount > 0 then
self.divider3:SetHeight(3)
if not bFoundData then
+ local alertText = ZO_ERROR_COLOR:Colorize("Enter House once")
tControl = self.houseChestControls[BAG_HOUSE_BANK_ONE]
tControl:SetHeight(26)
- tControl:GetNamedChild("charName"):SetText("Enter House once")
+ tControl:GetNamedChild("charName"):SetText(alertText)
end
iDivCount = iDivCount + 1
end
- iFrameHeight = ((GetNumCharacters() + 4 + iChestCount) * 26) + (iDivCount * 3) -- numchars + numChests + 4 (title line + bank + total + dividers)
+ local iFrameHeight = ((GetNumCharacters() + 4 + iChestCount) * 26) + (iDivCount * 3) -- numchars + numChests + 4 (title line + bank + total + dividers)
self.frame:SetHeight(iFrameHeight)