Show an empty icon (transparent 16x16) in item stats if an attribute icon is missing from static data or things are screwed up
This commit is contained in:
@@ -302,7 +302,12 @@ class ItemParams (wx.Panel):
|
||||
if info:
|
||||
if info.icon is not None:
|
||||
iconFile = info.icon.iconFile
|
||||
attrIcon = self.imageList.Add(bitmapLoader.getBitmap(iconFile, "pack"))
|
||||
icon = bitmapLoader.getBitmap(iconFile, "pack")
|
||||
|
||||
if icon is None:
|
||||
icon = bitmapLoader.getBitmap("transparent16x16", "icons")
|
||||
|
||||
attrIcon = self.imageList.Add( icon )
|
||||
else:
|
||||
attrIcon = self.imageList.Add(bitmapLoader.getBitmap("07_15", "pack"))
|
||||
else:
|
||||
|
||||
Submodule staticdata updated: 6203f51293...7e1bdbf653
Reference in New Issue
Block a user