a fix for preanims on linux?
This commit is contained in:
parent
43074f567c
commit
c0542b2b90
@ -353,6 +353,7 @@ class AOCharMovie(QtGui.QLabel):
|
|||||||
|
|
||||||
def play_pre(self, p_char, p_emote, duration, scaling = SCALING_AUTO):
|
def play_pre(self, p_char, p_emote, duration, scaling = SCALING_AUTO):
|
||||||
p_char = p_char.lower()
|
p_char = p_char.lower()
|
||||||
|
|
||||||
gif_path = AOpath+"characters/"+p_char+"/"+p_emote+".gif"
|
gif_path = AOpath+"characters/"+p_char+"/"+p_emote+".gif"
|
||||||
apng_path = AOpath+"characters/"+p_char+"/"+p_emote+".apng"
|
apng_path = AOpath+"characters/"+p_char+"/"+p_emote+".apng"
|
||||||
webp_path = AOpath+"characters/"+p_char+"/"+p_emote+".webp"
|
webp_path = AOpath+"characters/"+p_char+"/"+p_emote+".webp"
|
||||||
@ -2425,7 +2426,7 @@ class gui(QtGui.QWidget):
|
|||||||
return SCALING_AUTO
|
return SCALING_AUTO
|
||||||
|
|
||||||
def play_preanim(self, noninterrupting):
|
def play_preanim(self, noninterrupting):
|
||||||
f_char = self.m_chatmessage[CHARNAME]
|
f_char = self.m_chatmessage[CHARNAME].lower()
|
||||||
f_preanim = self.m_chatmessage[PREANIM]
|
f_preanim = self.m_chatmessage[PREANIM]
|
||||||
|
|
||||||
ao2_duration = ini.read_ini_int(AOpath+"characters/"+f_char+"/char.ini", "time", "%"+f_preanim, -1)
|
ao2_duration = ini.read_ini_int(AOpath+"characters/"+f_char+"/char.ini", "time", "%"+f_preanim, -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user