2020-02-15 00:36:24 +01:00
|
|
|
/*****************************************************************************
|
2020-04-22 17:06:29 +02:00
|
|
|
* Copyright (c) 2014-2020 OpenRCT2 developers
|
2020-02-15 00:36:24 +01:00
|
|
|
*
|
|
|
|
* For a complete list of all authors, please refer to contributors.md
|
|
|
|
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
|
|
|
|
*
|
|
|
|
* OpenRCT2 is licensed under the GNU General Public License version 3.
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2020-02-23 16:33:01 +01:00
|
|
|
#pragma once
|
2020-02-15 00:36:24 +01:00
|
|
|
|
2020-04-24 16:58:01 +02:00
|
|
|
#ifdef ENABLE_SCRIPTING
|
2020-02-23 16:33:01 +01:00
|
|
|
|
|
|
|
# include "../interface/Window.h"
|
|
|
|
|
|
|
|
# include <optional>
|
|
|
|
# include <string_view>
|
2020-02-15 00:36:24 +01:00
|
|
|
|
|
|
|
namespace OpenRCT2::Ui::Windows
|
|
|
|
{
|
2020-05-06 21:39:57 +02:00
|
|
|
class CustomListView;
|
|
|
|
|
2020-02-27 23:13:49 +01:00
|
|
|
std::string GetWindowTitle(rct_window* w);
|
|
|
|
void UpdateWindowTitle(rct_window* w, const std::string_view& value);
|
2020-02-22 14:29:18 +01:00
|
|
|
void UpdateWidgetText(rct_window* w, rct_widgetindex widget, const std::string_view& string_view);
|
|
|
|
rct_window* FindCustomWindowByClassification(const std::string_view& classification);
|
|
|
|
std::optional<rct_widgetindex> FindWidgetIndexByName(rct_window* w, const std::string_view& name);
|
2020-05-06 21:39:57 +02:00
|
|
|
CustomListView* GetCustomListView(rct_window* w, rct_widgetindex widgetIndex);
|
2020-02-22 14:29:18 +01:00
|
|
|
} // namespace OpenRCT2::Ui::Windows
|
2020-02-23 16:33:01 +01:00
|
|
|
|
|
|
|
#endif
|