1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 15:23:01 +01:00

Create IWindowManager to open window from libopenrct2

This commit is contained in:
Ted John
2017-06-11 15:16:47 +01:00
parent f62a6713ff
commit cbd53f920c
14 changed files with 221 additions and 41 deletions

View File

@@ -37,6 +37,7 @@
#include "scenario/ScenarioRepository.h"
#include "title/TitleScreen.h"
#include "title/TitleSequenceManager.h"
#include "ui/WindowManager.h"
#include "Version.h"
extern "C"
@@ -652,6 +653,12 @@ extern "C"
GetContext()->GetUiContext()->SetCursorTrap(value);
}
rct_window * context_open_window(rct_windowclass wc)
{
auto windowManager = GetContext()->GetUiContext()->GetWindowManager();
return windowManager->OpenWindow(wc);
}
bool platform_open_common_file_dialog(utf8 * outFilename, file_dialog_desc * desc, size_t outSize)
{
try