comparison ui/SummaryTab.lua @ 31:44c285acfff0 v8

fixed item display bug on summary tab
author yellowfive
date Sat, 18 Oct 2014 10:33:33 -0700
parents e77e01abce98
children 90175bdc50e6
comparison
equal deleted inserted replaced
30:55906ac875ae 31:44c285acfff0
194 local badItem = AskMrRobot.ComparisonResult.items[slotId] 194 local badItem = AskMrRobot.ComparisonResult.items[slotId]
195 if badItem ~= nil and not badItem.needsUpgrade then 195 if badItem ~= nil and not badItem.needsUpgrade then
196 self.badItemSlots[i]:SetText(AskMrRobot.slotDisplayText[slotId]) 196 self.badItemSlots[i]:SetText(AskMrRobot.slotDisplayText[slotId])
197 self.badItemSlots[i]:Show() 197 self.badItemSlots[i]:Show()
198 if badItem.optimized then 198 if badItem.optimized then
199 self.badItemNames[i]:SetItemId(badItem.optimized.id, badItem.optimized.upgradeId, badItem.optimized.suffixId) 199 self.badItemNames[i]:SetItem(badItem.optimized)
200 else 200 else
201 self.badItemNames[i]:SetItemId(nil, 0, 0) 201 self.badItemNames[i]:SetItem(nil)
202 end 202 end
203 self.badItemNames[i]:Show() 203 self.badItemNames[i]:Show()
204 i = i + 1 204 i = i + 1
205 end 205 end
206 end 206 end
212 local badItem = AskMrRobot.ComparisonResult.items[slotId] 212 local badItem = AskMrRobot.ComparisonResult.items[slotId]
213 if badItem ~= nil and badItem.needsUpgrade then 213 if badItem ~= nil and badItem.needsUpgrade then
214 self.upgradeItemSlots[j]:SetText(AskMrRobot.slotDisplayText[slotId]) 214 self.upgradeItemSlots[j]:SetText(AskMrRobot.slotDisplayText[slotId])
215 self.upgradeItemSlots[j]:Show() 215 self.upgradeItemSlots[j]:Show()
216 if badItem.optimized then 216 if badItem.optimized then
217 self.upgradeItemNames[j]:SetItemId(badItem.optimized.id, badItem.optimized.upgradeId, badItem.optimized.suffixId) 217 self.upgradeItemNames[j]:SetItem(badItem)
218 else 218 else
219 self.upgradeItemNames[j]:SetItemId(nil, 0, 0) 219 self.upgradeItemNames[j]:SetItem(nil)
220 end 220 end
221 self.upgradeItemNames[j]:Show() 221 self.upgradeItemNames[j]:Show()
222 j = j + 1 222 j = j + 1
223 end 223 end
224 end 224 end