dirty fix to prevent placeholders from showing up when frames aren't present (like web)
This commit is contained in:
parent
961990b42a
commit
0efebb6135
@ -233,6 +233,8 @@ class AOCharMovie(QtGui.QLabel):
|
||||
self.preanim_timer.timeout.connect(self.timer_done)
|
||||
self.pillow_timer.timeout.connect(self.pillow_frame_change)
|
||||
self.m_movie.frameChanged.connect(self.frame_change)
|
||||
|
||||
self.prev_gif_path = ""
|
||||
|
||||
def move(self, x, y, screenShaking=False):
|
||||
if not screenShaking:
|
||||
@ -307,6 +309,11 @@ class AOCharMovie(QtGui.QLabel):
|
||||
else:
|
||||
gif_path = ""
|
||||
self.use_pillow = 0
|
||||
|
||||
if gif_path == placeholder_path or gif_path == "":
|
||||
gif_path = self.prev_gif_path
|
||||
else:
|
||||
self.prev_gif_path = gif_path
|
||||
|
||||
if not self.use_pillow:
|
||||
self.m_movie.stop()
|
||||
@ -2588,7 +2595,7 @@ class gui(QtGui.QWidget):
|
||||
self.ooclog.append(msg)
|
||||
|
||||
for song in musiclist:
|
||||
song = song.replace("<and>","&")
|
||||
song = song.replace("<and>","&").decode('utf-8')
|
||||
songitem = QtGui.QListWidgetItem()
|
||||
songitem.setText(song)
|
||||
if exists(AOpath + 'sounds/music/' + song):
|
||||
|
Loading…
Reference in New Issue
Block a user