summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/menu.h
Commit message (Collapse)AuthorAgeFilesLines
* Don't include items in drop filter if they're cursed and equipped, or ifzelgadis2008-06-031-1/+1
| | | | | | | they're inscribed with "!d" or "!*". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5446 c06c8d41-db1a-0410-9941-cceddc491573
* Modify menu_colour_item_prefix() to also handle stuff like contaminatedj-p-e-g2008-05-311-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | or poisonous chunks. Throw out all those special cases in food_colouring.txt and replace them with logic. I sure hope I got all special cases, but if not they should be easy enough to add. The functions are currently all in food.cc but they could easily be moved over to clua.cc and adapted accordingly if needed. New prefix shortcuts: * inedible (full herbi/carnivorousness, rotten food for non-saprovores) * preferred (respects foovorousness, rotten for ghouls, royal jelly for everyone) * poisonous * contaminated * mutagenic * rot-inducing (I also added one-liners to the descriptions of chunks of those types.) The changes apply to all menu types, but they don't handle messages. This is problematic in that you'd have to check the pickup menu to see which corpses are worth butchering, but I'm still against keeping all those manual checks for (currently) poisonous/mutagenic/... corpses, esp. as information like this can date quickly. Instead the butchering interface should be improved to somehow handle that, possibly by overriding the prompt colour with the specified colour if necessary. I don't think there are any other cases where this is important. Also add a prefix for equipped items and artefacts, so they can be easily checked for as well. I really think the identified/unidentified prefix should become default (and the option removed) - this allows for easy differentiation between identified and non-identified artefacts. The "known" prefix (for known wand charges or enchantments) is a bit less interesting but wouldn't hurt any (I think). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5373 c06c8d41-db1a-0410-9941-cceddc491573
* Allow specific colouring of pickup menu (as opposed to generalj-p-e-g2008-04-171-16/+17
| | | | | | | inventory). To do so, use "pickup:colour:pattern". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4287 c06c8d41-db1a-0410-9941-cceddc491573
* For David. Menu's draw_title_suffix can now accept a formatted_stringpauldubois2008-04-071-0/+3
| | | | | | | | | | | | instead of a string. See example in StashSearchMenu::draw_title. If you want everything in cyan, you might want to figure out who sets the StashSearchMenu's title->color and change that, too. Added formatted_string::substr(). Lightly tested, seems to work fine. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4091 c06c8d41-db1a-0410-9941-cceddc491573
* [Bug 1907221] Add "Modified for Crawl Reference" statement and author to aj-p-e-g2008-03-081-0/+8
| | | | | | | | huge number of files. Also correct file name comments. No coding changes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3539 c06c8d41-db1a-0410-9941-cceddc491573
* Finally implemented by applying Paul Du Bois' latest patch. :)j-p-e-g2008-02-181-3/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3442 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed mutation menu miscolouring mutations. dshaligram2008-01-251-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3332 c06c8d41-db1a-0410-9941-cceddc491573
* [1801838] Use a menu to show mutation list so long lists don't scroll off ↵dshaligram2008-01-251-0/+17
| | | | | | the end of the terminal. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3331 c06c8d41-db1a-0410-9941-cceddc491573
* Tiles!ennewalker2008-01-051-0/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3194 c06c8d41-db1a-0410-9941-cceddc491573
* Added an MF_SHOW_PAGENUMBERS flag to Menu, which will show "(page X of Y)"haranp2007-12-111-0/+1
| | | | | | | | | as part of the title. This can get a bit confusing when scrolling using up and down (as opposed to page-up/page-down.) Currently only used for select_items(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3047 c06c8d41-db1a-0410-9941-cceddc491573
* Menus are now tagged. Menu colours now only apply to a menu with a matchingharanp2007-10-191-3/+7
| | | | | | | | | | | | tag, unless the menu colour tag is empty or "any". Menu colours are specified as tag:colour:pattern, where the "tag:" part is optional (default is empty tag, i.e., all menus.) The following menu tags exist: ability, description, equip, help, inventory, notes, resists, spell, stash. Default .crawlrc should probably be changed (and the docs, too...) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2493 c06c8d41-db1a-0410-9941-cceddc491573
* A handful of new game options:zelgadis2007-09-171-1/+8
| | | | | | | | | | | | | | | | | | menu_colour_prefix_id, if set to true, causes the identification state of an object to be prefixed to the string menu colour regexes are matched against (but does not alter the string displayed on the screen). menu_colour_prefix_class, if set to true, prefixes the object's base type to the string menu colour regexes are matched against. user_note_prefix can be set to a string which will be prefixed to manual user notes when they are displayed, to make them easier to find. detailed_hunger, if set to true, will cause three new informational-only hunger states to be displayed: near starving, very hungry and very full. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2121 c06c8d41-db1a-0410-9941-cceddc491573
* In the item selection menu, pressing "." will toggle the next item in thezelgadis2007-09-161-0/+2
| | | | | | | | | | | list; you can press "." repeatedly to select/unselect a number of contiguous items. Also, removed the depedancy upon "menu.h" for formatted_string, since that isn't in menu.h anymore. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2101 c06c8d41-db1a-0410-9941-cceddc491573
* Type-safety on mpr() and friends channel argument.haranp2007-08-041-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1970 c06c8d41-db1a-0410-9941-cceddc491573
* Changed Nemelex description (David.)haranp2007-07-261-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1933 c06c8d41-db1a-0410-9941-cceddc491573
* Coloured power display. This is, for now, a rather extreme hack.haranp2007-07-031-0/+1
| | | | | | | | Note that some spells (e.g. Apportation) have no actual power limits, so they will always be 'red'. Suggestions welcome. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1736 c06c8d41-db1a-0410-9941-cceddc491573
* Drop and pickup menus now support Ctrl-F to select all items matching a regex.haranp2007-07-021-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1716 c06c8d41-db1a-0410-9941-cceddc491573
* The tutorial now uses set_more() to display the ability-menu helpharanp2007-06-301-2/+2
| | | | | | | | | | (so Menu doesn't need to be aware of the tutorial.) set_more() support with multi-line strings will only work if there are enough free lines; it doesn't (yet) reduce pagesize. Also, it doesn't handle newlines which aren't EOLs. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1700 c06c8d41-db1a-0410-9941-cceddc491573
* Implemented 1715578: pressing '!' in the Z? screen toggles betweenharanp2007-06-291-0/+27
| | | | | | | showing schools/success and hunger/power. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1693 c06c8d41-db1a-0410-9941-cceddc491573
* Cleaned up abilities screen information for tutorial.j-p-e-g2007-06-151-4/+2
| | | | | | | Small additions to Beogh. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1589 c06c8d41-db1a-0410-9941-cceddc491573
* Added information to the abilities screen during tutorials, j-p-e-g2007-06-101-0/+2
| | | | | | | akin to my previous commit for skills. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1568 c06c8d41-db1a-0410-9941-cceddc491573
* Changed list_spells() somewhat. It's now a slider wraparound menu.haranp2007-05-081-1/+1
| | | | | | | | (Also changed the meaning of what some of the flags do to slider_menu, the default behaviour should be unaltered.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1423 c06c8d41-db1a-0410-9941-cceddc491573
* s/Adolf/Frederickharanp2007-03-241-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1089 c06c8d41-db1a-0410-9941-cceddc491573
* Major overhaul of tutorial messages and clean-up of tutorial.ccj-p-e-g2007-03-141-0/+2
| | | | | | | I've also hopefully fixed a bug concerning entry vaults during the tutorial. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1038 c06c8d41-db1a-0410-9941-cceddc491573
* Requesting help when choosing race/class jumps you to the appropriate ↵haranp2007-03-131-0/+1
| | | | | | | | | section of the manual. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1034 c06c8d41-db1a-0410-9941-cceddc491573
* Confined help menu scrolling to within a file (David.)haranp2007-03-081-0/+5
| | | | | | | | I'm iffy as to whether this really helps, but I'm putting it in for now. 1,000th commit... git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1000 c06c8d41-db1a-0410-9941-cceddc491573
* Kill hard tabs in .h files and crawl_options.txt.dshaligram2007-03-071-1/+1
| | | | | | Turn off mp_warning by default. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@990 c06c8d41-db1a-0410-9941-cceddc491573
* Moved formatted_string into its own file, separate from the rest of Menu.haranp2007-02-171-75/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@954 c06c8d41-db1a-0410-9941-cceddc491573
* Added add_glyph methods to formatted string to show a monster or item glyph asdshaligram2007-01-281-2/+6
| | | | | | | | displayed on screen. Still is a bit messy to use, and you must initialise the formatted_string with a base colour before using add_glyph(), or the formatted_string will reset to lightgrey after the glyph. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@897 c06c8d41-db1a-0410-9941-cceddc491573
* Added formatted_mpr(), which gives (very!) basic support for formattedharanp2007-01-271-9/+9
| | | | | | | output in mpr(). This is an extreme hack, and should be redone better. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@891 c06c8d41-db1a-0410-9941-cceddc491573
* [1638588] Don't use highlighters in formatted_scrollers.dshaligram2007-01-251-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@884 c06c8d41-db1a-0410-9941-cceddc491573
* First steps towards making delay_message_clear useful. The intent is to use adshaligram2007-01-121-1/+1
| | | | | | | | | | | | scrolling message window and show --more-- only when the message window is filled with new messages since the last mesclr (as suggested by Eidolos/doy on ##crawl). This currently works only on curses (breaks the DOS and Windows compiles), I'm working on fixing that. There are also some cursor glitches with prompts at the bottom of the message window that I need to fix. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@837 c06c8d41-db1a-0410-9941-cceddc491573
* Implemented some of David's ideas:haranp2007-01-071-2/+3
| | | | | | | | | Improved the help browser somewhat and added some hotkeys. The 'm' screen now lets you see your aptitudes with '!' (if you're allowed to know them, that is.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@798 c06c8d41-db1a-0410-9941-cceddc491573
* Put tables.txt into the help (hotkeyed to 's', for 'skills'.)haranp2006-12-311-11/+6
| | | | | | | Made help accessible from the race/class choosing screens by '+'. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@755 c06c8d41-db1a-0410-9941-cceddc491573
* Menu browsing should not have easy_exit set (Darshan.)haranp2006-12-271-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@707 c06c8d41-db1a-0410-9941-cceddc491573
* Put in a very basic help browser on '+'. This is *not* a good key, I'm justharanp2006-12-131-0/+11
| | | | | | | | | | | | parking it here until more decisions on the browser come in. (It should probably be reachable by pressing '?' from the current '?' help screen.) It reads the manual from ../docs/crawl_manual.txt, so you'd better put it there! Yes, this is a hack and will have to be done better. You can press the letter of the section (e.g., 'j' or 'J') to jump to that section. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@627 c06c8d41-db1a-0410-9941-cceddc491573
* Redid how the resists screen works (both in-game and in-dump.)haranp2006-11-291-0/+5
| | | | | | | | Minor notes refactoring. Added a basic notes browser on '_'. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@528 c06c8d41-db1a-0410-9941-cceddc491573
* [1602285] Fixed newgame slider bugs. dshaligram2006-11-291-1/+11
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@526 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed hiding of draw_item() in derived classes of Menu.haranp2006-11-271-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@496 c06c8d41-db1a-0410-9941-cceddc491573
* New overview screen (the 'O' screen.)haranp2006-11-261-0/+9
| | | | | | | | | | This involves changes in quite a few things, so the major savefile version is now 1, and old savefiles *will not load*! Lots of conditional loading code has therefore been removed. Minor savefile version dropped to 0 in everything. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@495 c06c8d41-db1a-0410-9941-cceddc491573
* Merged stone_soup r15:451 into trunk.dshaligram2006-11-221-29/+222
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@452 c06c8d41-db1a-0410-9941-cceddc491573
* These files shouldn't be executable.nlanza2006-08-131-0/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@13 c06c8d41-db1a-0410-9941-cceddc491573
* Add a metric ton of compiler warnings to the Xcode project, and cleannlanza2006-08-131-2/+2
| | | | | | | | | | | up the source accordingly. At some point these warnings should be merged into the makefile system, but I don't have the will to merge them into the 3451351235 individual makefiles at the moment. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@12 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up a mistake in the SVN import.nlanza2006-08-131-0/+216
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10 c06c8d41-db1a-0410-9941-cceddc491573