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

View File

@@ -990,6 +990,13 @@ void NetHackQtMainWindow::doKeys(const QString& k)
qApp->exit();
}
// ENHANCED_PAPERDOLL - player clicked on PaperDoll window
void NetHackQtMainWindow::DollClickToKeys(const char *cmds)
{
keysink.Put(cmds);
qApp->exit();
}
void NetHackQtMainWindow::AddMessageWindow(NetHackQtMessageWindow* window)
{
message=window;