temp fix for bold in chatlog + improved ao2 theme loading when widgets have 0 0 0 0 geometry in courtroom_design
This commit is contained in:
parent
bf14fb0583
commit
470e7931fe
20
gameview.py
20
gameview.py
@ -1874,11 +1874,23 @@ class GUI(QtGui.QWidget):
|
|||||||
|
|
||||||
for e in geometry.keys():
|
for e in geometry.keys():
|
||||||
if e in design:
|
if e in design:
|
||||||
geometry[e].setGeometry(*[int(x) for x in design[e]])
|
d = [int(x) for x in design[e]]
|
||||||
|
if d == [0,0,0,0]:
|
||||||
|
geometry[e].move(-500, -500)
|
||||||
|
else:
|
||||||
|
geometry[e].setGeometry(*d)
|
||||||
|
else:
|
||||||
|
geometry[e].move(-500, -500)
|
||||||
|
|
||||||
for e in move.keys():
|
for e in move.keys():
|
||||||
if e in design:
|
if e in design:
|
||||||
move[e].move(*[int(x) for x in design[e]][0:2])
|
d = [int(x) for x in design[e]]
|
||||||
|
if d == [0,0,0,0]:
|
||||||
|
move[e].move(-500, -500)
|
||||||
|
else:
|
||||||
|
move[e].move(*d[0:2])
|
||||||
|
else:
|
||||||
|
move[e].move(-500, -500)
|
||||||
|
|
||||||
if "emotes" in design:
|
if "emotes" in design:
|
||||||
self.emotePageGeometry = [int(x) for x in design["emotes"]]
|
self.emotePageGeometry = [int(x) for x in design["emotes"]]
|
||||||
@ -3542,7 +3554,7 @@ class GUI(QtGui.QWidget):
|
|||||||
|
|
||||||
if evidence == -1:
|
if evidence == -1:
|
||||||
if chatmsg:
|
if chatmsg:
|
||||||
self.ICLog.append(timestamp + '%s%s: %s%s' % (
|
self.ICLog.append("<b></b>" + timestamp + '%s%s: %s%s' % (
|
||||||
"<b>" if mentioned else "",
|
"<b>" if mentioned else "",
|
||||||
logcharName,
|
logcharName,
|
||||||
chatmsg.replace("<", "<"),
|
chatmsg.replace("<", "<"),
|
||||||
@ -3556,7 +3568,7 @@ class GUI(QtGui.QWidget):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
if chatmsg:
|
if chatmsg:
|
||||||
self.ICLog.append(timestamp + '%s%s: %s%s\n%s presented an evidence: %s' % (
|
self.ICLog.append("<b></b>" + timestamp + '%s%s: %s%s\n%s presented an evidence: %s' % (
|
||||||
"<b>" if mentioned else "",
|
"<b>" if mentioned else "",
|
||||||
logcharName,
|
logcharName,
|
||||||
chatmsg.replace("<", "<"),
|
chatmsg.replace("<", "<"),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user