Gymnasiast
5cc21fd21b
Replace NULL with nullptr in C++ files
2018-01-29 21:33:21 +00:00
Gymnasiast
e8b2a3df0d
Slight research refactor
2018-01-29 12:52:12 +01:00
Richard Jenkins
f1df94b6d1
Standardise caret with TextInput window
2018-01-25 10:56:35 +01:00
Hielke Morsink
c965f854d8
Add maximum number of lines in console window
...
Changed the container type from a vector to a deque, as that supports FIFO with random access.
2018-01-23 16:43:33 +01:00
Hielke Morsink
7c0bcc2c34
Handle codepoints for text colour in a nicer way
...
This replaces a couple more buffers with std::strings and makes {WINDOW_COLOUR_2} the default colour when adding a new line. Codepoints for any other colour will be added, and overwrite the codepoint that gets calculated in `console_draw` (which is only there for when the user has text set to black).
2018-01-23 16:43:33 +01:00
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
ZehMatt
1f5140ae94
Fix benchgfx attemping to render unloaded parks.
2018-01-21 21:46:11 +00:00
Richard Jenkins
d9725702ca
Make console text colour themeable
2018-01-18 23:18:23 +01:00
Richard Jenkins
78a5406468
Visual improvements to the in-game console
2018-01-18 23:18:23 +01:00
Marijn van der Werf
d09134e64a
Decrease Window dependencies in Vehicle.cpp
2018-01-18 22:57:55 +01:00
Marijn van der Werf
baf56db937
Use rct_window internals in Theme
2018-01-18 22:57:55 +01:00
Marijn van der Werf
430bf482f2
Add viewport getter
2018-01-18 22:57:55 +01:00
Marijn van der Werf
aa0933d08a
Convert rct_window to opaque pointer
2018-01-18 22:57:55 +01:00
Michał Janiszewski
3ba0cc3dae
Add missed constexprs
2018-01-14 16:13:37 +01:00
Ted John
888f60c583
Use new platform functions in theme.cpp
...
Also uses std::string instead of C strings in most places.
2018-01-14 01:17:04 +00:00
Ted John
ca7f9dec8e
Move function out of C extern
2018-01-14 01:06:47 +00:00
Ted John
68202db51c
Make ClimateWeatherData and ClimateWeatherGloomColours internal to Climate.cpp
2018-01-14 01:06:47 +00:00
Ted John
83cdd56825
Unify current and next climate state into common struct
2018-01-14 01:06:47 +00:00
ZehMatt
84f2917f59
Use const and constexpr whenever possible.
2018-01-11 22:29:08 +01:00
Michael Steenbeek
cd5a1ba888
Compile files in world folder as C++
2018-01-11 13:25:09 +01:00
Michał Janiszewski
469e142c7b
Change casing of header files
2018-01-11 09:30:09 +01:00
Michał Janiszewski
5a8cfb16c8
Clang-format guards for static data
...
This guards most of the hardcoded data from clang-format.
[ci skip]
2018-01-11 09:19:56 +01:00
Michał Janiszewski
6a65f791b6
Add const to arguments
2018-01-10 23:58:57 +01:00
Aaron van Geffen
aa885c661e
Always apply vertical alignment to button texts.
...
This has no effect on the appearance as of this commit, yet.
2018-01-08 00:01:45 +01:00
Aaron van Geffen
bbef07f514
Refactor widget_text_unknown into widget_text_centred.
2018-01-08 00:01:45 +01:00
Aaron van Geffen
e61194961f
Rename WWT_25 to WWT_PLACEHOLDER.
...
This is only used in the bottom toolbar as a placeholder,
while still capturing events.
2018-01-08 00:01:45 +01:00
Aaron van Geffen
12e3e171f1
Refactor WWT_24 into WWT_LABEL.
2018-01-08 00:01:45 +01:00
Aaron van Geffen
ecc1cfed2a
Rename WWT_DROPDOWN_BUTTON to WWT_BUTTON.
...
The previous name implied an exclusive association with dropdowns.
While used to display the dropdown triangle button, this is not an
exclusive use.
2018-01-08 00:01:32 +01:00
Aaron van Geffen
7b4c71ff68
Remove unused WWT_4, WWT_5, WWT_11, WWT_18.
2018-01-07 23:54:51 +01:00
Aaron van Geffen
8ad1bc9b86
Rename WWT_14 to WWT_LABEL.
...
This is used for left-aligned label text.
2018-01-07 23:54:51 +01:00
Aaron van Geffen
fad8494ccc
Rename WWT_12 to WWT_LABEL_CENTRED.
...
This is used for centred textual labels.
2018-01-07 23:54:51 +01:00
Aaron van Geffen
9a2d3b226c
Rename WWT_13 to WWT_TABLE_HEADER.
...
This is used for left-aligned header buttons for data tables.
2018-01-07 23:54:51 +01:00
Aaron van Geffen
c023f6a3f7
Moved console command, window invalidation, fix help.
2018-01-07 23:53:47 +01:00
Harrison Gentry
752d9bc89d
Add cheat and console command to set game date.
...
Run "date" command on cmdline to set date.
Ex:
$ date 0004 06 13
sets date to June 13th, year 4
2018-01-07 23:53:47 +01:00
Michał Janiszewski
77c4fa00bc
Use nullptr instead of NULL in C++
2018-01-07 21:43:37 +01:00
Michał Janiszewski
2c8528798f
Use explicit boolean values, compare with nullptr
2018-01-07 21:38:02 +01:00
Ted John
c3eab7ead6
Refactor window.c to C++
2018-01-07 12:39:58 +01:00
Ted John
83d1b6eb8f
Refactor widget.c to C++
2018-01-07 12:39:58 +01:00
Ted John
f18595a1c1
Refactor viewport.c to C++
2018-01-07 12:39:58 +01:00
Ted John
0b84c7bb43
Refactor viewport_interaction.c to C++
2018-01-07 12:39:58 +01:00
Ted John
c974daf467
Refactor console.c to C++
2018-01-07 12:39:58 +01:00
Ted John
630a5065db
Refactor colour.c to C++
2018-01-07 12:39:58 +01:00
Ted John
b781291b58
Refactor chat.c to C++
2018-01-07 12:39:58 +01:00
TELK
d0ec5e95f8
Add park and company value to console 'get' command
...
This allows getting the park and company value in scenario that don't display them such as Bumbly Bazaar.
2018-01-06 22:00:28 +01:00
Michael Steenbeek
755add6c9a
Compile localisation folder as C++
2018-01-06 18:32:25 +01:00
Ted John
3dcbebcf68
Refactor drawing.c to C++
2018-01-05 22:57:57 +01:00
Ted John
144dbf431c
Refactor ttf.c to C++
2018-01-05 22:57:55 +01:00
Ted John
559ec8a404
Refactor font.c to C++
2018-01-05 22:57:54 +01:00
Ted John
02c58a6c5a
Remove custom base Exception class
2018-01-05 18:11:47 +00:00
Michael Steenbeek
91589f57c6
Compile map.c as C++
2018-01-03 20:40:51 +01:00