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:
+9
-5
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user