summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tileweb-text.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix non-debug & webtiles compilationNicholas Feinberg2014-08-141-1/+1
|
* Include tileweb-text.cc in MSVC builds.Neil Moore2014-06-051-0/+3
|
* Drop some useless parentheses around comparisons.Adam Borowski2014-01-101-1/+1
|
* Refactor pairs of asserts to ASSERT_RANGE.Adam Borowski2013-11-161-4/+2
| | | | More readable, and failures give more informative messages.
* Refactor ASSERT(a && b) againBrendan Hickey2013-11-151-1/+4
| | | | | | This commit converts ASSERT(a && b) to ASSERT(a); ASSERT(b); Assertions of the form !(a && b) are left intact, since there isn't an obvious readability gain over (!a || !b).
* Webtiles: Improve JSON generation functions; always send proper JSON.Florian Diebold2012-11-141-5/+9
|
* Use std namespace.Raphael Langella2012-08-261-2/+2
| | | | | | | | | | | | | 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.
* Death to std::wstringstream!Adam Borowski2012-08-121-16/+17
| | | | | | | There's no point in accumulating a string of wchar_t and then immediately converting it to utf8 if we can accumulate it in utf8. This solves problems on Windows and Android (neither of whom can run webtiles servers currently) and reduces the code size somewhat.
* Don't use locale-dependent %ls.Adam Borowski2012-07-011-1/+2
| | | | | While webtiles are not supported on Windows, and no sane Unix uses encodings other than UTF-8, we can have local webtiles some day.
* Allow other CRT dialogs to be displayed like a menu in Webtiles.Florian Diebold2011-12-081-10/+13
| | | | | | This mainly means at the moment that the menu is shown as a dialog floating above the normal layer, instead of switching to the separate CRT layer.
* Webtiles: A small bandwidth improvement.Florian Diebold2011-10-291-4/+1
|
* Webtiles JS Modularization, part II.Florian Diebold2011-10-291-2/+3
| | | | | | | This organizes the game-specific javascript into proper modules, and converts all messages from Crawl to JS objects. This means that the game javascript is now loaded asynchronically, which should fix the browser hang when starting a game.
* Clean up tilesdl.h.Florian Diebold2011-07-061-1/+1
| | | | | | tileweb.cc now has its own header file. This replicates the public TilesFramework interface, but the repetition seems better than having one header file littered with #ifdefs.
* Clean up webtiles text area handling.Florian Diebold2011-07-061-21/+0
| | | | The separate subclasses were unnecessary now.
* Abstract sending of messages into its own function(s).Florian Diebold2011-06-261-3/+4
|
* Send differences in text areas per-line.Florian Diebold2011-06-261-21/+60
|
* Fix text areas sending a <br> at the end and thus being one line too large.Florian Diebold2011-06-261-1/+1
|
* Fix the game exiting a menu if the window size changes or a watcher joins.Florian Diebold2011-06-261-2/+5
|
* Adapt view size to browser window size automatically.Florian Diebold2011-06-261-2/+1
| | | | Also fix whitespaces.
* Fix handling of colored space characters.Florian Diebold2011-06-261-13/+18
| | | | This also makes the health and mana bars visible.
* Fix unicode text output (hopefully) and encode special chars as HTML entities.Florian Diebold2011-06-261-2/+21
|
* Only send texts if they were changed, and fix a bug with buggy redraws after ↵Florian Diebold2011-06-261-1/+10
| | | | teleports.
* Yet another text area rewrite.Florian Diebold2011-06-261-0/+135
Now the texts are cached in the crawl process and then sent as html.