summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libgui.cc
Commit message (Collapse)AuthorAgeFilesLines
* Apply tutorial fixes as well as the macro/wininit path to 0.4.j-p-e-g2008-07-081-1/+17
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6448 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
* Fixing tile issues with region placement. Now regions will be resized ↵ennewalker2008-04-191-12/+17
| | | | | | appropriately, based on crawl_view_geometry. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4372 c06c8d41-db1a-0410-9941-cceddc491573
* [1941246] Cleaning up wininit.txt issues:ennewalker2008-04-191-18/+16
| | | | | | | | Crawl no longer croaks when not finding the file. Deleted file from repository for the sake of convenience. Fixed default sizes so that &~ no longer wraps strangely. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4353 c06c8d41-db1a-0410-9941-cceddc491573
* Fixing assert problem due to wherex() inconsistency between tile and console ↵ennewalker2008-04-181-7/+23
| | | | | | | | versions. Removed jpeg's commented out code in the health bar drawing routine, as the reamining code is correct. (Thanks!) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4339 c06c8d41-db1a-0410-9941-cceddc491573
* Overhaul blood potions to work completely differently.j-p-e-g2008-04-141-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of storing age in item.special they now use a dynamic vector (item.props, like decks do), so that a stack of potions doesn't have to coagulate all at once. Rather than counting down the timers every 20 turns or so, the time-out turn is calculated at creation, and comparison is done against the current turncount. Any action changing a stack (quaffing, firing, Evaporate, picking up, dropping) will always extract the oldest values from the vector, which is likely to be what the player wants. Blood potions now last about 2000 turns (a bit more if drawn from fresh corpses), and coagulate 500 turns before rotting away. I ran a lot of tests in wiz mode and out, but of course there may still be problems. I've added methods to calculate the new timers from old style age counters (item.special), but I'm not sure that they actually work... Oh well... if worst comes to worst, this commit breaks saves. Also: * vampires are not susceptible to fire anymore when Bloodless * make tile_plant_colour also apply for remembered plants out of LOS * fix 1941759: buggy orc dialogue git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4228 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 1940883: Change "tooltip" information to new key settings.j-p-e-g2008-04-131-4/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4220 c06c8d41-db1a-0410-9941-cceddc491573
* A number of whitespace changes. Linux makes this soooo easy. :Pj-p-e-g2008-04-111-51/+48
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4196 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 1937869: Have weapon swapping respect spells the character knowsj-p-e-g2008-04-111-24/+88
| | | | | | | | | | | | | and allow wielding the appropriate items, e.g. arrows for Sticks to Snakes etc. Use the same rules for clicking on items in Tiles. Also add yet another minimap colour option, this time for plants (really zero xp monsters in general) since I became tired of plant-rich vaults showing up in bright red colours. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4195 c06c8d41-db1a-0410-9941-cceddc491573
* Fixing tiles striping issue.ennewalker2008-04-031-1/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4054 c06c8d41-db1a-0410-9941-cceddc491573
* Fix X11 tiles build.dolorous2008-04-011-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4029 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 1921769: Exclusion squares on the tiles minimap sometimesj-p-e-g2008-03-301-9/+8
| | | | | | | | | | not being updated. Also add yet another minimap colour option for the centre of an exclusion (defaults to darkblue). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3958 c06c8d41-db1a-0410-9941-cceddc491573
* Applying static method conventions to acr.cc and items.cc - this resultedj-p-e-g2008-03-251-46/+50
| | | | | | | | | | in removing several unused functions from the latter file. Renaming tiles options show_items and title_screen to tile_show_items and tile_title_screen. And as usual, cleaning up tiles code some more. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3876 c06c8d41-db1a-0410-9941-cceddc491573
* Another huge code clean-up for tiles. At this rate, soon no linej-p-e-g2008-03-251-77/+83
| | | | | | | in the tile code will have been untouched. :p git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3874 c06c8d41-db1a-0410-9941-cceddc491573
* Tiles:j-p-e-g2008-03-251-12/+57
| | | | | | | | | | | | | | * Fix cursed wielded weapons being throwable. (Whoops!) * Improve logic for mouse-over information in inventory. Add Confusing Touch ("Touch") and Sure Blade ("Blade") to the status output. I've moved BWpn into line 3 to make space for the others. Still, the status can get positively cluttered. Apply coding convention to static methods in output.cc. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3872 c06c8d41-db1a-0410-9941-cceddc491573
* Fixing [1912248] shadow targetted "forbidden".ennewalker2008-03-251-20/+5
| | | | | | This change also makes targetted walls use the yellow cursor instead. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3867 c06c8d41-db1a-0410-9941-cceddc491573
* Fix the display of monsters in the tiles minimap. (My mistake, sorry.)j-p-e-g2008-03-241-11/+12
| | | | | | | | And remove the strange exception for shafts in the calling of handle_traps() as brought up in Bug 1916327 (now discussion about levitation + traps). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3863 c06c8d41-db1a-0410-9941-cceddc491573
* Refix tiles monster brands to show the heart for friendlies.j-p-e-g2008-03-231-245/+274
| | | | | | | And another huge code cleanup. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3838 c06c8d41-db1a-0410-9941-cceddc491573
* Introduce a temporary neutral brand for tiles because it was driving me nutsj-p-e-g2008-03-231-33/+63
| | | | | | | | | | | | when testing Ely's pacifying. (Currently only inappropriately reuses TILE_NEW_STAIR, which will have to be replaced with something more distinctive some time.) Also add an option for colouring neutrals on the minimap (defaults to red, like hostiles) and allow secondary item use by Ctrl-L-clicking on items in inventory (firing weapons, unwielding rods, etc.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3830 c06c8d41-db1a-0410-9941-cceddc491573
* Fix new firing interface to also apply when selecting items via tile inventory.j-p-e-g2008-03-121-7/+1
| | | | | | | | | | | | | | | | | | | | | (This will also change the quiver, so that tile players no longer need to repeatedly choose the same stack of darts to fire: ff will work nicely.) Implement first part of FR 1911866: merging W/T, R/P The existing option "easy_unequip" now also allows direct choice of which armour to take off from the 'W' menu, and same for jewellery for 'P'. Warning inscriptions are respected. Now we only need to add a new sorting option sort_equipped that takes care of equipped stuff being listed first in the inventory. Last time I tried something like this (chunk sorting by age) I failed miserably, so I'm making no promises. Also tweak my recent {tried} modification to only apply to jewellery since for some reasons all unidentified randart weapons show {tried} where jewellery is really picky about which randarts have been tried and which haven't. Probably still needs fixing. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3607 c06c8d41-db1a-0410-9941-cceddc491573
* [Bug 1907221] Add "Modified for Crawl Reference" statement and author to aj-p-e-g2008-03-081-1/+3
| | | | | | | | 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
* Fix 1905715: Print "nothing appears to happen" when zapping /diggingj-p-e-g2008-03-031-1/+1
| | | | | | | | | without effect, same as for enchantment wands. Fix 1905740: Only list actual spellbooks for memorise prompt. Also: s/memorize/memorise git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3508 c06c8d41-db1a-0410-9941-cceddc491573
* Make Options.race and Options.class translate correctly, no matter whether j-p-e-g2008-03-021-0/+1
| | | | | | | | | | | | the old or new species/classes order is used. Entails some more unborking of newgame.cc. Also: make Esc leave the species selection screen (synonym for 'X', quit the game), and use it to jump back to species selection from all other selection possibilities (class, book, weapon, god) as a synonym for Bksp. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3505 c06c8d41-db1a-0410-9941-cceddc491573
* Fixing Win32 tile issue with cursor not being displayed on out of sight tiles.ennewalker2008-03-011-1/+1
| | | | | | Reverting previous change to make cursor be red on out of sight tiles that have been seen. You can still click on them to travel and so it feels wrong to have the cursor appear invalid. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3498 c06c8d41-db1a-0410-9941-cceddc491573
* Fixing a tiles issue where unseen tiles appeared to have nets. This was due ↵ennewalker2008-03-011-3/+4
| | | | | | | | to foreground tiles inadvertantly using the flags for background ones. Fixing a tiles issue where the cursor would not be red/invalid on magic mapped, out of sight cells. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3496 c06c8d41-db1a-0410-9941-cceddc491573
* Trap art update to have different graphics for each kind of trap.ennewalker2008-02-291-5/+2
| | | | | | Also, improved ettin and zombie tiles. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3477 c06c8d41-db1a-0410-9941-cceddc491573
* Fixing tiles mini-map issues:ennewalker2008-02-091-14/+12
| | | | | | | * Player markers no longer leave black trails. * Mini-map now displays the whole map and doesn't cut two cells off the edges. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3418 c06c8d41-db1a-0410-9941-cceddc491573
* [1885302] Use commonwealth "defence" instead of "defense".dshaligram2008-02-031-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3389 c06c8d41-db1a-0410-9941-cceddc491573
* Fix collision between gotoxy(int,int,int) and DOS djgpp gotoxy().dshaligram2008-01-251-21/+21
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3337 c06c8d41-db1a-0410-9941-cceddc491573
* Some comment indentation, and really minor tile fix.j-p-e-g2008-01-241-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3317 c06c8d41-db1a-0410-9941-cceddc491573
* Add mouseclick handling for menus in tiles:j-p-e-g2008-01-241-8/+17
| | | | | | | | | | | | | | | | | | | | | | | | L-click will page down, R-click is treated like Escape. Change L-click on player from single turn search to (the more useful, I think) pickup, and add L-click to list of alternatives to call the pickup menu, so that clicking on the player icon twice will directly open the pickup menu. This is getting complicated: there are so few combinations of mouseclicks possible, but because they do different things under different circumstances this *really* needs to be documented somehow. Fix coloured hp/mp bars not updating during running. (During travel the map needs to be redrawn anyway, so also having to redraw the bars doesn't hurt any.) Also fix list_rotten to be readable from init.txt (and default to true). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3316 c06c8d41-db1a-0410-9941-cceddc491573
* Add tile options to configure minimap colours.j-p-e-g2008-01-211-21/+57
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3314 c06c8d41-db1a-0410-9941-cceddc491573
* Tiles: allow direct selection of corpse to be butchered from floorj-p-e-g2008-01-211-9/+38
| | | | | | | or to drink blood from for vampires git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3313 c06c8d41-db1a-0410-9941-cceddc491573
* A bit of tile code cleanup.j-p-e-g2008-01-201-10/+10
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3303 c06c8d41-db1a-0410-9941-cceddc491573
* Tiles: Show excluded squares in minimap j-p-e-g2008-01-201-0/+4
| | | | | | | (darkcyan, and overridden by any feature, monster or item) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3302 c06c8d41-db1a-0410-9941-cceddc491573
* Fix non-tile compile of tutorial.cc (whoops!)j-p-e-g2008-01-191-2/+3
| | | | | | | | | | | Add messages when entering or leaving the level map ('X') in tiles. First attempts at outlining icons via cursor in tile tutorial. (Currently this only works for monsters, though I'm not sure why...) And some code clean-up for tiles and the tutorial. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3301 c06c8d41-db1a-0410-9941-cceddc491573
* Making mouse-over region larger on Linux.ennewalker2008-01-181-30/+26
| | | | | | | Reformatting mouse-over messages to be consistent. More tile code cleanup and dead code removal. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3299 c06c8d41-db1a-0410-9941-cceddc491573