From 99819b08833c3ce3175a4e5cfd9827861f41b9ba Mon Sep 17 00:00:00 2001 From: cidoku Date: Wed, 19 Feb 2025 23:25:08 -0300 Subject: [PATCH] add more tooltips to ui --- gameview.py | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/gameview.py b/gameview.py index e96563f..ea314f7 100644 --- a/gameview.py +++ b/gameview.py @@ -866,31 +866,31 @@ class gui(QtGui.QWidget): self.evidencedelete.setToolTip('Delete selected evidence') self.evidencedelete.clicked.connect(self.onDeleteEvidence) self.evidenceload = QtGui.QPushButton(QtGui.QIcon(AO2XPpath + "icons/" + "folder.png"), "", self.gametab_evidence) - self.evidenceload.setToolTip('Import all evidence from file') + self.evidenceload.setToolTip('Import all evidence from a file') self.evidenceload.clicked.connect(self.onImportEvidence) self.evidencesave = QtGui.QPushButton(QtGui.QIcon(AO2XPpath + "icons/" + "disk.png"), "", self.gametab_evidence) - self.evidencesave.setToolTip('Export all evidence to file') + self.evidencesave.setToolTip('Export all evidence to a file') self.evidencesave.clicked.connect(self.onExportEvidence) self.evidencemoveprivate = QtGui.QPushButton(QtGui.QIcon(AO2XPpath + "icons/" + "arrow_right.png"), "", self.gametab_evidence) - self.evidencemoveprivate.setToolTip('Transfer selected evidence to private inventory') + self.evidencemoveprivate.setToolTip('Transfer selected evidence to the private inventory') self.evidencemoveprivate.clicked.connect(self.onTransferEvidence) self.evidencemoveallprivate = QtGui.QPushButton(QtGui.QIcon(AO2XPpath + "icons/" + "arrow_right2.png"), "", self.gametab_evidence) - self.evidencemoveallprivate.setToolTip('Transfer all evidence to private inventory') + self.evidencemoveallprivate.setToolTip('Transfer all evidence to the private inventory') self.evidencemoveallprivate.clicked.connect(self.onTransferAllEvidence) self.evidencemoveglobal = QtGui.QPushButton(QtGui.QIcon(AO2XPpath + "icons/" + "arrow_left.png"), "", self.gametab_evidence) - self.evidencemoveglobal.setToolTip('Transfer selected evidence to global inventory') + self.evidencemoveglobal.setToolTip('Transfer selected evidence to the global inventory') self.evidencemoveglobal.clicked.connect(self.onTransferEvidence) self.evidencemoveallglobal = QtGui.QPushButton(QtGui.QIcon(AO2XPpath + "icons/" + "arrow_left2.png"), "", self.gametab_evidence) - self.evidencemoveallglobal.setToolTip('Transfer all evidence to global inventory') + self.evidencemoveallglobal.setToolTip('Transfer all evidence to the global inventory') self.evidencemoveallglobal.clicked.connect(self.onTransferAllEvidence) self.evidenceswitchprivate = QtGui.QPushButton(QtGui.QIcon(AO2XPpath + "icons/" + "world.png"), "", self.gametab_evidence) - self.evidenceswitchprivate.setToolTip('Switch to private inventory') + self.evidenceswitchprivate.setToolTip('Switch to the private inventory') self.evidenceswitchprivate.clicked.connect(self.onSwitchInventory) self.evidenceswitchglobal = QtGui.QPushButton(QtGui.QIcon(AO2XPpath + "icons/" + "briefcase.png"), "", self.gametab_evidence) - self.evidenceswitchglobal.setToolTip('Switch to global inventory') + self.evidenceswitchglobal.setToolTip('Switch to the global inventory') self.evidenceswitchglobal.clicked.connect(self.onSwitchInventory) self.evidencepresent = PresentButton(self, self.gametab_evidence) @@ -1003,27 +1003,33 @@ class gui(QtGui.QWidget): self.emotedropdown = QtGui.QComboBox(self) self.emotedropdown.currentIndexChanged.connect(partial(self.changeEmote, True)) + self.emotedropdown.setToolTip('Select an emotion for your character') self.colordropdown = QtGui.QComboBox(self) self.colordropdown.currentIndexChanged.connect(self.setChatColor) + self.colordropdown.setToolTip('Change the color of your message') self.posdropdown = QtGui.QComboBox(self) self.posdropdown.addItems(["def", "pro", "wit", "hld", "hlp", "jud"]) self.posdropdown.currentIndexChanged.connect(self.setPosition) + self.posdropdown.setToolTip('Select your position in the courtroom') self.flipbutton = QtGui.QCheckBox(self) self.flipbutton.stateChanged.connect(self.changeFlipCheck) self.flipbutton.setText('Flip') self.flipbutton.resize(self.flipbutton.sizeHint()) + self.flipbutton.setToolTip("Mirror your character horizontally") self.sfxbutton = QtGui.QCheckBox(self) self.sfxbutton.setChecked(True) self.sfxbutton.stateChanged.connect(self.changeSfxCheck) self.sfxbutton.setText('Play pre-animation') + self.sfxbutton.setToolTip("Play a character-specific animation before the next message") self.nointerruptbtn = QtGui.QCheckBox(self) self.nointerruptbtn.setChecked(False) self.nointerruptbtn.setText('No Interrupt') + self.nointerruptbtn.setToolTip("Show the next message immediately, ignoring animations") # AO 2.8 self.additivebtn = QtGui.QCheckBox(self) @@ -1031,13 +1037,16 @@ class gui(QtGui.QWidget): self.additivebtn.setText('Additive') self.additivebtn.resize(self.additivebtn.sizeHint()) self.additivebtn.clicked.connect(self.onAdditiveCheck) + self.additivebtn.setToolTip('Append the next message to the previous one, without a new textbox') self.deskbtn = QtGui.QCheckBox(self) self.deskbtn.setChecked(True) self.deskbtn.setText('Desk') self.deskbtn.resize(self.nointerruptbtn.sizeHint()) + self.deskbtn.setToolTip('Show or hide the desk in front of your character') self.effectdropdown = QtGui.QComboBox(self) + self.effectdropdown.setToolTip('Show this effect on your next message') self.callmodbtn = QtGui.QPushButton(self) self.callmodbtn.setText('Call mod') @@ -1075,8 +1084,11 @@ class gui(QtGui.QWidget): self.nextemotepage.show() self.realizationbtn = buttons.AOToggleButton(self, 265 + 164, 192 + 304, "realization") self.realizationbtn.clicked.connect(self.onRealizationButton) + self.realizationbtn.setToolTip('Show the next message with a realization effect') self.realizationsnd = audio.loadhandle(False, AOpath + 'sounds/general/sfx-realization.wav', 0, 0, 0) + self.shakebtn = buttons.AOToggleButton(self, 265+42 + 164, 192 + 304, "screenshake") # AO 2.8 + self.shakebtn.setToolTip('Show the next message with a shaking effect') self.customobject = buttons.CustomObjection(self, 250 + 516 - 30, 312 + 40) self.takethatbtn = buttons.Objections(self, 170+ 516 - 20, 312 + 40, 3) self.objectbtn = buttons.Objections(self, 90+ 516 - 10, 312 + 40, 2) @@ -1111,6 +1123,7 @@ class gui(QtGui.QWidget): self.shownameedit = QtGui.QLineEdit(self) self.shownameedit.textChanged.connect(self.onChangeShowname) self.shownameedit.setPlaceholderText("Showname") + self.shownameedit.setToolTip('Set a custom name for your character') self.musicslider = QtGui.QSlider(QtCore.Qt.Horizontal, self) self.soundslider = QtGui.QSlider(QtCore.Qt.Horizontal, self)