MCPcopy Index your code
hub / github.com/NetHack/NetHack / RehighlightPrompt

Method RehighlightPrompt

win/Qt/qt_msg.cpp:203–208  ·  view source on GitHub ↗

used when yn_function() or more() rejects player's input and tries again

Source from the content-addressed store, hash-verified

201
202// used when yn_function() or more() rejects player's input and tries again
203void NetHackQtMessageWindow::RehighlightPrompt()
204{
205 // selects most recent message, which causes it to be highlighted
206 if (list && list->count())
207 list->setCurrentRow(list->count() - 1);
208}
209
210// are there any highlighted messages?
211bool NetHackQtMessageWindow::hilit_mesgs()

Callers 2

qt_moreMethod · 0.80
qt_yn_functionMethod · 0.80

Calls 1

countMethod · 0.80

Tested by

no test coverage detected