today's Qt status update: non-standard conditions

Qt's status highlighting was treating any change to hunger or
to encumbrance as "worse" (shown in red).  That's wrong if you
go from weak to just hungry or from stressed to encumbered.

Comparing satiated with other hunger states is tricky.  I've
ranked it between hungry and weak but that's fairly arbitrary.

Also, change the highlighting when Lev, Fly, and Ride are new
conditions from red to blue.
This commit is contained in:
PatR
2020-11-24 09:45:55 -08:00
parent 229930e505
commit 018d838eb9
3 changed files with 57 additions and 29 deletions
+3 -4
View File
@@ -135,14 +135,13 @@ private:
QFrame vline2; // for statuslines:2, padding between Gold and Time
int cursy;
bool first_set;
bool alreadyfullhp;
// for some fields, we need to know more than just "changed since
// last update"; there's no 'had_time' because Time isn't highlighted
bool was_polyd;
bool had_exp;
// Time isn't highlighted (due to constantly changing) so we don't
// keep track of whether it was On and is now Off or vice versa
//bool had_time;
bool had_score;
QHBoxLayout *InitHitpointBar();