From 1d3dd9e3f66a19f26e89a5a347769dc23c9ddb2a Mon Sep 17 00:00:00 2001 From: cidoku Date: Sat, 1 Mar 2025 16:37:52 -0300 Subject: [PATCH] whoops chatlogs --- gameview.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/gameview.py b/gameview.py index 9be279b..42e4eca 100644 --- a/gameview.py +++ b/gameview.py @@ -253,6 +253,7 @@ class ChatLogs(QtGui.QTextEdit): QtGui.QTextEdit.__init__(self, parent) self.type = logtype self.setMouseTracking(True) + self.logfile = None self.anchor = None self.savelog = False self.combinelog = False @@ -902,12 +903,13 @@ class gui(QtGui.QWidget): self.sidechar.hide() self.slide_last_wit = [] + self.slide_last_pos = None self.slide_witness = AOCharMovie(self.viewport) self.slide_witness.show_on_play = False self.slide_witness.hide() - self.slide_lawyer = AOCharMovie(self.viewport) - self.slide_lawyer.hide() - self.slide_lawyer.show_on_play = False + self.slide_opponent = AOCharMovie(self.viewport) + self.slide_opponent.hide() + self.slide_opponent.show_on_play = False self.slide_overlay = QtGui.QLabel(self.viewport) self.slide_overlay_animation = QtCore.QPropertyAnimation(self.slide_overlay, "geometry") @@ -2817,6 +2819,11 @@ class gui(QtGui.QWidget): if side == "wit": self.slide_last_wit = [self.m_chatmessage[CHARNAME], self.m_chatmessage[ANIM], self.scaling[0]] + self.slide_last_pos = "wit" + elif side == "def" or side == "pro": + self.slide_last_pos = side + else: + self.slide_last_pos = None if (emote_mod == 1 or emote_mod == 2 or emote_mod == 6) and self.m_chatmessage[PREANIM] != "-": # sfx_delay = int(self.m_chatmessage[SFX_DELAY]) * 60 @@ -3228,6 +3235,8 @@ class gui(QtGui.QWidget): del self.inboxqueue[0] if len(self.inboxqueue) > 0: self.m_chatmessage = self.inboxqueue[0] + slide = self.m_chatmessage[SLIDE] + self.handle_chatmessage_2() def playRealization(self):