fix demo loading
This commit is contained in:
parent
f24088a991
commit
8a235c26d4
2
demo.py
2
demo.py
@ -211,6 +211,8 @@ class DemoPicker(QtGui.QDialog):
|
||||
return
|
||||
|
||||
self.mainWindow.gameWidget.startDemo(fname)
|
||||
self.mainWindow.setFixedSize(self.mainWindow.gameWidget.width, self.mainWindow.gameWidget.height)
|
||||
self.mainWindow.center()
|
||||
self.mainWindow.widgetStack.setCurrentWidget(self.mainWindow.gameWidget)
|
||||
self.hide()
|
||||
|
||||
|
||||
12
gameview.py
12
gameview.py
@ -1985,6 +1985,7 @@ class GUI(QtGui.QWidget):
|
||||
self.boxEmotes.setCurrentIndex(0)
|
||||
self.setEmotePage()
|
||||
self.mainWindow.setFixedSize(self.width, self.height)
|
||||
print "sfafsaasfsffs"
|
||||
self.mainWindow.center()
|
||||
# except Exception as e:
|
||||
# QtGui.QMessageBox.critical(None, "Unable to load theme", "There was a problem loading the current theme \"%s\":\n\n%s." % (theme, e))
|
||||
@ -2440,15 +2441,16 @@ class GUI(QtGui.QWidget):
|
||||
self.tcp.send("RT#judgeruling#" +str(variant)+ "#%")
|
||||
self.ICChatFocus()
|
||||
|
||||
def onPVPacket(self, char=0):
|
||||
def onPVPacket(self, char=-1):
|
||||
QtGui.QApplication.restoreOverrideCursor()
|
||||
self.myChar = char
|
||||
self.charSelect.hide()
|
||||
charName = self.charList[char][0]
|
||||
self.setDisabled(False)
|
||||
self.gotPV = True
|
||||
if not self.swapping and charName:
|
||||
self.loadCharacter(charName)
|
||||
if char != -1:
|
||||
self.myChar = char
|
||||
charName = self.charList[char][0]
|
||||
if not self.swapping and charName:
|
||||
self.loadCharacter(charName)
|
||||
|
||||
def loadCharacter(self, charName):
|
||||
self.queueItems.clear()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user