fix placeholder sprite

This commit is contained in:
cidoku 2026-02-12 01:36:54 -03:00
parent 62a614e435
commit b3c56f572b
2 changed files with 8 additions and 9 deletions

View File

@ -331,19 +331,17 @@ class AOCharMovie(QtGui.QLabel):
imgPath, ext = self.findSprite(pChar, pEmote, emotePrefix)
if not imgPath:
if self.prevGifPath:
imgPath = self.prevGifPath
print "[debug] Sprite not found:", pChar, pEmote, emotePrefix
if exists(placeholderPath):
imgPath = placeholderPath
else:
if exists(placeholderPath):
imgPath = placeholderPath
print "[debug] Sprite not found:", pChar, pEmote, emotePrefix
else:
imgPath = "placeholder.png"
imgPath = "placeholder.png"
# if ini.read_ini_bool("AO2XP.ini", "General", "download characters"):
# url = "base/characters/" + pChar.lower() + "/" + emotePrefix + pEmote.lower() + ".gif"
# url = url.replace(" ", "%20")
# thread.start_new_thread(downloadThread, (url, gifPath))
else:
if imgPath:
self.prevGifPath = imgPath
if ext == ".apng":

View File

@ -630,4 +630,5 @@ class AOServerInfo(QtCore.QThread):
self.setConnectProgress.emit('Finishing...')
self.tcp.send('RD#%')
print '[client]', 'Received songs (%d)' % len(musicList)
self.msleep(5)