whoops chatlogs

This commit is contained in:
cidoku 2025-03-01 16:37:52 -03:00
parent 6c7bfba25c
commit 1d3dd9e3f6

View File

@ -253,6 +253,7 @@ class ChatLogs(QtGui.QTextEdit):
QtGui.QTextEdit.__init__(self, parent) QtGui.QTextEdit.__init__(self, parent)
self.type = logtype self.type = logtype
self.setMouseTracking(True) self.setMouseTracking(True)
self.logfile = None
self.anchor = None self.anchor = None
self.savelog = False self.savelog = False
self.combinelog = False self.combinelog = False
@ -902,12 +903,13 @@ class gui(QtGui.QWidget):
self.sidechar.hide() self.sidechar.hide()
self.slide_last_wit = [] self.slide_last_wit = []
self.slide_last_pos = None
self.slide_witness = AOCharMovie(self.viewport) self.slide_witness = AOCharMovie(self.viewport)
self.slide_witness.show_on_play = False self.slide_witness.show_on_play = False
self.slide_witness.hide() self.slide_witness.hide()
self.slide_lawyer = AOCharMovie(self.viewport) self.slide_opponent = AOCharMovie(self.viewport)
self.slide_lawyer.hide() self.slide_opponent.hide()
self.slide_lawyer.show_on_play = False self.slide_opponent.show_on_play = False
self.slide_overlay = QtGui.QLabel(self.viewport) self.slide_overlay = QtGui.QLabel(self.viewport)
self.slide_overlay_animation = QtCore.QPropertyAnimation(self.slide_overlay, "geometry") self.slide_overlay_animation = QtCore.QPropertyAnimation(self.slide_overlay, "geometry")
@ -2817,6 +2819,11 @@ class gui(QtGui.QWidget):
if side == "wit": if side == "wit":
self.slide_last_wit = [self.m_chatmessage[CHARNAME], self.m_chatmessage[ANIM], self.scaling[0]] 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] != "-": 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 # sfx_delay = int(self.m_chatmessage[SFX_DELAY]) * 60
@ -3228,6 +3235,8 @@ class gui(QtGui.QWidget):
del self.inboxqueue[0] del self.inboxqueue[0]
if len(self.inboxqueue) > 0: if len(self.inboxqueue) > 0:
self.m_chatmessage = self.inboxqueue[0] self.m_chatmessage = self.inboxqueue[0]
slide = self.m_chatmessage[SLIDE]
self.handle_chatmessage_2() self.handle_chatmessage_2()
def playRealization(self): def playRealization(self):