Skip to content

Commit

Permalink
Allow opening Objective options via console (#13000)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gymnasiast committed Sep 28, 2020
1 parent 4ec1083 commit 3c07a9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions distribution/changelog.txt
@@ -1,5 +1,6 @@
0.3.1+ (in development)
------------------------------------------------------------------------
- Feature: [#13000] objective_options command for console

0.3.1 (2020-09-27)
------------------------------------------------------------------------
Expand Down
5 changes: 5 additions & 0 deletions src/openrct2/interface/InteractiveConsole.cpp
Expand Up @@ -1160,6 +1160,10 @@ static int32_t cc_open(InteractiveConsole& console, const arguments_t& argv)
{
context_open_window(WC_EDITOR_SCENARIO_OPTIONS);
}
else if (argv[0] == "objective_options" && invalidArguments(&invalidTitle, !title))
{
context_open_window(WC_EDTIOR_OBJECTIVE_OPTIONS);
}
else if (argv[0] == "options")
{
context_open_window(WC_OPTIONS);
Expand Down Expand Up @@ -1736,6 +1740,7 @@ static constexpr const utf8* console_window_table[] = {
"object_selection",
"inventions_list",
"scenario_options",
"objective_options",
"options",
"themes",
"title_sequences"
Expand Down

0 comments on commit 3c07a9e

Please sign in to comment.