Qt prompt highlighting
When qt_yn_function() or qt_more() is asking for a single character response, typing anything will cause the prompt line in the message window to stop being highlighted. If they reject what's been typed, they beep (--More-- doesn't start beeping until second rejection); change both of them to also rehighlight the prompt line to give a visual indication that the question/acknowledgement is still being asked.
This commit is contained in:
@@ -184,6 +184,14 @@ void NetHackQtMessageWindow::AddToStr(const char *answer)
|
||||
}
|
||||
}
|
||||
|
||||
// used when yn_function() or more() rejects player's input and tries again
|
||||
void NetHackQtMessageWindow::RehighlightPrompt()
|
||||
{
|
||||
// selects most recent message, which causes it to be highlighted
|
||||
if (list && list->count())
|
||||
list->setCurrentRow(list->count() - 1);
|
||||
}
|
||||
|
||||
// are there any highlighted messages?
|
||||
bool NetHackQtMessageWindow::hilit_mesgs()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user