1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +01:00
Commit Graph

10 Commits

Author SHA1 Message Date
Hielke Morsink
3633d56e3e Refactor and cleanup in-game console to use C++ strings
Instead of storing the console text in one large buffer, it gets stored in a vector of strings. This makes the code easier to understand, as the `std::string`s now handle the buffer lenghts, instead of doing that manually and bloating the code with it, but at the cost of some performance (not noticable though). This fixes an issue where the buffer would be cut off when the total length exeeded the buffer length.
With this commit printed warnings and errors will have a red and yellow colour. It looks like this was intended, but it didn't work before, and makes `gfx_draw_string` and related functions take const strings.
2018-01-23 16:43:33 +01:00
Aaron van Geffen
004e60ccc6 Use virtual columns to align date and time.
This also makes the date column use a fixed width. Useful when resizing.
2018-01-11 20:27:40 +01:00
Michael Steenbeek
755add6c9a Compile localisation folder as C++ 2018-01-06 18:32:25 +01:00
rwjuk
3125956b77 Fix off-by-one error in placement of centred text 2017-10-31 21:04:42 +01:00
Aaron van Geffen
8c8a2317f6 Initial prototype for font families. 2017-10-30 12:06:05 +01:00
Marijn van der Werf
fcfa4ffcc2 Apply requested changes 2017-10-17 22:24:34 +02:00
Ted John
a65192b141 Do not use float 2017-10-14 23:38:51 +02:00
Ted John
a8c9c758f4 Fix a couple of bugs 2017-10-14 23:38:51 +02:00
Ted John
55c420b738 Fix code style 2017-10-14 23:38:51 +02:00
Marijn van der Werf
d596c0139f Combine text paint functions 2017-10-14 23:38:51 +02:00