summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libgui.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* [1838120] Ghosts change icon when saving and restoring in tile versionennewalker2008-01-181-1/+5
| | | | | | [1843058] Player info too close to map in tile version git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3296 c06c8d41-db1a-0410-9941-cceddc491573
* Some more improvements for (you guessed it) the tiles. j-p-e-g2008-01-181-25/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hey, I can't help it! :) Fix 1872624: Detect creatures revealing too much info The tiles drawn for detected monsters are now mons_genus(monster). It's not quite as strict as only showing the letter in ASCII (e.g. merfolk, minotaur and elephant slug have different genus but one common letter), but it's certainly better than showing the actual monster. Some more changes to L-click action in inventory, this time adding rods to the mix that can now be evoked rather than unwielded. Also: * Fix cut-off of first digit in item quantities > 99 * show friendly monsters on map overview as lightred (hostiles remain darkred) * show player on map overview as white even when zooming around in X-mode * general clean-up And, not tile-related: FR 1819454: * add mutation line for gourmand behaviour of Ogres and Troll. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3295 c06c8d41-db1a-0410-9941-cceddc491573
* Add a number of (hopefully useful) mouse-click shortcuts for tiles.j-p-e-g2008-01-171-7/+78
| | | | | | | | | | | | shift-L-click on player: follow stairs (up or down as necessary) shift-R-click on player: show religion screen (if religious) click on stat area: call '5' (100 turn resting) and add mouse-over information for these commands. Do we need a seperate documentary or is this enough? git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3294 c06c8d41-db1a-0410-9941-cceddc491573
* Mixed commit of small additions/changes.j-p-e-g2008-01-131-61/+81
| | | | | | | | | | | | | | | | | | | | FR 1870139: output "Tele" among enchantment abbrevs when "about to teleport" FR 1834016: print item slots along with rotting message (I added an option for this as I personally don't need this.) Gods: * Add ^ line for Zin's mutation protection. * Modify protection from harm adjectives in ^ screen to make difference between Ely and Zin/TSO more obvious. Tiles: Bug 1870238: Show mimics to be "autopickuable" (green frame). * Smarter handling of L-click actions in inventory. * code clean-up git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3269 c06c8d41-db1a-0410-9941-cceddc491573
* Whoops, forgot about manuals.j-p-e-g2008-01-121-3/+9
| | | | | | | Don't attempt to memorize manuals or the book of destruction. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3265 c06c8d41-db1a-0410-9941-cceddc491573
* Tile changes. *waves to Enne*j-p-e-g2008-01-121-17/+30
| | | | | | | | | | | | | | | | Fix assertion error when unwielding items. FR 1838216: Make R-click on map *really* show grid information. FR 1838219: Add more diverse action verbs for items in inventory ("eat", "unwield" etc. rather than plain "use") and allow memorizing by L-clicking on books. Bug 1858432: Show 0 charge icon for empty but unID'd wands. Also: Don't regard enslavement on friendlies as attack attempt. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3264 c06c8d41-db1a-0410-9941-cceddc491573
* Fix tiles title screen issues on Win32.ennewalker2008-01-121-289/+227
| | | | | | Continuing tile code cleanup. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3257 c06c8d41-db1a-0410-9941-cceddc491573
* Fixing stat window to use crawl_view.hudsz and not hard-coded numbers.ennewalker2008-01-101-2/+2
| | | | | | Fixing message window scrolling not moving the cursor position for input. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3238 c06c8d41-db1a-0410-9941-cceddc491573
* Tiles!ennewalker2008-01-051-0/+2172
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3194 c06c8d41-db1a-0410-9941-cceddc491573