summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/format.h
Commit message (Collapse)AuthorAgeFilesLines
* Rename struct glyph to cglyph_t.Adam Borowski2012-10-161-1/+1
| | | | Hard to come up with something less greppable...
* Add spelling fixes.David Lawrence Ramsey2012-10-121-1/+1
|
* Use std namespace.Raphael Langella2012-08-261-22/+19
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Rename translate.cc to lang-fake.cc, to avoid confusion.Adam Borowski2012-04-021-1/+1
| | | | I intend to name actual per-language C++ files lang-en.cc, lang-pl.cc
* New translations: dwarven, jägerkin, lithp, german.Adam Borowski2012-03-301-0/+1
|
* Enable printf warnings for yet more functions & fix problems identifiedSamuel Bronson2011-12-261-1/+1
|
* Merge branch 'master' into unified_combat_controlRobert Burnham2011-04-261-9/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: crawl-ref/source/actor.cc crawl-ref/source/delay.cc crawl-ref/source/directn.cc crawl-ref/source/directn.h crawl-ref/source/fight.cc crawl-ref/source/files.cc crawl-ref/source/mon-act.cc crawl-ref/source/monster.cc crawl-ref/source/mpr.h crawl-ref/source/player.cc crawl-ref/source/shopping.cc
| * Fix and merge away tagged_string_substr().Adam Borowski2011-04-041-1/+0
| | | | | | | | | | It was used on user-supplied string (inscribed items), so non-ASCII can happen in 0.8.
| * formatted_string fixes.Adam Borowski2011-04-041-2/+3
| | | | | | | | Used by, among others, message history, so user-supplied strings can happen.
| * Doxygenization and junk purging that was missed by my script.Adam Borowski2011-04-021-5/+0
| |
| * Make a function static.Adam Borowski2011-04-011-1/+0
| | | | | | | | | | tagged_string_tag_length() is used just once, too -- duplicating code that's done in different ways elsewhere. A candidate for clean-up.
* | Capitalized mprf().Adam Borowski2011-04-151-0/+1
|/ | | | | It's going to be the default for mprf() since 99% uses are capitalized, but it's safer to do this piecemeal then sed it back.
* Massive spacing fixes: "( spaces after parentheses )".Adam Borowski2010-10-151-2/+2
| | | | | | I did review it manually to find places where they made sense (like some tables), but for a massive sed job like this there might be places that I missed.
* An otherwise inappropiate toy for Sprint.Adam Borowski2010-07-081-0/+1
| | | | | | | | * single-use only * causes corona-like glow * makes all messages ALL CAPS * does what it says on the tin to all damage you deal * cause gibs if it brings someone to less than -50hp
* Bring sanity to enums by making them diffable/patchable.Adam Borowski2010-06-081-1/+1
|
* Remove FSOP_CURSOR and formatted_string::cgotoxy.Robert Vollmert2010-03-111-7/+0
| | | | | | | | It's not used anymore, and a lot of code doesn't even deal with it properly. Also fix what seemed to be a bug in FSOP_COLOUR handling in formatted_string::substr.
* Remove obsolete formatted_string::movexy.Robert Vollmert2010-03-111-1/+0
|
* Replace formatted_string::parse_block by display_tagged_block.Robert Vollmert2010-03-111-5/+1
| | | | | | | | The latter invokes parse_string_to_multiple and displays directly. This fixes line wrapping issues with full lines: on an 80 column terminal, an 80 character line could cause the cursor to wrap to the next line, causing extra blank lines due to the manual line feed in formatted_string::parse_block.
* Add formatted_string::empty().Robert Vollmert2010-01-251-0/+1
|
* Add general formatted_string::add_glyph, remove others.Robert Vollmert2009-12-011-2/+1
|
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Enable menu colour for the 'V' item sub-menu.j-p-e-g2009-04-191-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9657 c06c8d41-db1a-0410-9941-cceddc491573
* More graphical menu improvements. Inventory menus now have columns. Long ↵ennewalker2008-10-251-1/+2
| | | | | | entries are now wrapped and then truncated. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7296 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2162827: tag length calculation was incorrect.haranp2008-10-131-0/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7230 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes.dolorous2008-06-021-5/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5437 c06c8d41-db1a-0410-9941-cceddc491573
* For David. Menu's draw_title_suffix can now accept a formatted_stringpauldubois2008-04-071-0/+1
| | | | | | | | | | | | instead of a string. See example in StashSearchMenu::draw_title. If you want everything in cyan, you might want to figure out who sets the StashSearchMenu's title->color and change that, too. Added formatted_string::substr(). Lightly tested, seems to work fine. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4091 c06c8d41-db1a-0410-9941-cceddc491573
* [Bug 1907221] Add "Modified for Crawl Reference" statement and author to aj-p-e-g2008-03-081-0/+7
| | | | | | | | 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
* Cleaned up and applied 1895117: formatted_string and tutorial polish.pauldubois2008-02-291-2/+13
| | | | | | | | | | | | | | - formatted_message_history handles linebreaks within color spans properly, and now makes print_formatted_paragraph redundant. (changed tutorial.cc to take advantage of this) - formatted_string handles <color></color> properly (with nesting) instead of reverting to lightgrey. (changed tutorial.cc to take advantage of this, too) - The part of 1895117 that dealt with dec glyphs was already addressed in a previous patch, in a more robust way, so that got cut. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3481 c06c8d41-db1a-0410-9941-cceddc491573
* Fix collision between gotoxy(int,int,int) and DOS djgpp gotoxy().dshaligram2008-01-251-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3337 c06c8d41-db1a-0410-9941-cceddc491573
* [1801838] Use a menu to show mutation list so long lists don't scroll off ↵dshaligram2008-01-251-2/+3
| | | | | | the end of the terminal. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3331 c06c8d41-db1a-0410-9941-cceddc491573
* Added basic HTML output functionality to formatted_string. Not usedharanp2007-10-151-1/+2
| | | | | | | anywhere yet. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2479 c06c8d41-db1a-0410-9941-cceddc491573
* Coloured power display. This is, for now, a rather extreme hack.haranp2007-07-031-0/+2
| | | | | | | | Note that some spells (e.g. Apportation) have no actual power limits, so they will always be 'red'. Suggestions welcome. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1736 c06c8d41-db1a-0410-9941-cceddc491573
* The tutorial now uses set_more() to display the ability-menu helpharanp2007-06-301-0/+1
| | | | | | | | | | (so Menu doesn't need to be aware of the tutorial.) set_more() support with multi-line strings will only work if there are enough free lines; it doesn't (yet) reduce pagesize. Also, it doesn't handle newlines which aren't EOLs. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1700 c06c8d41-db1a-0410-9941-cceddc491573
* Tutorial tweaks:dshaligram2007-03-201-0/+5
| | | | | | | | * Fixed status display commentary wiping out the status display on curses. * Fixed doubled %% on Unix (a plague on whoever wrote cprintf() in libw32c.cc). * Fixed reference to get_number_of_cols() before curses initialisation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1073 c06c8d41-db1a-0410-9941-cceddc491573
* Moved formatted_string into its own file, separate from the rest of Menu.haranp2007-02-171-0/+88
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@954 c06c8d41-db1a-0410-9941-cceddc491573