You've already forked OpenRCT2-Unity
mirror of
https://github.com/izzy2lost/OpenRCT2-Unity.git
synced 2026-03-10 12:38:22 -07:00
34 lines
980 B
C++
34 lines
980 B
C++
/*****************************************************************************
|
|
* Copyright (c) 2014-2018 OpenRCT2 developers
|
|
*
|
|
* 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.
|
|
*****************************************************************************/
|
|
|
|
#include "UiExtensions.h"
|
|
|
|
#include "CustomMenu.h"
|
|
#include "ScUi.hpp"
|
|
#include "ScWidget.hpp"
|
|
#include "ScWindow.hpp"
|
|
|
|
#include <openrct2/scripting/ScriptEngine.h>
|
|
|
|
using namespace OpenRCT2::Scripting;
|
|
|
|
void UiScriptExtensions::Extend(ScriptEngine& scriptEngine)
|
|
{
|
|
auto ctx = scriptEngine.GetContext();
|
|
|
|
dukglue_register_global(ctx, std::make_shared<ScUi>(scriptEngine), "ui");
|
|
|
|
ScUi::Register(ctx);
|
|
ScViewport::Register(ctx);
|
|
ScWidget::Register(ctx);
|
|
ScWindow::Register(ctx);
|
|
|
|
InitialiseCustomMenuItems(scriptEngine);
|
|
}
|