fix placeholder sprite
This commit is contained in:
parent
62a614e435
commit
b3c56f572b
@ -331,19 +331,17 @@ class AOCharMovie(QtGui.QLabel):
|
|||||||
imgPath, ext = self.findSprite(pChar, pEmote, emotePrefix)
|
imgPath, ext = self.findSprite(pChar, pEmote, emotePrefix)
|
||||||
|
|
||||||
if not imgPath:
|
if not imgPath:
|
||||||
if self.prevGifPath:
|
print "[debug] Sprite not found:", pChar, pEmote, emotePrefix
|
||||||
imgPath = self.prevGifPath
|
|
||||||
else:
|
|
||||||
if exists(placeholderPath):
|
if exists(placeholderPath):
|
||||||
imgPath = placeholderPath
|
imgPath = placeholderPath
|
||||||
print "[debug] Sprite not found:", pChar, pEmote, emotePrefix
|
|
||||||
else:
|
else:
|
||||||
imgPath = "placeholder.png"
|
imgPath = "placeholder.png"
|
||||||
# if ini.read_ini_bool("AO2XP.ini", "General", "download characters"):
|
# if ini.read_ini_bool("AO2XP.ini", "General", "download characters"):
|
||||||
# url = "base/characters/" + pChar.lower() + "/" + emotePrefix + pEmote.lower() + ".gif"
|
# url = "base/characters/" + pChar.lower() + "/" + emotePrefix + pEmote.lower() + ".gif"
|
||||||
# url = url.replace(" ", "%20")
|
# url = url.replace(" ", "%20")
|
||||||
# thread.start_new_thread(downloadThread, (url, gifPath))
|
# thread.start_new_thread(downloadThread, (url, gifPath))
|
||||||
else:
|
|
||||||
|
if imgPath:
|
||||||
self.prevGifPath = imgPath
|
self.prevGifPath = imgPath
|
||||||
|
|
||||||
if ext == ".apng":
|
if ext == ".apng":
|
||||||
|
|||||||
@ -631,3 +631,4 @@ class AOServerInfo(QtCore.QThread):
|
|||||||
self.tcp.send('RD#%')
|
self.tcp.send('RD#%')
|
||||||
print '[client]', 'Received songs (%d)' % len(musicList)
|
print '[client]', 'Received songs (%d)' % len(musicList)
|
||||||
|
|
||||||
|
self.msleep(5)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user