diff --git a/charselect.py b/charselect.py index 28f8e74..e37496c 100644 --- a/charselect.py +++ b/charselect.py @@ -64,7 +64,7 @@ class charselect(QtGui.QWidget): if x_mod_count == columns: y_mod_count += 1 x_mod_count = 0 - + self.prevpage = PixmapButton(self, QtGui.QPixmap(AO2XPpath+"themes/default/arrow_left.png")) self.prevpage.move(left - self.prevpage.pixmap.size().width(), top + height) self.prevpage.clicked.connect(self.prevPageButton) @@ -122,6 +122,7 @@ class charselect(QtGui.QWidget): if self.charlist[ind][1] == 0: # free slot self.chartaken[i].hide() else: + self.chartaken[i].setAttribute(QtCore.Qt.WA_TransparentForMouseEvents) self.chartaken[i].show() self.buttons[i].show() @@ -131,6 +132,9 @@ class charselect(QtGui.QWidget): self.buttons[ind].setPixmap(QtGui.QPixmap(filename)) def onCharClicked(self, ind): + if self.parent.charname.lower() == self.charlist[ind][0].lower(): + self.hide() + return self.parent.tcp.send("CC#0#"+str(ind+(self.page*self.max_chars_on_page))+"#ur mom gay#%") def show(self):