summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/menu.h
Commit message (Collapse)AuthorAgeFilesLines
* allow stash titles to wrap if they are too long (1260)Jesse Luehrs2014-08-031-0/+1
|
* Remove MF_DROP_PICKUP.Neil Moore2014-05-291-1/+0
|
* Improve doxygen tagging of an enum.Neil Moore2014-03-191-22/+20
|
* Show inventory weights only for pickup/drop by default.Neil Moore2014-03-191-0/+1
| | | | | | | | Add a third, default, value for show_inventory_weights, to enable weights for pick-up and drop menus only. Ctrl-W continues to toggle weight display in the current menu, but is no longer persistent from one menu to the next.
* Drop pointless empty lines after or before a brace.Adam Borowski2013-12-211-1/+0
| | | | | I left them only where the contents is not indented, like in a namespace or a template.
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-2/+2
|
* Remove an unused member variable (kilobyte)Neil Moore2013-10-161-1/+1
|
* Condense some duplicated menu code for formatted_scrollerChris Oelmueller2013-09-211-1/+3
| | | | | | | | | Also re-align, and highlight input keys as in lots of other places. Show this improved -more- line for viewing character notes, too. The TODO was removed as well because the only effect of dynamically changing displayed "help" information like this is player confusion. Static information works better when it comes to legends.
* Fix lots of typosChris Oelmueller2013-07-231-1/+1
|
* Improve handling of menu titles in WebTilesPekka Lampila2013-06-071-0/+7
|
* Whitespace fixesChris Oelmueller2013-05-211-7/+7
|
* Simplify and rename a function.Florian Diebold2013-04-281-1/+1
|
* Enabled aptitudes and species info hotkeys to work when selecting character.Kyle Fox2013-04-281-0/+2
| | | | | | | The start and end values for the webtiles menus were not being updated correctly when a jump_to was used before the menu actually appeared. Signed-off-by: Florian Diebold <flodiebold@gmail.com>
* added some missing #ifdefs; cleaned up MenuScroller when there's only one ↵Chris West2013-01-051-0/+2
| | | | item displayed
* added scroll up/down arrows to MenuScroller; cleaned up initial menu text ↵Chris West2013-01-051-0/+3
| | | | slightly for tiny screens
* Unbreak Webtiles build.Florian Diebold2012-10-231-1/+4
|
* Remove unnecessary includes from header files.Jay3.14152012-10-231-3/+1
| | | | | | | | | | For most header files, this only saves on having to recompile a small number of source files, but there are also a few headers where small changes would now take significantly less time. This is most obvious for the Tiles build for which the dependencies have been greatly reduced, so that the only additional includes when compared to console are strictly library or tile related.
* Skill menu: map shift-click and right-click to single select.Raphael Langella2012-10-081-0/+4
| | | | Does the same as shift-letter.
* Scale the skill menu tiles.Raphael Langella2012-10-081-2/+2
| | | | | Scale up with the tile_cell_pixels option, and scale down when the resolution is too low (instead of disabling tiles).
* Android port.frogbotherer2012-09-081-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2 files are added to the root of the repository: * AndroidAppSettings.cfg: settings file required for Android SDL port. Will change on each minor release to reset configuration. * AndroidBuild.sh: script called by the Android SDL port to commence building the game itself It might be nice to be able to move them elsewhere, but for now, their presence here is required. The build process is documented in docs/develop/android.txt There's a TOUCH_UI compiler flag which sets all the things specific to a touch screen interface. There has been a large amount of changes in the Makefile for redefining where the dat/, saves/, etc. directories go, because the "install" part of the make isn't the final destination for these files under Android - the environment we deploy to is a separate device from the build environment. There is also a number of changes to the tiles interface. Some are specific to the TOUCH_UI, but others are also changed in USE_TILE_LOCAL. Touch only: * 'a'bilities menu goes straight to menu without prompting first * tap menu header to toggle/submit * menu instead of prompt to select which corpse to butcher * same for eating food from the floor (those 2 could go in local tiles too) * show_more defaults to false and less --more-- messages * pickup mode defaults to menu * defaults for tile_layout_priority is different (commands are more important than inventory) * popup for yes/no prompts, level-up stat gain and swapping rings (should be used for all prompts, and probably local tiles too) * spell casting: force selection menu * map mode: left-click rather than right-click for mouse mode; autotravel on left-click removed * remove skills training and memorisation panels Also local tiles (some could also be integrated in webtiles): * commands below description are clickable * clickable shopping menu (uses PrecisionMenu) * split the command panel in 2 (common actions and system commands) * add a map command panel * tapping or left-clicking the player is smarter: * picks up the item if there's one on the tile, otherwise * shows pick-up menu if there's several items on the tile, otherwise * traverses stairs (or enters a portal or shop) if one is present, otherwise * prays if an altar is present, otherwise * waits one turn * right-clicking the map enters map mode and brings the map commands tab to the front; map mode stays until exited rather than upon release of mouse Some more details can be found in android_patch_notes.txt on #5677 (although some TODOs are already obsolete). Signed-off-by: Raphael Langella <raphael.langella@gmail.com>
* Use std namespace.Raphael Langella2012-08-261-73/+73
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Get ability menu to once again handle doing and describing abilities.Steve Melenchuk2012-08-121-0/+1
| | | | | Previously it was only doing one or the other - a fact somehow missed in my testing of the new ability menus.
* Drop a bunch of parentheses from return statements.Adam Borowski2012-08-081-1/+1
| | | | | This is incomplete, partially because of me getting bored, partially because of doubts about the point of leaving simple addition/etc in parentheses.
* Drop a bunch of useless uses of this->Adam Borowski2012-07-101-2/+2
| | | | | I left a few cases where it helps disambiguate between global and object functions by the same name (formatted_string::cprintf(), etc).
* Allow travelling to shops in disconnected levels.Neil Moore2012-07-081-4/+1
| | | | This reverts commit 5463df55be15f947822623c723ca0053f18816b3.
* Allow deleting shopping list items when in portals.Neil Moore2012-07-071-1/+4
| | | | | | | Adding items to the shopping list is still not permitted, since those items will be permanently unavailable upon leaving the level. Partially fixes #2251.
* Don't break autopickup menu with easy_exit_menu = true.Neil Moore2012-07-051-0/+2
| | | | | | | | | | | Because we used MF_EASY_EXIT as a hack for regenerating the menu, the user's easy_exit_menu option would prevent leaving the menu. Instead use lastch == CONTROL('R') to indicate that the menu should be re-entered, and respect the user's easy_exit_menu setting. Unfortunately, easy_exit_menu was disallowed when anything is selected, to prevent leaving e.g. the drop menu too soon. Override this behaviour for MT_KNOW inventory menus.
* Don't show selected item count in autopickup menu.Raphael Langella2012-06-101-1/+1
|
* Autopickup menu.Thann2012-06-091-0/+1
| | | | Signed-off-by: Raphael Langella <raphael.langella@gmail.com>
* Nicer wrapping for the FAQ.Adam Borowski2012-05-111-1/+1
| | | | | This also fixes indentation for bulleted lists that have a space after the bullet.
* Use shift+letter instead of ctrl+letter to single-select skills.Raphael Langella2012-04-241-0/+25
| | | | | | ctrl+letter doesn't work for several letters in console and in webtiles. If more than 26 skills can be trained, the 27th+ are mapped to numbers (and they cannot be single-selected with shift number).
* Unprotect PrecisionMenu::clear_selections.Raphael Langella2012-04-221-1/+1
|
* Handle pgup/down in menuscroller (BkackSheep).Raphael Langella2012-04-191-1/+1
|
* Make the help menu work in webtiles again.Florian Diebold2012-01-181-2/+15
|
* Merge branch 'tiles-monster-info'Florian Diebold2011-12-151-1/+2
|\
| * Make the monster_info constructors explicit and use monster_info in more places.Florian Diebold2011-11-231-1/+2
| |
* | Unify the mutation menu code somewhat for vampires/non-vampires.Florian Diebold2011-12-151-2/+2
| | | | | | | | | | Both now use the same formatted_scroller. Also, the other side of the vampire mutation menu uses another formatted_scroller.
* | Remove the Menu(formatted_string) constructor.Florian Diebold2011-12-151-11/+0
| | | | | | | | | | | | With the mutation display, its last use has switched to formatted_scroller, which seems to be the better tool to just display a formatted string as a menu.
* | Webtiles: Load large menus lazily.Florian Diebold2011-12-081-0/+1
| | | | | | | | | | | | Some menus, namely ^P, ? and ?:, are too large to be sent to the client in one piece. Instead, they are now loaded on demand, in chunks of 50 elements.
* | Webtiles: Send the current menu scroll position to the server and to spectators.Florian Diebold2011-12-081-0/+2
| | | | | | | | | | | | Spectators can still scroll independently; but as long as they don't, they'll see where the player scrolls. Also, Crawl needs the current scroll position to select the correct item in long (>52) lists.
* | Implement dedicated Menu support for Webtiles.Florian Diebold2011-12-081-8/+23
| | | | | | | | | | | | This is just for menus using the Menu class. It means that the menu items are laid out in html on the client side, the menu size adapts to the window of each spectator, and scrolling is done client-side.
* | An bunch of missspelings.Adam Borowski2011-12-011-1/+1
|/
* Fix a couple of Doxygen markup problems. (Both mine.)Samuel Bronson2011-10-031-1/+1
|
* Start work on a generic god menu.Samuel Bronson2011-10-031-11/+0
| | | | | So far, this consists of moving GodMenuEntry to a new module and slightly altering its interface to be more useful outside of ?/G.
* Tweak/punctuate/add doxygen comments in menu.h and menu.cc.Samuel Bronson2011-10-021-31/+31
|
* new hotkeys and colours for ?/Gldierk2011-09-211-0/+11
|
* Combine common parts of lib*.hAdam Borowski2011-09-081-0/+1
| | | | | Having different prototypes for different ports without a good reason is bad. After unification, it's easier to have, for example, two ports at once.
* Merge branch 'webtiles'Adam Borowski2011-07-101-21/+21
|\
| * First prototype of webtiles.Florian Diebold2011-06-261-21/+21
| | | | | | | | | | | | Conflicts: crawl-ref/source/startup.cc
* | Adjust some whitespace and formatting.Adam Borowski2011-07-081-2/+4
| |