slide: support flip

This commit is contained in:
cidoku 2025-03-02 18:16:09 -03:00
parent d685818ed7
commit 417a0ec466

View File

@ -2395,8 +2395,13 @@ class gui(QtGui.QWidget):
self.slide_kind = value[0]
self.slide_direction = value[1]
# TODO: play only first frame of preanim and figure out zooms
# TODO: play only first frame of preanim, figure out zooms
scaling = self.get_scaling(ini.read_ini(AOpath + 'characters/' + self.m_chatmessage[CHARNAME] + '/char.ini', "options", "scaling").lower())
if self.m_chatmessage[FLIP] == "1":
self.slide_speaker.set_flipped(True)
else:
self.slide_speaker.set_flipped(False)
self.slide_speaker.play_idle(self.m_chatmessage[CHARNAME], self.m_chatmessage[ANIM], scaling)
self.slide_speaker.show()