Below are some screenshots of a plugin I am working on, to show inventory details. Notice the tabbed window - each tab is a hotspot, and if you click on it, the window is redrawn with the appropriate inventory items filtered into the main view. The filtering reduces the amount of space needed to show the entire inventory, as well as grouping thing together logically.
Also, as you mouse-over each item, a "rollover" window appears which gives more details about that item, resized to exactly fit what needs to be said:
The second screenshot shows how the rollover window is smaller, for a different item. Also in the main inventory window you can see multiple items (5 x Ring of Demonslaying):
There is also provision for managing multiple "pages" of inventory, by clicking on the "Next" or "Previous" buttons to scroll through the inventory.
The third screenshot shows an example of responding to mousedown/mouseup. This pops up an "action" menu so you can choose what to do with this item:
The popup menu code is not available yet - this will be released in MUSHclient version 4.37.
Another rollover window appears if you mouse-over the inventory header - this shows a summary of the inventory contents (or bag contents, as in this case):
Predictable behaviour of the actions has been facilitated by extra code being added to Aardwolf by Lasher, which gives each item a unique "id" (which is shown at the bottom of the rollover window). This removes confusion about dropping 2.sword or wearing 4.shield, which can be hard to manage if you pick up and remove items.
This plugin is not available yet, it is a work in progress, however I hope that what has been achieved so far will inspire other plugin authors to do similar things for their MUDs.
|