2015-05-26 22:59:25 +02:00
|
|
|
/*****************************************************************************
|
2020-07-21 15:04:34 +02:00
|
|
|
* Copyright (c) 2014-2020 OpenRCT2 developers
|
2016-05-04 19:24:41 +02:00
|
|
|
*
|
2018-06-15 14:07:34 +02:00
|
|
|
* For a complete list of all authors, please refer to contributors.md
|
|
|
|
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
|
2016-05-04 19:24:41 +02:00
|
|
|
*
|
2018-06-15 14:07:34 +02:00
|
|
|
* OpenRCT2 is licensed under the GNU General Public License version 3.
|
2016-05-04 19:24:41 +02:00
|
|
|
*****************************************************************************/
|
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
|
|
|
|
2018-06-22 23:20:47 +02: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,
|
|
|
|
UITHEME_FLAG_USE_FULL_BOTTOM_TOOLBAR = 1 << 4,
|
2016-01-29 20:39:31 +01:00
|
|
|
};
|
|
|
|
|
2020-11-03 11:59:00 +01:00
|
|
|
void ColourSchemeUpdate(rct_window* window);
|
|
|
|
void ColourSchemeUpdateAll();
|
|
|
|
void ColourSchemeUpdateByClass(rct_window* window, rct_windowclass classification);
|
2016-01-29 20:39:31 +01:00
|
|
|
|
2020-11-03 11:59:00 +01:00
|
|
|
void ThemeManagerInitialise();
|
|
|
|
void ThemeManagerLoadAvailableThemes();
|
|
|
|
size_t ThemeManagerGetNumAvailableThemes();
|
|
|
|
const utf8* ThemeManagerGetAvailableThemePath(size_t index);
|
|
|
|
const utf8* ThemeManagerGetAvailableThemeConfigName(size_t index);
|
|
|
|
const utf8* ThemeManagerGetAvailableThemeName(size_t index);
|
|
|
|
size_t ThemeManagerGetAvailableThemeIndex();
|
|
|
|
void ThemeManagerSetActiveAvailableTheme(size_t index);
|
|
|
|
size_t ThemeGetIndexForName(const utf8* name);
|
2016-01-29 20:39:31 +01:00
|
|
|
|
2020-11-03 11:59:00 +01:00
|
|
|
colour_t ThemeGetColour(rct_windowclass wc, uint8_t index);
|
|
|
|
void ThemeSetColour(rct_windowclass wc, uint8_t index, colour_t colour);
|
|
|
|
uint8_t ThemeGetFlags();
|
|
|
|
void ThemeSetFlags(uint8_t flags);
|
|
|
|
void ThemeSave();
|
|
|
|
void ThemeRename(const utf8* name);
|
|
|
|
void ThemeDuplicate(const utf8* name);
|
|
|
|
void ThemeDelete();
|
2016-01-30 00:18:28 +01:00
|
|
|
|
2020-11-03 11:59:00 +01:00
|
|
|
uint8_t ThemeDescGetNumColours(rct_windowclass wc);
|
2022-07-31 14:22:58 +02:00
|
|
|
StringId ThemeDescGetName(rct_windowclass wc);
|