From 417a0ec4660be7e1cb0508d5977c0bffdf7356a4 Mon Sep 17 00:00:00 2001 From: cidoku Date: Sun, 2 Mar 2025 18:16:09 -0300 Subject: [PATCH] slide: support flip --- gameview.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gameview.py b/gameview.py index 6ec31bb..a746e0f 100644 --- a/gameview.py +++ b/gameview.py @@ -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()