|Anonymous | Login | Signup for a new account||2019-04-20 12:56 CEST|
|Main | My View | View Issues | Change Log | Wiki | Tavern | News|
|Viewing Issue Simple Details|
|ID||Category||Severity||Reproducibility||Date Submitted||Last Update|
|0008425||[DCSS] Patches||feature||N/A||2014-04-23 16:17||2014-05-21 05:35|
|Status||resolved||Product Branch||0.15 ancient branch|
|Summary||0008425: Adding a new menu_colour category for items shown in the status panel.|
Hi. I've never submitted a patch here before so I don't really know what I'm doing, but I had an idea and went ahead and implemented it.
This patch adds a new category to menu_colour, called "stats", which is used when an item is shown in the stats panel in the top right.
Normally, not much is coloured there by default save for cursed items. But with this change it's easy to add your own useful colours. I often found myself swapping to the wrong ranged or melee weapon, or keeping wielded chunks equipped too long. Now you can easily add special colours there that won't interfere with your other colour rules. For example:
menu_colour += stats:magenta:food menu_colour += stats:lightblue:melee menu_colour += stats:yellow:ranged
To help make simple rules like that, I also added the "ranged" and "melee" prefixes to weapons in the item_prefix function.
|Tags||No tags attached.|
|Attached Files||0001-Add-stats-category-to-menu_colour-and-provide-ranged.patch [^] (2,934 bytes) 2014-04-23 16:17 [Show Content]|
|In trunk (0.15-a0-938-g840db46), thanks! I made the "melee" tag also appear on staves and rods (0.15-a0-939-ga143668).|
|2014-04-23 16:17||bones||New Issue|
|2014-04-23 16:17||bones||File Added: 0001-Add-stats-category-to-menu_colour-and-provide-ranged.patch|
|2014-04-23 16:22||chris||Issue Monitored: chris|
|2014-05-21 05:35||neil||Note Added: 0026250|
|2014-05-21 05:35||neil||Status||new => resolved|
|2014-05-21 05:35||neil||Fixed in Branch||=> 0.15 development branch|
|2014-05-21 05:35||neil||Resolution||open => done|
|2014-05-21 05:35||neil||Assigned To||=> neil|
|Mantis 1.1.8[^] Copyright © 2000 - 2009 Mantis Group|