summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cio.h
Commit message (Collapse)AuthorAgeFilesLines
* Special handling for WebTiles travel depth promptPekka Lampila2013-12-031-1/+2
| | | | | | Allows using <, >, $ etc. Dead keys aren't handled properly (at least not in Firefox on Linux).
* Special handling for repeat cmd prompt in WebTilesPekka Lampila2013-12-031-0/+5
| | | | Previously it was simply broken.
* More formatting fixes for return (...);Neil Moore2013-11-151-2/+2
|
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-2/+2
|
* Cancel an american speling.Adam Borowski2013-08-241-8/+8
| | | | | | Looks like, unlike "target[t]ing" where a single t is used by many brits and even some aussies, "cancel[l]ing" has double l even for a good deal of americans.
* Allow specifying pre-filled text for {msgwin,cancelable}_get_line.Neil Moore2013-08-241-1/+3
| | | | Also remove an unused parameter.
* Webtiles: Fix the ? key in stash search (#6630).Florian Diebold2013-03-131-0/+2
|
* merge of small-screen changes from old build envChris West2013-01-051-0/+6
|
* Android port.frogbotherer2012-09-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-5/+5
| | | | | | | | | | | | | 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.
* Make inline functions static.Adam Borowski2012-08-091-1/+1
| | | | | | | | | This avoids unnecessary non-inlined copies. Also, we had a few large functions that had no reason for inlining, let's have them be regular ones. I also made "static inline" always use the same order, for easier grepping.
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-1/+1
|
* Cut down on transitively including directn.hAdam Borowski2012-06-201-3/+0
| | | | | It's a big header, hardly ever needed, yet it was pulled even for low-level files that don't deal with the game itself like lib${UI}.cc
* Add more printf warnings (SamB).Adam Borowski2011-09-211-1/+1
|
* Make a bunch of functions static or non-existant.Adam Borowski2011-08-171-1/+0
|
* Adjust some whitespace and formatting.Adam Borowski2011-07-081-1/+2
|
* Fix nowrap_eol_cprintf() overshooting in some cases.Adam Borowski2011-04-041-2/+1
| | | | | It's used only in four places, none of them can be actually triggered currently, but might be in the future.
* Merge branch 'unicode'.Adam Borowski2011-04-011-4/+4
|\ | | | | | | | | There are some issues left, like incorrect wrapping in some cases, but we can fix them later.
| * Unicode support in the line_reader, including CJK and combining.Adam Borowski2011-03-311-1/+2
| | | | | | | | | | | | | | | | | | There are sadly some redraw errors when there's line-wrapping involved, especially if you're editing something not at the end of the buffer, but these appear to be not regressions so I left them for now. I am tempted to just brute-force it by redrawing the whole thing and let ncurses optimize it...
| * Evict all non-character key codes to negative values (tiles).Adam Borowski2011-03-311-3/+2
| |
* | Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-5/+4
|/ | | | | | | "File:" is shown in your editor's status bar. "Written by:" was used only for the first person who changed a file. We got git for that now, and pre-DCSS history is so woefully inaccurate it doesn't really matter.
* Bind Tab to autofight, shift-Tab to autofight_nomove.Adam Borowski2011-02-281-0/+3
|
* Make some functions static, remove unused among those.Adam Borowski2010-10-271-1/+0
|
* Massive spacing fixes: "( spaces after parentheses )".Adam Borowski2010-10-151-4/+4
| | | | | | I did review it manually to find places where they made sense (like some tables), but for a massive sed job like this there might be places that I missed.
* Bring sanity to enums by making them diffable/patchable.Adam Borowski2010-06-081-2/+2
|
* Get rid of get_input_line.Robert Vollmert2010-05-151-2/+0
| | | | It's not used anymore, and was buggy on windows console.
* Replace c_getch by getch_ck.Robert Vollmert2010-03-281-4/+0
| | | | | | It was always just getch_ck for our current platforms, except for Windows tiles, which seems like an accident more than anything else.
* Merge remote branch 'origin/master' into direction-rewriteHaran Pilpel2010-01-231-6/+3
|\ | | | | | | | | Conflicts: crawl-ref/source/directn.cc
| * Make line_reader aware of its region.Robert Vollmert2010-01-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | This should provide more clarity around the wherex()/wherey()/ get_cursor_region() confusion, which has to do with wherex()/wherey() being screen relative in console mode and region relative in tiles. It's still a hack, thought, and untested in tiles at the moment. The main reason behind this is to eventually allow the line_reader to scroll the region it's working in (see #484).
| * Remove maxcol parameter from cancelable_get_line.Robert Vollmert2010-01-181-5/+1
| |
* | Complete rewrite of direction(). Tiles people need to look at this.Haran Pilpel2010-01-231-0/+1
|/ | | | | | | | Rewrite direction and make message spam much more controllable. Unfortunately, this seems to have had the side effect of making it much slower on tiles. Can the tiles people take a look at this and figure out what I'm doing wrong? Not 100% tested, might still have bugs.
* headers: remove 'AppHdr.h' include from .h filesSteven Noonan2009-10-101-1/+0
| | | | | | | | This breaks the GCC if you're using precompiled headers, and we don't need this included in these headers anyway. All the .cc files have AppHdr.h included first anyway. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* * Fix 2744875 (mutation screen assert).j-p-e-g2009-04-111-1/+1
| | | | | | | | | | * Rename KeymapContext KC_* -> KMC_* to avoid overlap with kill_category KC_*. * Increase odds for chaos brands mimicking brands that hurt the defender. * Tweak chaos_affects_attacker(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9595 c06c8d41-db1a-0410-9941-cceddc491573
* Minor typesafety fix.haranp2008-10-051-1/+3
| | | | | | | Added description for '!' and '@' to targeting help. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7137 c06c8d41-db1a-0410-9941-cceddc491573
* Promoted get_cancelable_line_autohist to cio.h as I determined how to make ↵ennewalker2008-09-261-0/+12
| | | | | | it work across files. (Declared it as static, as __FILE__ couldn't be used.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7026 c06c8d41-db1a-0410-9941-cceddc491573
* [2029802] Fixing numpad issues for tiles. Theoretically, this change should ↵ennewalker2008-07-291-2/+0
| | | | | | remove the need for getch() vs. getch_ck() by handling key translation through macro context. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6712 c06c8d41-db1a-0410-9941-cceddc491573
* Fix for 2022236: HP bar could be blanked out when gaining XP. [Thanks sorear]haranp2008-07-211-0/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6624 c06c8d41-db1a-0410-9941-cceddc491573
* Large tiles-related changes. Platform-specific rendering removed and ↵ennewalker2008-07-151-1/+1
| | | | | | replaced with SDL/OpenGL. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6550 c06c8d41-db1a-0410-9941-cceddc491573
* Add still more whitespace fixes.dolorous2008-06-021-8/+8
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5439 c06c8d41-db1a-0410-9941-cceddc491573
* Fixes to compile with Visual C++. Moved direct.cc and direct.h to directn.* ↵dshaligram2008-04-191-1/+1
| | | | | | to avoid conflict with VC++ direct.h header. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4390 c06c8d41-db1a-0410-9941-cceddc491573
* [Bug 1907221] Add "Modified for Crawl Reference" statement and author to aj-p-e-g2008-03-081-0/+1
| | | | | | | | 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
* Added help for stash-search (dpeg).dshaligram2008-01-261-2/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3338 c06c8d41-db1a-0410-9941-cceddc491573
* [1801838] Use a menu to show mutation list so long lists don't scroll off ↵dshaligram2008-01-251-2/+0
| | | | | | 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/+10
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3194 c06c8d41-db1a-0410-9941-cceddc491573
* Added svn properties svn:keywords and svn:eol-style to files which werezelgadis2007-10-031-1/+1
| | | | | | | missing them. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2301 c06c8d41-db1a-0410-9941-cceddc491573
* Split off portions of externs.h and enum.h into other files. Thezelgadis2007-09-151-1/+23
| | | | | | | | | | | | | crawl_environment, player and monsters classes have been left in externs.h, which necessitates that all of the enums references by those classes stay in enums.h, since you can't forward declare an enum. However, it's a start. Also, portions of misc.{cc,h} have been split off into traps.{cc,h}, place.{cc,h} and terrain.{cc,h} git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2095 c06c8d41-db1a-0410-9941-cceddc491573
* Extend rectangular vault support for regular vaults.dshaligram2007-07-071-0/+1
| | | | | | | | Vault collision checking is also non-rectangular now. Fixed Windows builds not reporting line numbers in .des file error messages. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1784 c06c8d41-db1a-0410-9941-cceddc491573
* Experimental mouse support for ncurses (enable with mouse_input=yes indshaligram2007-06-201-0/+226
.crawlrc). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1610 c06c8d41-db1a-0410-9941-cceddc491573