1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 14:54:30 +01:00

Add debug toolbar menu, start tile inspector

This commit is contained in:
rd3k
2015-06-01 02:33:56 +01:00
parent b2e9559d31
commit fb59dab59e
10 changed files with 555 additions and 4 deletions

View File

@@ -403,6 +403,12 @@ static int cc_clear(const char **argv, int argc)
return 0;
}
static int cc_hide(const char **argv, int argc)
{
console_close();
return 0;
}
static int cc_echo(const char **argv, int argc)
{
if (argc > 0)
@@ -835,7 +841,8 @@ char* console_window_table[] = {
};
console_command console_command_table[] = {
{ "clear", cc_clear, "Clears the console." "clear"},
{ "clear", cc_clear, "Clears the console.", "clear"},
{ "hide", cc_hide, "Hides the console.", "hide"},
{ "echo", cc_echo, "Echos the text to the console.", "echo <text>" },
{ "help", cc_help, "Lists commands or info about a command.", "help [command]" },
{ "get", cc_get, "Gets the value of the specified variable.", "get <variable>" },

View File

@@ -412,11 +412,13 @@ enum {
WC_TITLE_OPTIONS = 117,
WC_LAND_RIGHTS = 118,
WC_THEMES = 119,
WC_TILE_INSPECTOR = 120,
// Only used for colour schemes
WC_STAFF = 220,
WC_EDITOR_TRACK_BOTTOM_TOOLBAR = 221,
WC_EDITOR_SCENARIO_BOTTOM_TOOLBAR = 222,
} WINDOW_CLASS;
enum PROMPT_MODE {
@@ -572,6 +574,7 @@ void window_publisher_credits_open();
void window_track_manage_open();
void window_viewport_open();
void window_themes_open();
void window_tile_inspector_open();
void window_text_input_open(rct_window* call_w, int call_widget, rct_string_id title, rct_string_id description, rct_string_id existing_text, uint32 existing_args, int maxLength);
void window_text_input_raw_open(rct_window* call_w, int call_widget, rct_string_id title, rct_string_id description, utf8string existing_text, int maxLength);
rct_window *window_mapgen_open();