MCPcopy Create free account
hub / github.com/NetHack/NetHack / highlight

Method highlight

win/Qt/qt_icon.cpp:204–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void NetHackQtLabelledIcon::highlight(const QString& hl)
205{
206 if (label) { // Surely it is?!
207 if (turn_count >= 0) {
208 label->setStyleSheet(hl);
209 turn_count = 4;
210 // 4 includes this turn, so dissipates after 3 more keypresses.
211 } else {
212 unhighlight();
213 }
214 }
215}
216
217void NetHackQtLabelledIcon::dissipateHighlight()
218{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected