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:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user