whoops
This commit is contained in:
parent
2be05f1a54
commit
24e034b34e
14
mainmenu.py
14
mainmenu.py
@ -288,10 +288,7 @@ class lobby(QtGui.QWidget):
|
|||||||
def onClicked_connect(self):
|
def onClicked_connect(self):
|
||||||
if not self.can_connect:
|
if not self.can_connect:
|
||||||
return
|
return
|
||||||
self.connectprogress.setText('Connecting...')
|
|
||||||
self.connectingimg.show()
|
|
||||||
self.connectcancel.show()
|
|
||||||
self.connectprogress.show()
|
|
||||||
self.btn_public.hide()
|
self.btn_public.hide()
|
||||||
self.btn_favs.hide()
|
self.btn_favs.hide()
|
||||||
self.btn_refresh.hide()
|
self.btn_refresh.hide()
|
||||||
@ -301,9 +298,14 @@ class lobby(QtGui.QWidget):
|
|||||||
self.onlineplayers.hide()
|
self.onlineplayers.hide()
|
||||||
self.serverinfo.hide()
|
self.serverinfo.hide()
|
||||||
self.settingsbtn.hide()
|
self.settingsbtn.hide()
|
||||||
|
|
||||||
|
self.connectprogress.setText('Connecting...')
|
||||||
|
self.connectingimg.show()
|
||||||
|
self.connectcancel.show()
|
||||||
|
self.connectprogress.show()
|
||||||
self.aoserverinfo.tcp.send('askchaa#%')
|
self.aoserverinfo.tcp.send('askchaa#%')
|
||||||
#self.gamewindow.gamewidget.start_demo("test.demo")
|
# self.gamewindow.gamewidget.start_demo("test.demo")
|
||||||
#self.gamewindow.stackwidget.setCurrentWidget(self.gamewindow.gamewidget)
|
# self.gamewindow.stackwidget.setCurrentWidget(self.gamewindow.gamewidget)
|
||||||
|
|
||||||
def onClicked_cancelconnect(self):
|
def onClicked_cancelconnect(self):
|
||||||
self.connectingimg.hide()
|
self.connectingimg.hide()
|
||||||
|
@ -94,7 +94,7 @@ def handle_packets(caller, total, record=True):
|
|||||||
audio.sethandleattr(caller.parent.wtcesfx, BASS_ATTRIB_VOL, caller.parent.soundslider.value() / 100.0)
|
audio.sethandleattr(caller.parent.wtcesfx, BASS_ATTRIB_VOL, caller.parent.soundslider.value() / 100.0)
|
||||||
if caller.parent.wtcesfx:
|
if caller.parent.wtcesfx:
|
||||||
audio.playhandle(caller.parent.wtcesfx, True)
|
audio.playhandle(caller.parent.wtcesfx, True)
|
||||||
caller.parent.WTCEsignal.emit(testimony, variant)
|
caller.parent.wtcesignal.emit(testimony, variant)
|
||||||
|
|
||||||
elif header == 'HP':
|
elif header == 'HP':
|
||||||
kind = int(network[1])
|
kind = int(network[1])
|
||||||
|
Loading…
Reference in New Issue
Block a user