This commit is contained in:
cidoku 2025-03-11 18:04:17 -03:00
parent 2be05f1a54
commit 24e034b34e
2 changed files with 9 additions and 7 deletions

View File

@ -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()

View File

@ -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])