summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg.cc
Commit message (Collapse)AuthorAgeFilesLines
* Drop double newlines where they seem to serve no purpose.Adam Borowski2013-12-211-1/+0
| | | | | Sometimes, they're there to emphasize a break between two sections of code, which is good. In a majority of cases, though, they're just inconsistent.
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-1/+1
|
* Implement cursors and fix some bugs.Florian Diebold2011-06-261-2/+0
|
* First prototype of webtiles.Florian Diebold2011-06-261-1/+1
| | | | | | Conflicts: crawl-ref/source/startup.cc
* Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-6/+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.
* Add a no_scaling boolean to set_transformRaphael Langella2010-12-101-2/+7
| | | | | | This fix the tiles offset bug with the new skill menu. I don't really understand why scaling breaks the display while translating is still needed. So, this is more a workaround, than a proper fix. But it works.
* Resize the minimap region to take up more space.Enne Walker2010-07-171-0/+15
| | | | | This allows scrolling off the map but still being well within the (perceived) minimap region on screen to not reset the view.
* Clean up GL code function parameters.Enne Walker2010-05-141-1/+1
| | | | | | | Remove any non-const-reference parameters. Change const pointer parameters to const reference parameters. Change all draw(NULL, NULL) calls to just draw(). Also, refactor to remove pretranslate and prescale parameters from draw calls.
* Split tilereg.h/cc into multiple files.Enne Walker2010-04-251-5441/+0
| | | | | No functional changes, just rearranging and exposing functions where needed.
* Reduce dependencies on tilereg.h.Enne Walker2010-04-251-228/+0
| | | | | This was done by pushing ImageManager to tiletex.h, where it better belongs.
* Simplify TileRegion constructors.Enne Walker2010-04-251-34/+25
| | | | | Since all the derived classes need the same set of parameters to pass down to the base class, then just wrap it in a struct.
* Removing lines with just whitespace.Enne Walker2010-04-241-1/+1
|
* Fixups for things that broke during rebase.Ixtli2010-04-241-1/+0
|
* Created FontWrapper, and made FT flag in makefile.Ixtli2010-04-241-14/+15
|
* Removed conditional inclusion of glwrapper.hIxtli2010-04-241-2/+0
|
* Made glwrapper use proper dynamic dispatch for modularity.Ixtli2010-04-241-5/+5
|
* Prettied up glwrapper set_transformIxtli2010-04-241-1/+1
|
* More camel case to underscores_as_spacesIxtli2010-04-241-5/+5
|
* Added GLPrimitive to glwrapper, condenced all vert-drawing methods to ↵Ixtli2010-04-241-33/+38
| | | | | | drawGLPrimitives and then updated tilebuf, font, reg, and sdl to use it propperly. As well, tilebuf's VertBuffer::draw() method needed to be changed to allow passing to pre-render transformations (used in submerged tile rendering.)
* Moved MipMapOptions to glwrapper for modularityIxtli2010-04-241-4/+4
|
* Updated tilereg.cc to use existing GLStateManager member functions instead ↵Ixtli2010-04-241-14/+17
| | | | of direct calls to opengl.
* Integrated glwrapper into tilebuf.h/cc and tilereg.ccIxtli2010-04-241-1/+1
|
* Startup menus.Janne Lahdenpera2010-04-211-9/+3
| | | | | | | | | | | | | | | | | This patch provides the startup menu. Things that (seem) to work properly: Normal game, Sprint, Arena, savegame loading. Things that need improvement: Tutorial does not activate, left it for future project when the new fixed tutorial map is included. Arena needs an options screen before it starts running. MenuScroller does not have a visible scrollbar or more texts. Texts are not properly wrapped inside TextItems. Should also provide an TextItem that uses formatted_string. Signed-off-by: Janne Lahdenpera <felirx@gmail.com> Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* A more generic menu structure approachJanne Lahdenpera2010-04-211-313/+32
| | | | | | | | | | Converts the menu structure to a more generic approach, Converts the species / backgrounds menus to use the structure. Highlighter changed to a nonfilled rectangle in Tiles. Added descriptions to menu options in species / backgrounds menus. Signed-off-by: Janne Lahdenpera <felirx@gmail.com> Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Demonspawn AdditionsRobert Burnham2010-03-311-1/+1
| | | | | | | | | | Implements new demonspawn mutations, removes old scales / mutations which are deprecated. Adds some limited functionality which was necessary for new mutations which might prove useful in the future. Most notably, the monster flag forcing creature inter-level travel as the player moves up / down in the dungeon. Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Fixes an ASSERT bug in PrecisionMenuJanne Lahdenpera2010-03-301-20/+22
| | | | | | | | On some cases, it was possible for highlight_index to become -1 resulting in an ASSERT crash Signed-off-by: Janne Lahdenpera <felirx@gmail.com> Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Replace some (but not all) uses of libc's assert() by our ASSERT().Adam Borowski2010-03-301-3/+3
|
* Adds support for mouse and arrow operable menusJanne Lahdenpera2010-03-291-1/+339
| | | | | | | | | | | Provides implementation that allows multiple types of CRTregions for tiles. Provides implementation of a menu that allows total freedom of entry placement. Uses these assets provided to change the Species and Background menus to allow mouse and arrow-keys selection. Also provides support for adding descriptions to menu entries. Signed-off-by: Janne Lahdenpera <felirx@gmail.com> Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Replace calls to redefined getch by getchm.Robert Vollmert2010-03-281-1/+1
| | | | | Remaining calls to getch() outside lib*.cc should probably also be getchm() instead.
* Change tab images on mouseover, not just click.Enne Walker2010-03-231-25/+30
|
* Fix unchecked sprintf(..., "%s") and sscanf(..., "%s").Adam Borowski2010-03-201-4/+4
| | | | | Worst places seem to be running Crawl in a directory with a long name, and browsing corrupted dolls.
* Add tooltips for opening/closing adjacent doors.Johanna Ploog2010-03-171-0/+4
| | | | Also add Tiles' doll editor command in the manual.
* Replace many uses of you_tran_can_wear.Robert Vollmert2010-03-131-1/+1
|
* Get rid of $ to EOL munging.Robert Vollmert2010-03-111-2/+2
| | | | Hope I didn't miss any.
* Remove EOL.Robert Vollmert2010-03-111-1/+1
| | | | | | | | | | | We were only setting it to "\r\n" on DOS, but according to commens in #1045, DOS will translate "\n" to "\r\n" automatically for text output. Also, the DOS EOL handling was likely broken anyway looking at how a lot of the linebreaking code only considered "\n". Fixes issue #1045.
* For consistency, also suppress out of sight mouseover wall descriptions.Johanna Ploog2010-03-051-1/+4
|
* make 'game type' an enum rather than a bool, and serialize itJesse Luehrs2010-03-021-1/+1
|
* Make CRTRegion update crawl_view.termsz on resize.Robert Vollmert2010-02-261-0/+7
| | | | Fixes issue #623.
* Replace dynamic monster casts by actor::as_monster.Robert Vollmert2010-02-261-1/+1
|
* Don't show descriptions in the message area if pointing at floor/walls.Johanna Ploog2010-02-261-1/+1
| | | | | | | Suppress the feature descriptions in the message window for boring features like floor and walls. Should make moving around with the mouse less likely to cover up the message area with some meaningless description you didn't even want to see.
* Fix out of sight mouseover giving away undetected traps.Johanna Ploog2010-02-261-1/+1
| | | | | | | | There was a special check to avoid printing descriptions for out of sight floor tiles. However, said check did not take effect for undetected traps, which would get the normal floor descriptions. Fixed now.
* Change the message upon entering a labyrinth.Johanna Ploog2010-02-241-2/+0
| | | | | | | | | | | | | | Two messages, actually, both only slightly shorter than 80 columns: 1. As you enter the labyrinth, previously moving walls settle noisily into place. 2. You hear the metallic echo of a distant snort before it fades into the rock. Message 1 gives an indication that the walls might not be static. Message 2 ties into the labyrinth timer's message (and is, in fact, similar enough to also be coloured yellow, which I think is a nice perk), and hints at the rock > metal rule.
* New Necromutation tile, based on Porkchop's idea.Johanna Ploog2010-02-241-0/+18
| | | | | Now coloured red for easier differentiation from monster lichs, and uses wielded player weapon.
* Fix the Tiles tooltip giving away the presence of invisible monsters.Johanna Ploog2010-02-241-1/+1
|
* Make tiles use viewwindow for 'X' map display.Enne Walker2010-02-231-0/+1
| | | | | | This eliminates a duplicate function that had gotten out of sync with the original viewwindow. (In particular, this fixes a bug where using X in the Abyss would show out of sight tiles and the presence of items.)
* Add inky wave overlays for the kraken's ink clouds.Johanna Ploog2010-02-231-60/+144
| | | | | | | I experimented a bit with ink blots and cloud shapes and eventually decided simply overlaying the water with a inky sheen would work best. This did require adapting the wave combination to ink, but it works rather well.
* Implement #624: Allow browsing of identified "risky" spellbooks.Johanna Ploog2010-02-231-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | * If you encounter the book of Annihilations/Demonology or Necronomicon in a bookshop, you can now browse its contents. * If you buy such a book, it is already identified, so you can continue to read the spell descriptions at your leisure. * You can still not memorise these spells if you don't fulfil the requirements. They will also be coloured useless while that is the case. * If you find these books lying around in the dungeon, reading them will _not_ identify them (or give away their spell list) unless you meet the requirements. [1] I also added the old "beyond your current level of understanding" line to both book and corresponding spell descriptions. Tested for the Necronomicon seen in a shop, Demonology seen in a shop and bought, and Annihilations found unidentified (in wizard mode), using (r)ead, (i)nventory, (M)emorise, ?/, and the Tiles mouseclick interface (again, read/describe/Memorise commands and Memorise tab). [1] I don't know if it's worth keeping that restriction. If we do, we should add an autoinscription because the simple act of (r)eading it will give away that it's one of those three special books, though not which one.
* Tiles: Add Ctrl + Shift as synonym to Alt in mouseclick combinations.Johanna Ploog2010-02-221-9/+24
| | | | This enables us to use mouseclicks for evokables also on Unix systems.
* Clean up usage of tile page filenames.Enne Walker2010-02-211-4/+13
|
* Really fix fire/spell targeting via mouseclick on monster.Johanna Ploog2010-02-211-2/+2
|