mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 21:13:05 +01:00
Progress on window colour schemes
This commit is contained in:
31
src/interface/colour_schemes.c
Normal file
31
src/interface/colour_schemes.c
Normal file
@@ -0,0 +1,31 @@
|
||||
/*****************************************************************************
|
||||
* Copyright (c) 2014 Ted John, Peter Hill
|
||||
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
|
||||
*
|
||||
* This file is part of OpenRCT2.
|
||||
*
|
||||
* OpenRCT2 is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "window.h"
|
||||
#include "colour_schemes.h"
|
||||
|
||||
|
||||
window_colour_scheme gColorSchemes[] = {
|
||||
{ WC_TOP_TOOLBAR, { 7, 12, 24, 1, 0, 0 }, 4 },
|
||||
{ WC_BOTTOM_TOOLBAR, { 140, 140, 0, 0, 0, 0 }, 3 },
|
||||
|
||||
|
||||
};
|
||||
38
src/interface/colour_schemes.h
Normal file
38
src/interface/colour_schemes.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/*****************************************************************************
|
||||
* Copyright (c) 2014 Ted John, Peter Hill, Duncan Frost
|
||||
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
|
||||
*
|
||||
* This file is part of OpenRCT2.
|
||||
*
|
||||
* OpenRCT2 is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef _COLOUR_SCHEMES_H_
|
||||
#define _COLOUR_SCHEMES_H_
|
||||
|
||||
#include "../common.h"
|
||||
#include "window.h"
|
||||
|
||||
typedef struct {
|
||||
rct_windowclass classification;
|
||||
uint8 colours[6];
|
||||
uint8 num_colours;
|
||||
} window_colour_scheme;
|
||||
|
||||
extern window_colour_scheme gColorSchemes[] = {
|
||||
{WC_}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
@@ -780,7 +780,10 @@ static int cc_open(const char **argv, int argc) {
|
||||
window_editor_inventions_list_open();
|
||||
} else if (strcmp(argv[0], "options") == 0) {
|
||||
window_options_open();
|
||||
} else {
|
||||
} else if (strcmp(argv[0], "window_palettes") == 0) {
|
||||
window_window_palettes_open();
|
||||
}
|
||||
else {
|
||||
console_writeline_error("Invalid window.");
|
||||
}
|
||||
}
|
||||
@@ -827,7 +830,8 @@ char* console_variable_table[] = {
|
||||
char* console_window_table[] = {
|
||||
"object_selection",
|
||||
"inventions_list",
|
||||
"options"
|
||||
"options",
|
||||
"window_palettes"
|
||||
};
|
||||
|
||||
console_command console_command_table[] = {
|
||||
|
||||
@@ -404,7 +404,8 @@ enum {
|
||||
WC_LOADSAVE = 115,
|
||||
WC_LOADSAVE_OVERWRITE_PROMPT = 116,
|
||||
WC_TITLE_OPTIONS = 117,
|
||||
WC_LAND_RIGHTS = 118
|
||||
WC_LAND_RIGHTS = 118,
|
||||
WC_COLOUR_SCHEMES = 119,
|
||||
} WINDOW_CLASS;
|
||||
|
||||
enum PROMPT_MODE {
|
||||
@@ -560,6 +561,7 @@ void window_music_credits_open();
|
||||
void window_publisher_credits_open();
|
||||
void window_track_manage_open();
|
||||
void window_viewport_open();
|
||||
void window_window_palettes_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();
|
||||
|
||||
Reference in New Issue
Block a user