Qt's 3.6 status conditions

Replace the blank placeholder icon with individual placeholders
for Stone, Slime, Strngl, Deaf, Lev, Fly, and Ride.  They're just
40x40 tiles showing solid color (different for each) holding white
block letters spelling the condition.  For the first four of those,
the text runs from upper-left to lower-right, for Lev and Fly the
text runs from lower-left towards upper-right, and for Ride it's
horizontal.  Not particularly exciting but better than blank.  We
still need real artwork to make them be similar to the older
conditions.

Also moves the two petmarks and the pilemark from qt_xpms.h to
qt_map.cpp.  The marks and the assorted status icons are all
static arrays, and including that header in two source files
meant that they were all duplicated unless the compiler or linker
was smart enough to discard the unused ones.
This commit is contained in:
PatR
2020-09-23 16:40:26 -07:00
parent b672511513
commit 10d80eb150
4 changed files with 402 additions and 50 deletions

View File

@@ -88,19 +88,19 @@ NetHackQtStatusWindow::NetHackQtStatusWindow() :
p_encumber[3] = QPixmap(ext_enc_xpm);
p_encumber[4] = QPixmap(ovr_enc_xpm);
p_stoned = QPixmap(blank_xpm); // placeholder icon
p_slimed = QPixmap(blank_xpm); // placeholder icon
p_strngld = QPixmap(blank_xpm); // placeholder icon
p_stoned = QPixmap(stone_xpm);
p_slimed = QPixmap(slime_xpm);
p_strngld = QPixmap(strngl_xpm);
p_sick_fp = QPixmap(sick_fp_xpm);
p_sick_il = QPixmap(sick_il_xpm);
p_stunned = QPixmap(stunned_xpm);
p_confused = QPixmap(confused_xpm);
p_hallu = QPixmap(hallu_xpm);
p_blind = QPixmap(blind_xpm);
p_deaf = QPixmap(blank_xpm); // placeholder icon
p_lev = QPixmap(blank_xpm); // placeholder icon
p_fly = QPixmap(blank_xpm); // placeholder icon
p_ride = QPixmap(blank_xpm); // placeholder icon
p_deaf = QPixmap(deaf_xpm);
p_lev = QPixmap(lev_xpm);
p_fly = QPixmap(fly_xpm);
p_ride = QPixmap(ride_xpm);
str.setIcon(p_str);
dex.setIcon(p_dex);