2017-06-01 21:55:10 +02:00
|
|
|
#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers
|
2015-05-26 22:59:25 +02:00
|
|
|
/*****************************************************************************
|
2016-05-04 19:24:41 +02:00
|
|
|
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
|
|
|
|
*
|
|
|
|
* OpenRCT2 is the work of many authors, a full list can be found in contributors.md
|
|
|
|
* For more information, visit https://github.com/OpenRCT2/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.
|
|
|
|
*
|
|
|
|
* A full copy of the GNU General Public License can be found in licence.txt
|
|
|
|
*****************************************************************************/
|
|
|
|
#pragma endregion
|
2015-05-26 22:59:25 +02:00
|
|
|
|
2018-06-02 12:31:14 +02:00
|
|
|
#pragma once
|
2015-05-26 22:59:25 +02:00
|
|
|
|
2018-06-02 12:31:14 +02:00
|
|
|
#include <openrct2/common.h>
|
|
|
|
#include <openrct2/interface/Window.h>
|
2016-01-29 20:39:31 +01:00
|
|
|
|
|
|
|
enum {
|
|
|
|
UITHEME_FLAG_PREDEFINED = 1 << 0,
|
|
|
|
UITHEME_FLAG_USE_LIGHTS_RIDE = 1 << 1,
|
|
|
|
UITHEME_FLAG_USE_LIGHTS_PARK = 1 << 2,
|
|
|
|
UITHEME_FLAG_USE_ALTERNATIVE_SCENARIO_SELECT_FONT = 1 << 3,
|
2017-08-16 22:27:20 +02:00
|
|
|
UITHEME_FLAG_USE_FULL_BOTTOM_TOOLBAR = 1 << 4,
|
2016-01-29 20:39:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
void colour_scheme_update(rct_window *window);
|
2017-08-04 13:18:29 +02:00
|
|
|
void colour_scheme_update_all();
|
2016-01-29 20:39:31 +01:00
|
|
|
void colour_scheme_update_by_class(rct_window *window, rct_windowclass classification);
|
|
|
|
|
|
|
|
void theme_manager_initialise();
|
|
|
|
void theme_manager_load_available_themes();
|
|
|
|
size_t theme_manager_get_num_available_themes();
|
|
|
|
const utf8 * theme_manager_get_available_theme_path(size_t index);
|
2017-10-16 10:04:09 +02:00
|
|
|
const utf8 * theme_manager_get_available_theme_config_name(size_t index);
|
2016-01-29 20:39:31 +01:00
|
|
|
const utf8 * theme_manager_get_available_theme_name(size_t index);
|
|
|
|
size_t theme_manager_get_active_available_theme_index();
|
|
|
|
void theme_manager_set_active_available_theme(size_t index);
|
2017-10-16 10:04:09 +02:00
|
|
|
size_t theme_get_index_for_name(const utf8 * name);
|
2016-01-29 20:39:31 +01:00
|
|
|
|
2016-01-30 00:18:28 +01:00
|
|
|
colour_t theme_get_colour(rct_windowclass wc, uint8 index);
|
|
|
|
void theme_set_colour(rct_windowclass wc, uint8 index, colour_t colour);
|
|
|
|
uint8 theme_get_flags();
|
|
|
|
void theme_set_flags(uint8 flags);
|
|
|
|
void theme_save();
|
|
|
|
void theme_rename(const utf8 * name);
|
|
|
|
void theme_duplicate(const utf8 * name);
|
|
|
|
void theme_delete();
|
|
|
|
|
|
|
|
uint8 theme_desc_get_num_colours(rct_windowclass wc);
|
|
|
|
rct_string_id theme_desc_get_name(rct_windowclass wc);
|