summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilesdl.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Display spell cost, success chance, schools, power, range, and hunger inj-p-e-g2009-09-101-2/+3
| | | | | | | | the new tiles display (in the title, quantity, mouse-over description, and right-click description). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10649 c06c8d41-db1a-0410-9941-cceddc491573
* Add an inventory-like region for the Tiles version to make spellsj-p-e-g2009-09-101-4/+54
| | | | | | | | clickable. '_' toggles between inventory and spell display. Actual tiles are still missing, but everything works as it should. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10648 c06c8d41-db1a-0410-9941-cceddc491573
* Fixing blurriness on some tiles textures. This may fix the related issue on SF.ennewalker2009-08-181-1/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10569 c06c8d41-db1a-0410-9941-cceddc491573
* Reimplementing playing with dolls ('-' command). Keys are mostly the same ↵ennewalker2009-08-181-21/+21
| | | | | | | | | | | | | | as the 0.4 version and are documented. Dolls are no longer limited in what features they can force, so your character can always look like a flaming centaur with wings if that's how you want to present yourself. This shouldn't cause any major breakage with save games or dolls.txt files, although expect some weirdness. Sorry. Also, fixed a bug where barding wasn't appearing on nagas or centaurs. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10568 c06c8d41-db1a-0410-9941-cceddc491573
* * Apply patch by kotk to fix the Alt-Tab bug (BR 2805959).j-p-e-g2009-07-271-8/+9
| | | | | | | | * Apply patch by trentbuck to allow packaging with tar (BR 2827595). * Fix 2827342: Consider weapons "too large to wield" as useless. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10424 c06c8d41-db1a-0410-9941-cceddc491573
* Experimentally mark the Alt key as unpressed everytime we get aj-p-e-g2009-07-261-0/+9
| | | | | | | CMD_NO_CMD result with Tiles in case it's the result of the Alt-Tab bug. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10421 c06c8d41-db1a-0410-9941-cceddc491573
* Apply patch 2825337 by zebez: move trapping net tile to player.png toj-p-e-g2009-07-221-5/+15
| | | | | | | | | | save on memory and only load title.png if Options.tile_title_screen is true. Also: delete m_region_title once the title screen was shown. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10376 c06c8d41-db1a-0410-9941-cceddc491573
* Make fish on dry land (due to Feawn's Sunlight power) flop about andj-p-e-g2009-07-211-2/+7
| | | | | | | | | | lose hit points until back in water, using ENCH_AQUATIC_LAND. (Bug 2824663) Also fix tiles compilation (patch 2824632) and add DATA_DIR_PATH to tiled icons (patch 2824635). Both patches (and some more) by Trent W. Buck. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10364 c06c8d41-db1a-0410-9941-cceddc491573
* Apply patch 2789368 to make AltGr work as expected for Tiles.j-p-e-g2009-07-191-3/+3
| | | | | | | | This has always worked for me on Linux and I've got no way to test it on Windows, so I'll just have to hope it's okay. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10341 c06c8d41-db1a-0410-9941-cceddc491573
* First part of the merger of fixed artefacts into unrandom artefactszelgadis2009-06-251-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (further changes will be much smaller). Breaks savefile compatibility, and bumps the major savefile version up to 6. Some changes made to some tiles files, but it hasn't been tested with a tiles build. Overview of changes: * Unrand artefacts are now defined in art-data.txt and is turned into C code via util/art-data.pl. This has the dual advantage of being more readable by humans, and that if the unrand data structure changes then you can just change util/art-data.pl and regenerate the C code rather than having to change some 70 different C structs by hand. * util/art-data.pl automatically updates NO_UNRANDARTS, and also automatically generates an enumeration of all the unrands which are equal to their item.special field. * randart.cc and randart.h have been renamed to artefact.cc and artefact.h, since the files covers all types of artefacts, and the differences between randarts, unrandarts and (former) fixed arts have been minimized since the terms were introduced. Also renamed unrand.h to art-data.h * The brands and resistances of former fixed arts are now handled via artefact properties, but the rest of their special behaviours are still hardcoded. * Unrandarts are now distinguished between normal and "special", with the special ones currently just being identical to the list of the formed fixed arts. Special unrandarts are randomly generated less often than normal unrandarts, can be generated in the Abyss if they've been lost, can't be picked up by monsters, and can't be affected by Tukima's Dance. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10035 c06c8d41-db1a-0410-9941-cceddc491573
* Apply my previous commit to trunk.j-p-e-g2009-06-241-4/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10029 c06c8d41-db1a-0410-9941-cceddc491573
* Apply commits r10013 and 10014 to trunk.j-p-e-g2009-06-211-31/+51
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10015 c06c8d41-db1a-0410-9941-cceddc491573
* Another step on the way to player doll customization. Including somej-p-e-g2009-06-181-1/+6
| | | | | | | | predefined doll settings in dolls.txt, so players can actually use this. TODO: Save choice back into file. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9999 c06c8d41-db1a-0410-9941-cceddc491573
* Apply my mouse speed-up commit to trunk.j-p-e-g2009-06-161-57/+78
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9987 c06c8d41-db1a-0410-9941-cceddc491573
* Apply my recent commits to trunk.j-p-e-g2009-06-151-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9984 c06c8d41-db1a-0410-9941-cceddc491573
* Apply my recent commits to trunk.j-p-e-g2009-06-141-22/+21
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9978 c06c8d41-db1a-0410-9941-cceddc491573
* [2725123] Fixing issue with the tiles window not redrawing properly when it ↵ennewalker2009-04-191-1/+1
| | | | | | is switched to from another window. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9659 c06c8d41-db1a-0410-9941-cceddc491573
* [2774528] Tiles splash screen.ennewalker2009-04-191-0/+14
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9658 c06c8d41-db1a-0410-9941-cceddc491573
* [2742178] Don't save when closing the window if the player is dead, allowing ↵ennewalker2009-04-181-2/+9
| | | | | | them to reload the save and still be alive. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9617 c06c8d41-db1a-0410-9941-cceddc491573
* Tiles performance improvements to eliminate mouse lag on slower systems. It ↵ennewalker2009-03-291-2/+13
| | | | | | should redraw the screen far less frequently. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9568 c06c8d41-db1a-0410-9941-cceddc491573
* * Merfolk may wear heavy armour while swimming, though their armourj-p-e-g2009-03-291-4/+2
| | | | | | | | | | | | penalty is doubled in deep water. * Change "zombified ally" -> "mindless thrall" (and only count friendly monsters). * Call trackers_init_new_level() earlier, in load(), so that TileNewLevel() can use the correct travel information when drawing exclusions on the minimap. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9566 c06c8d41-db1a-0410-9941-cceddc491573
* * Allow viewing of card descriptions from Triple Draw and Stack Deck.j-p-e-g2009-03-231-1/+3
| | | | | | | | | | * Sort items in 'V' screen according to pickup menu sort order. * Name Xom's randart book gifts more randomly. * Colour items seen by 'x' with message colour tags and same for pickup messages. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9541 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix 2687930: Shorten the spell menu more, and don't call update_title() j-p-e-g2009-03-161-1/+2
| | | | | | | | at '?' as apparently all it does is hide the first spell line. * Uncomment the autoinscription of weapons of distortion in init.txt. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9511 c06c8d41-db1a-0410-9941-cceddc491573
* Overlay tiles in menu with tiles for being equipped/cursed/melded, thej-p-e-g2009-03-141-37/+37
| | | | | | | flavoured floor, and weapon brands. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9477 c06c8d41-db1a-0410-9941-cceddc491573
* Generalize the menu toggle from InvMenu to Menu and use it to properlyj-p-e-g2009-03-111-2/+0
| | | | | | | | tie ability descriptions into the menu. Still haven't worked out how to update the titles, though. :( git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9412 c06c8d41-db1a-0410-9941-cceddc491573
* Greatly improve 'V' command:j-p-e-g2009-03-101-2/+0
| | | | | | | | | | | | | | | * Add toggle to travel to items. (FR 2180269) (Basically copied from StashSearchMenu, but I couldn't work out how to change the title after the toggle.) * Display monster tiles, yay! * Space allowing, display monsters' description along with 'x' information. (Ironically, though this was copied from Tiles, it only works for ASCII at the moment.) * Right-shift all entry types by 1 instead of just InvEntry, so it's more consistent and looks better on the 'V' screen. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9409 c06c8d41-db1a-0410-9941-cceddc491573
* * Add tile for Sonja.j-p-e-g2009-03-091-6/+6
| | | | | | | | * Display wielded weapons for zombies, Sonja, Ilsuiw and Saint Roka. * Reorder get_weapon_offset() to be more logical. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9394 c06c8d41-db1a-0410-9941-cceddc491573
* Tiles:j-p-e-g2009-03-081-1/+1
| | | | | | | | | | | | * (Re?)allow mouseclicks in menus (Tiles, only): L-click = scroll down, R-click = Esc * Clear last_clicked_grid if you move your mouse. * When entering a new level, draw the map before handling monster shouts. Enne, please review the changes. Thanks! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9386 c06c8d41-db1a-0410-9941-cceddc491573
* Tiles again:j-p-e-g2009-03-061-2/+4
| | | | | | | | | | | * Store index of last cell clicked on in inventory and suppress item description if you just clicked on it, so you can see the messages describing whatever you just did (should fix 2660578). * Allow right-click as a synonym for '!' when toggling ^, A, m. * Let shift left-click on avatar standing on altar = prayer. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9343 c06c8d41-db1a-0410-9941-cceddc491573
* [Tiles] Keep track of which dungeon grid the player last clicked andj-p-e-g2009-03-041-19/+19
| | | | | | | | | don't display the grid description (feature, item, monster) for that grid. Fixes (part of) 2660578, i.e. monster descriptions hiding fighting messages. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9330 c06c8d41-db1a-0410-9941-cceddc491573
* Flush messages, just in case, in the two definitions of getch_ck() thatj-p-e-g2009-02-281-0/+2
| | | | | | | don't use getch(), for Tiles and win32. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9280 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes.dolorous2009-02-261-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9240 c06c8d41-db1a-0410-9941-cceddc491573
* Various cleanups, mostly having to do with coord_def().haranp2009-02-151-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9086 c06c8d41-db1a-0410-9941-cceddc491573
* [2541020] Fixing minimap being drawn on top of the dungeon.ennewalker2009-02-141-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9063 c06c8d41-db1a-0410-9941-cceddc491573
* Making tutorial and named monster tags consistent. Also, making tooltips ↵ennewalker2009-02-141-4/+60
| | | | | | not disappear until the mouse moves to another square, to address [2564067]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9062 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes.dolorous2009-02-121-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9038 c06c8d41-db1a-0410-9941-cceddc491573
* Mousing over monsters, items, and features will now show their description ↵ennewalker2009-02-121-6/+30
| | | | | | in the message window. This inadvertantly fixes [2469950], where some lines would appear off screen. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9030 c06c8d41-db1a-0410-9941-cceddc491573
* For consistency with branded missile weapons, make branded missiles "of dolorous2009-01-221-2/+2
| | | | | | | flame" and "of frost" rather than "of flame" and "of ice". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8697 c06c8d41-db1a-0410-9941-cceddc491573
* [2517979] Fixing double inventory items for items on the ground.ennewalker2009-01-191-5/+8
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8570 c06c8d41-db1a-0410-9941-cceddc491573
* [2406286] Fixing inventory overlaying messages. (Thanks, jpeg!)ennewalker2009-01-181-3/+9
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8529 c06c8d41-db1a-0410-9941-cceddc491573
* [2508699] Fixing issue where the orb doesn't appear in the tiles inventory. ↵ennewalker2009-01-171-15/+35
| | | | | | Now, tile_show_items only to specify sorting and not which items are shown or not. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8514 c06c8d41-db1a-0410-9941-cceddc491573
* Remove assert for unhandled mouse button.ennewalker2009-01-171-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8512 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes.dolorous2009-01-171-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8480 c06c8d41-db1a-0410-9941-cceddc491573
* Disallowing mouse clicks on force_more messages to help avoid accidental deaths.ennewalker2009-01-151-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8451 c06c8d41-db1a-0410-9941-cceddc491573
* [2467406] Improving tiles screen layout.ennewalker2009-01-111-55/+91
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8414 c06c8d41-db1a-0410-9941-cceddc491573
* Turning back on minimap for labyrinths, but fixing it so that it recenters ↵ennewalker2009-01-111-1/+6
| | | | | | during map rot, as if the forgotten squares were never seen. (Sorry, jpeg. If you can see it using 'X', I think you should be able to also see it on the minimap.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8404 c06c8d41-db1a-0410-9941-cceddc491573
* Deactivate the minimap in labyrinths since it gave away informationj-p-e-g2009-01-091-3/+1
| | | | | | | about placement on the map and also looked a bit odd. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8365 c06c8d41-db1a-0410-9941-cceddc491573
* In arena mode, make mons_friendly() and mons_wont_attack() always return false,zelgadis2009-01-061-1/+1
| | | | | | | | | | | | | with mons_friendly_real() and monst_wont_attack_real() having the old behaviour of ignoring arena mode. Remove all special casing of "mons_friendly(mon) && !crawl_state.arena", instead using mons_friendly_real() and mons_wont_attack_real() in the monster code which distinguishes friend from foe. Might be a bit buggy. Make Zot traps affect all monsters in arena mode, and never the player. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8255 c06c8d41-db1a-0410-9941-cceddc491573
* Adding REVISION() macro to all source files.ennewalker2009-01-041-0/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8217 c06c8d41-db1a-0410-9941-cceddc491573
* [2334374] Explicitly don't handle a number of state keys (numlock, capslock, ↵ennewalker2009-01-041-9/+12
| | | | | | meta keys, Alt Gr). I'm hoping that this will fix the AltGr wizard key issue. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8202 c06c8d41-db1a-0410-9941-cceddc491573