Qt paper doll's depiction of two-handed weapon

When wielding a two-handed weapon, Qt's paper doll shows uwep
in the shield slot as well as in the weapon slot to reflect
that it's occupying both hands.  Make the shield slot's copy
be a mirror image of the weapon's tile so that it looks less
like wielding two weapons.
This commit is contained in:
PatR
2020-11-08 16:38:01 -08:00
parent ea0ef81ecd
commit 6b37efa9e1
4 changed files with 67 additions and 27 deletions
+9 -5
View File
@@ -23,17 +23,21 @@ public:
void toggleSize();
void setSize(int w, int h);
void drawGlyph(QPainter&, int glyph, int pixelx, int pixely);
void drawCell(QPainter&, int glyph, int cellx, int celly);
void drawBorderedCell(QPainter&, int glyph,
int cellx, int celly, int bordercode);
QPixmap glyph(int glyph);
void drawGlyph(QPainter &, int glyph, int pixelx, int pixely,
bool reversed = false);
void drawCell(QPainter &, int glyph, int cellx, int celly);
void drawBorderedCell(QPainter &, int glyph,
int cellx, int celly, int bordercode,
bool reversed);
QPixmap glyph(int glyphindx);
QPixmap reversed_pixmap(int glyphindx);
private:
QImage img;
QPixmap pm,pm1, pm2;
QSize size;
int tiles_per_row;
//QTransform *mirrormatrix;
};
} // namespace nethack_qt_