Qt "paperdoll" as command button

Clicking on the paper doll inventory subset window will cause
the '*' command (#seeall) to execute.  They convey the same
information (unless multiple leashes or multiple light sources
are in use; seeall lists all of them instead of just the first
of each) but the doll shows the info with a small grid of map
tiles and seeall shows it with an inventory display of worn and
wielded items plus tools in active use.

Ideally it should show information about a specific item as a
"tool tip" when the mouse hovers over one of the doll slots.
I don't know whether I'll ever attempt to tackle that or even
if that's feasible with Qt.  Perhaps use right click instead.
This commit is contained in:
PatR
2020-10-06 09:42:59 -07:00
parent 52672e8f25
commit e2e9bca3f7
5 changed files with 35 additions and 4 deletions
+3
View File
@@ -16,6 +16,9 @@ public:
virtual void paintEvent(QPaintEvent*);
virtual QSize sizeHint(void) const;
protected:
virtual void mousePressEvent(QMouseEvent *event);
private:
void drawWorn(QPainter& painter, obj*, int x, int y, bool canbe=true);
};