summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libgui.cc
Commit message (Collapse)AuthorAgeFilesLines
* Trim unnecessary #includes.Adam Borowski2010-01-131-2/+0
|
* [212] Fixing prompts clearing screen in tiles.Enne Walker2010-01-031-0/+5
| | | | | | | The line reader was always switching back to GOTO_CRT. When receiving input from the message window, this ended up causing the screen to blank and switch to the CRT layer. Adding a function get the current cursor region allows the line reader to not change regions.
* tiles: only include tiledef-*.h in files where they're neededSteven Noonan2009-12-121-0/+1
| | | | | | | This eliminates the annoying full rebuild that happens when the tiledefs are modified. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* cgotoxy now takes GotoRegion instead of int.Robert Vollmert2009-12-101-1/+1
|
* Fix tiles compile (missing includes).Robert Vollmert2009-11-271-0/+1
|
* Fix tiles compile.Robert Vollmert2009-11-261-1/+1
|
* Simplify scrolling handling in message_out.Robert Vollmert2009-11-261-2/+2
| | | | | | | | | | The newline parameter to message_out is gone. Instead, a pointer to the message line is passed which may lie outside the message window. The window is then scrolled to make that line the last line. This also updates libnonunix.cc, but I haven't been able to test those changes.
* Remove unused call to get_show_symbol.Robert Vollmert2009-11-151-4/+0
|
* Remove a few obsolete includes.Robert Vollmert2009-11-101-2/+0
| | | | Also add a few previously indirect includes.
* Remove some obsolete view.h-includes.Robert Vollmert2009-11-101-1/+0
|
* Split shouting and stealth code from view.cc.Robert Vollmert2009-11-101-0/+1
|
* Import showsymb.h in tiles files and fix some mismatched parensgunofdis2009-11-061-0/+1
| | | | | | Fixes tiles build (on Windows). Signed-off-by: Eino Keskitalo <evktalo@users.sourceforge.net>
* Split up view.cc.Robert Vollmert2009-11-041-0/+1
|
* Get rid of multiple-meaning "int object" in env.show.Robert Vollmert2009-11-041-2/+2
| | | | | | | | | | | | | env.show is now a class show_def that stores tagged unions of type show_type. For the moment, there's also env.show_los for use in LOS determination, but that should become an array of boolean at some point. This breaks save compatibility. Tiles and console version build and appear to work fine, but this kind of change is likely to have some side-effects.
* Adding you.in_branch(string) as a lua function.Enne Walker2009-10-311-5/+0
| | | | | | This also removes you.where_are_you() so as not to require lua scripts to know the value of C++ enums. This change also fixes stricmp incorrectly falling through to strcmp on non-MSVC platforms.
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* remove unnecessary "version.h" includes, AppHdr.h does it alreadySteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* libgui.cc: #ifdef out on non-USE_TILE buildsSteven Noonan2009-10-151-0/+3
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Remove a lot of unneccessary includes.Robert Vollmert2009-10-091-11/+0
| | | | | | | The console version still compiles on Linux; both console and tiles version compile in OS X. I haven't been able to test the DOS and Windows compiles -- please fix or tell me about any errors that show up.
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* libgui: fix declaration consistencySteven Noonan2009-09-231-6/+11
| | | | | | | | | | | | | | | | Lots of little things here. The forward declarations for some of these functions simply did not match the function definitions. - clrscr() was declared twice - cprintf(), putch(), putwch(), window(), clrscr() all returned 'void' instead of 'int'. - getch() and strlwr() were defined extern "C", but not declared as such. Also made libgui.cc functions behave like their ncurses equivalents, except that our functions always return the ncurses 'OK' (0) response. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Add punctuation fixes.dolorous2009-07-041-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10094 c06c8d41-db1a-0410-9941-cceddc491573
* Apply my recent commits to trunk.j-p-e-g2009-06-151-2/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9984 c06c8d41-db1a-0410-9941-cceddc491573
* Put platform dependant crash handling code into crash-X.cc files, and linkzelgadis2009-01-221-12/+0
| | | | | | | against them in the make files like libunix/libgui/etc are. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8675 c06c8d41-db1a-0410-9941-cceddc491573
* UNIX/mgw tiles stubs for crash handler; stop-gap until it's made to use thezelgadis2009-01-181-0/+12
| | | | | | | same crash handling code as the console/ASCII version. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8546 c06c8d41-db1a-0410-9941-cceddc491573
* Setting all .h/.cc files in source to have a consistent keyword propset.ennewalker2009-01-041-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8218 c06c8d41-db1a-0410-9941-cceddc491573
* Adding REVISION() macro to all source files.ennewalker2009-01-041-1/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8217 c06c8d41-db1a-0410-9941-cceddc491573
* Tiles performance improvements. redraw() is not needlessly done three times ↵ennewalker2008-12-081-1/+1
| | | | | | as often as it should. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7776 c06c8d41-db1a-0410-9941-cceddc491573
* [2021064] Fixing awful bug where autoexplore (and others) couldn't be cancelled.ennewalker2008-09-271-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7032 c06c8d41-db1a-0410-9941-cceddc491573
* Remove pre-Stone Soup change history from source files, and push it allj-p-e-g2008-09-141-5/+0
| | | | | | | | | | into a file crawlhistory.txt in docs/obsolete. I used a perl script to do this under the assumption that all these change logs used the same system following the keyword "Change History". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6930 c06c8d41-db1a-0410-9941-cceddc491573
* Fixing assertions from tileidx_unseen due to separation of tiles into ↵ennewalker2008-09-061-3/+6
| | | | | | different textures. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6893 c06c8d41-db1a-0410-9941-cceddc491573
* Improved Tile screen layout. Small screens get the message window overlaid ↵ennewalker2008-08-051-5/+2
| | | | | | on the dungeon. Even smaller screens get the graphics shrunk (and thus slightly blurry.) Added full screen options and several predefined layouts for older and newer Eee PC resolutions. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6774 c06c8d41-db1a-0410-9941-cceddc491573
* [2029802] Fixing numpad issues for tiles. Theoretically, this change should ↵ennewalker2008-07-291-4/+4
| | | | | | 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
* [2021070] Adding Tiles health/mp bars.ennewalker2008-07-261-28/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6693 c06c8d41-db1a-0410-9941-cceddc491573
* Large tiles-related changes. Platform-specific rendering removed and ↵ennewalker2008-07-151-2220/+108
| | | | | | replaced with SDL/OpenGL. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6550 c06c8d41-db1a-0410-9941-cceddc491573
* Save macro.txt and wininit.txt in the settings folder, both using thej-p-e-g2008-07-081-1/+17
| | | | | | | macro_dir option. We might want to rename said option. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6447 c06c8d41-db1a-0410-9941-cceddc491573
* Misc. minor cleanups. (Yes, a huge amount of them but still...)j-p-e-g2008-06-261-7/+13
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6146 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 1948131: Quiver slot name wraps around the screen.j-p-e-g2008-06-151-2/+3
| | | | | | | | Also fixes tile issues where the inventory was partly covered or not shown at all. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5844 c06c8d41-db1a-0410-9941-cceddc491573
* [1982177] Fix issue where the minimap wasn't coloring out-of-sight neutral ↵ennewalker2008-06-121-6/+3
| | | | | | or friendly monsters correctly. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5769 c06c8d41-db1a-0410-9941-cceddc491573
* I'm not sure I actually coded anything worthwhile, though I experimentedj-p-e-g2008-06-021-22/+25
| | | | | | | | | | | | | | | | a fair bit and as usually ended up doing lots of clean-up. Oh wait, I modified eat_from_floor prompts to only force a more if there was actually a message before trying the inventory (whoops), and also modified the corpses in pack hint to take into account that a saccing player won't be interested in butchering rotten corpses. Also implemented a modified FR 1981119: when Detect Creatures only detects plants already seen before, print a different message ("You detect no further creatures."). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5435 c06c8d41-db1a-0410-9941-cceddc491573
* Consolidate all cases where corpses are turned into skeletons, asj-p-e-g2008-05-311-11/+11
| | | | | | | | | | | | | | | | | | suggested by dolorous in BR 1977925, and turn coloured draconian corpses into plain draconian skeletons. Same when the game attempts to create coloured draconian skeletons or simulacrums. Added autoinscription to the single inscription command ('{') - this is necessary for items with long descriptions that can't autoinscribed otherwise. Added a small hack to make death cobs (%) appear correctly in the monster list. The rest is cleanup, I believe. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5376 c06c8d41-db1a-0410-9941-cceddc491573
* Modify num_feats_between to return early if a feature has beenj-p-e-g2008-05-271-120/+137
| | | | | | | | encountered and we're only interested in whether the path is clear or not. Also, more whitespace/comment changes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5298 c06c8d41-db1a-0410-9941-cceddc491573
* First attempt at making vampire feeding interruptible. It doesn't workj-p-e-g2008-05-051-3/+1
| | | | | | | | | | | yet (I had "You stop feeding" followed by "You continue feeding" including full effects), but it's probably better to commit now anyway. Known potions of blood or porridge cannot be quaffed when engorged (alive). Also clean up blood potions check. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4871 c06c8d41-db1a-0410-9941-cceddc491573
* [1940326] Fixing bug where the mouse couldn't be used to select items on the ↵ennewalker2008-04-231-2/+11
| | | | | | inventory/menu/drop screen. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4528 c06c8d41-db1a-0410-9941-cceddc491573
* Add miscellaneous undead-related fixes. When changing species to dolorous2008-04-221-2/+2
| | | | | | | | | | | | vampire in wizard mode, set you.is_undead to the proper value; check for you.is_undead's being US_UNDEAD when determining if a species can eat, instead of checking for the mummy species directly; and display the "if you weren't so full, you could turn into a bat" message for vampires that gain the ability when at least full, instead of only when satiated, since it won't work in the former case. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4476 c06c8d41-db1a-0410-9941-cceddc491573
* Fixing crash in the Windows tile version.ennewalker2008-04-221-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4469 c06c8d41-db1a-0410-9941-cceddc491573
* Change mummy curses to only turn part of a stack of potions into decay.j-p-e-g2008-04-211-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Instead, the amount is 2 + random2(quantity - 1), so ranging anywhere from 2 to the entire stack. Yes, I know this is probably highly controversial, but I've thought about it some, and I think that this will actually change little for most characters: You still won't take large stacks of valuable potions into the Tomb since even if only part of the stack is destroyed it's a huge loss. On the other hand, this is easier on newbies who had no idea this could happen, and makes it a bit more harder for Transmuters to turn their twenty-something potions of water into decay. I also added a message ("Your potions of xyz decay.") if you know the decay type. Otherwise the message is suppressed, so as to replicate the current situation of "Hey, what's this? When did I pick up those? (q)uaff..." For consistency, I also added a message when stuff is cursed, or rather I merged all those "Your foo glows black" messages into do_curse_stuff() that now takes a parameter "quiet" to control whether it's printed ot not. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4438 c06c8d41-db1a-0410-9941-cceddc491573
* Fixing minimap issue where the markers could get confused if there were ↵ennewalker2008-04-201-2/+14
| | | | | | multiple squares with the player colour. Markers no longer depend on the contents of the map. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4409 c06c8d41-db1a-0410-9941-cceddc491573
* [1940992] Fixed minimap travel/view issues. This fixes both the "off by ↵ennewalker2008-04-201-3/+3
| | | | | | three squares" as well as an unmentioned "off by two pixels" issue. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4401 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