hardcode ooc /pos (why why why...)
This commit is contained in:
parent
6296069554
commit
4c5095ec9b
@ -1093,6 +1093,7 @@ class gui(QtGui.QWidget):
|
|||||||
def setPosition(self, ind):
|
def setPosition(self, ind):
|
||||||
if not self.oocnameinput.text():
|
if not self.oocnameinput.text():
|
||||||
self.oocnameinput.setText("unnamed")
|
self.oocnameinput.setText("unnamed")
|
||||||
|
self.posdropdown.setCurrentIndex(ind)
|
||||||
self.charside = str(self.posdropdown.itemText(ind))
|
self.charside = str(self.posdropdown.itemText(ind))
|
||||||
self.setJudgeButtons()
|
self.setJudgeButtons()
|
||||||
|
|
||||||
@ -1469,6 +1470,11 @@ class gui(QtGui.QWidget):
|
|||||||
self.ooclog.append(msg)
|
self.ooclog.append(msg)
|
||||||
return
|
return
|
||||||
return
|
return
|
||||||
|
elif text.startsWith("/pos "): # why.......
|
||||||
|
ind = self.posdropdown.findText(str(text.split(" ")[1]))
|
||||||
|
if ind >= 0: self.posdropdown.setCurrentIndex(ind)
|
||||||
|
self.oocinput.clear()
|
||||||
|
return
|
||||||
|
|
||||||
if self.mocktext.isChecked():
|
if self.mocktext.isChecked():
|
||||||
text = mockStr(text)
|
text = mockStr(text)
|
||||||
|
Loading…
Reference in New Issue
Block a user