mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 14:02:59 +01:00
Add paint debug window
This commit is contained in:
@@ -41,7 +41,6 @@
|
||||
#include "console.h"
|
||||
#include "window.h"
|
||||
#include "viewport.h"
|
||||
#include "../paint/map_element/map_element.h"
|
||||
|
||||
#define CONSOLE_BUFFER_SIZE 8192
|
||||
#define CONSOLE_BUFFER_2_SIZE 256
|
||||
@@ -668,15 +667,9 @@ static int cc_get(const utf8 **argv, int argc)
|
||||
else if (strcmp(argv[0], "window_scale") == 0) {
|
||||
console_printf("window_scale %.3f", gConfigGeneral.window_scale);
|
||||
}
|
||||
else if (strcmp(argv[0], "paint_segments") == 0) {
|
||||
console_printf("paint_segments %d", gShowSupportSegmentHeights);
|
||||
}
|
||||
else if (strcmp(argv[0], "window_limit") == 0) {
|
||||
console_printf("window_limit %d", gConfigGeneral.window_limit);
|
||||
}
|
||||
else if (strcmp(argv[0], "paint_bounds") == 0) {
|
||||
console_printf("paint_bounds %d", gPaintBoundingBoxes);
|
||||
}
|
||||
else {
|
||||
console_writeline_warning("Invalid variable.");
|
||||
}
|
||||
@@ -845,20 +838,10 @@ static int cc_set(const utf8 **argv, int argc)
|
||||
platform_trigger_resize();
|
||||
console_execute_silent("get window_scale");
|
||||
}
|
||||
else if (strcmp(argv[0], "paint_segments") == 0 && invalidArguments(&invalidArgs, int_valid[0])) {
|
||||
gShowSupportSegmentHeights = (bool)(int_val[0]);
|
||||
gfx_invalidate_screen();
|
||||
console_execute_silent("get paint_segments");
|
||||
}
|
||||
else if (strcmp(argv[0], "window_limit") == 0 && invalidArguments(&invalidArgs, int_valid[0])) {
|
||||
window_set_window_limit(int_val[0]);
|
||||
console_execute_silent("get window_limit");
|
||||
}
|
||||
else if (strcmp(argv[0], "paint_bounds") == 0 && invalidArguments(&invalidArgs, int_valid[0])) {
|
||||
gPaintBoundingBoxes = (bool)(int_val[0]);
|
||||
gfx_invalidate_screen();
|
||||
console_execute_silent("get paint_bounds");
|
||||
}
|
||||
else if (invalidArgs) {
|
||||
console_writeline_error("Invalid arguments.");
|
||||
}
|
||||
@@ -1046,9 +1029,7 @@ utf8* console_variable_table[] = {
|
||||
"no_test_crashes",
|
||||
"location",
|
||||
"window_scale",
|
||||
"paint_segments",
|
||||
"window_limit",
|
||||
"paint_bounds",
|
||||
};
|
||||
utf8* console_window_table[] = {
|
||||
"object_selection",
|
||||
|
||||
Reference in New Issue
Block a user