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