API version for PTS; housing chest space tracking fixed; house/house chest colors fixed
AssemblerManiac [04-17-18 - 17:46]
API version for PTS; housing chest space tracking fixed; house/house chest colors fixed
diff --git a/IIfA/CharBagSpaceTooltip.lua b/IIfA/CharBagSpaceTooltip.lua
index dcb3978..f494e87 100644
--- a/IIfA/CharBagSpaceTooltip.lua
+++ b/IIfA/CharBagSpaceTooltip.lua
@@ -110,11 +110,11 @@ function CharBagFrame:FillCharAndBank()
if IsCollectibleUnlocked(GetCollectibleForHouseBankBag(ctr)) then
if bInOwnedHouse then
tempUsed = GetNumBagUsedSlots(ctr)
- self.currAssets.houseChestSpace[ctr] = tempUsed
+ self.parent.houseChestSpace[ctr] = tempUsed
bFoundData = true
else
- if self.currAssets.houseChestSpace[ctr] ~= nil then
- tempUsed = self.currAssets.houseChestSpace[ctr]
+ if self.parent.houseChestSpace[ctr] ~= nil then
+ tempUsed = self.parent.houseChestSpace[ctr]
bFoundData = true
else
tempUsed = nil
@@ -135,7 +135,8 @@ function CharBagFrame:FillCharAndBank()
end
else
tControl:SetHeight(0)
- self.currAssets.houseChestSpace[ctr] = nil
+ tControl:GetNamedChild("charName"):SetText("")
+ self.parent.houseChestSpace[ctr] = nil
end
end
@@ -241,6 +242,9 @@ function CharBagFrame:Initialize(objectForAssets)
self.charControl = tControl
else
if assets[charId] ~= nil then
+ if assets[charId].houseChestSpace ~= nil then
+ assets[charId].houseChestSpace = nil
+ end
if assets[charId].spaceUsed ~= nil then
self.totSpaceUsed = self.totSpaceUsed + assets[charId].spaceUsed
self.totSpaceMax = self.totSpaceMax + assets[charId].spaceMax
@@ -271,7 +275,7 @@ function CharBagFrame:Initialize(objectForAssets)
self.divider2 = tControl
self.houseChestControls = {}
- self.currAssets.houseChestSpace = self.currAssets.houseChestSpace or {}
+ self.parent.houseChestSpace = self.parent.houseChestSpace or {}
local ctr
prevControl = self.divider2
for ctr = BAG_HOUSE_BANK_ONE,BAG_HOUSE_BANK_TEN do
diff --git a/IIfA/IIfA.lua b/IIfA/IIfA.lua
index d6b82ef..edce9ef 100644
--- a/IIfA/IIfA.lua
+++ b/IIfA/IIfA.lua
@@ -15,7 +15,7 @@ if IIfA == nil then IIfA = {} end
--local IIfA = IIfA
IIfA.name = "Inventory Insight"
-IIfA.version = "3.16"
+IIfA.version = "3.17"
IIfA.author = "AssemblerManiac & manavortex"
IIfA.defaultAlertSound = nil
IIfA.colorHandler = nil
diff --git a/IIfA/IIfA.txt b/IIfA/IIfA.txt
index c52f5ed..ed3335a 100644
--- a/IIfA/IIfA.txt
+++ b/IIfA/IIfA.txt
@@ -1,7 +1,7 @@
## Title: Inventory Insight
## Author: manavortex, AssemblerManiac
-## Version: 3.16
-## APIVersion: 100022
+## Version: 3.17
+## APIVersion: 100022 100023
## SavedVariables: IIfA_Settings IIfA_Data
## OptionalDependsOn: libFilters pChat
diff --git a/IIfA/IIfADataCollection.lua b/IIfA/IIfADataCollection.lua
index 4058739..e57c259 100644
--- a/IIfA/IIfADataCollection.lua
+++ b/IIfA/IIfADataCollection.lua
@@ -103,7 +103,9 @@ function IIfA:CollectGuildBank()
local slotIndex = ZO_GuildBankBackpack.data[i].data.slotIndex
local dbItem, itemKey = IIfA:EvalBagItem(BAG_GUILDBANK, slotIndex)
p("Collect guild bank from <<1>> - slot/key <<2>> / <<3>>", curGuild, slotIndex, itemKey)
+ if not IIfA.BagSlotInfo or not curGuild then return end -- be paranoid because this might happen in the middle of unloading
IIfA.BagSlotInfo[curGuild] = IIfA.BagSlotInfo[curGuild] or {}
+ if not IIfA.BagSlotInfo[curGuild] then return end -- be paranoid because this might happen in the middle of unloading
IIfA.BagSlotInfo[curGuild][slotIndex] = itemKey
end
end)
diff --git a/IIfA/IIfATooltip.lua b/IIfA/IIfATooltip.lua
index 59d9964..9cf859f 100644
--- a/IIfA/IIfATooltip.lua
+++ b/IIfA/IIfATooltip.lua
@@ -578,26 +578,3 @@ function IIfA:UpdateTooltip(tooltip)
end
end
end
--- |H1:item:30357:175:1:0:0:0:0:0:0:0:0:0:0:0:0:36:0:0:0:0:0|h|h
-
---[[
-on pts
-/script d("|H1:item:122828:362:50:00000:0:0:0:0:0:0:0:0:0:0:0:38:0:0:0:10000:0|h|h |H1:item:048760:029:04:26848:2:1:0:0:0:0:0:0:0:0:1:06:1:1:0:00053:0|h|h")
-
-
-/script d("Redoran: |H1:item:122627:359:50:0:0:0:0:0:0:0:0:0:0:0:0:48:0:0:0:10000:0|h|h")
-/script d("Buoyant Armiger: |H1:item:126064:358:50:0:0:0:0:0:0:0:0:0:0:0:0:52:0:0:0:10000:0|h|h")
-/script d("MoragTong: |H1:item:45349:308:50:0:0:0:0:0:0:0:0:0:0:0:1:43:0:1:0:10000:0|h|h")
-
-red mountain - no icon, no style text - use get style func to find out what # it really is
-"of the worm" - same issue
-"ebon armory"
-hircine
-withered hand - same problem (of the necromancer)
-
-/script PopupTooltipIIFA_TT_Ext1_StyleIcon.idx=48 PopupTooltipIIFA_TT_Ext1_StyleIcon:SetTexture(IIfA.racialTextures[PopupTooltipIIFA_TT_Ext1_StyleIcon.idx].styleTexture) d(IIfA.racialTextures[PopupTooltipIIFA_TT_Ext1_StyleIcon.idx].styleName ..", "..PopupTooltipIIFA_TT_Ext1_StyleIcon.idx)
-
-/script PopupTooltipIIFA_TT_Ext1_StyleIcon:SetTexture("IIfA/assets/icons/ordinator.dds") PopupTooltipIIFA_TT_Ext1_StyleLabel:SetText("Ordinator")
-
-]]--
-