2018-06-17 15:48:42 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
|
* 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.
|
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
2018-03-24 19:30:10 +00:00
|
|
|
#include "UiExtensions.h"
|
2018-07-31 17:59:48 +02:00
|
|
|
|
2018-03-24 19:30:10 +00:00
|
|
|
#include "ScUi.hpp"
|
|
|
|
|
#include "ScWindow.hpp"
|
|
|
|
|
|
2018-07-31 17:59:48 +02:00
|
|
|
#include <openrct2/scripting/ScriptEngine.h>
|
|
|
|
|
|
2018-03-24 19:30:10 +00:00
|
|
|
using namespace OpenRCT2::Scripting;
|
|
|
|
|
|
|
|
|
|
void UiScriptExtensions::Extend(ScriptEngine& scriptEngine)
|
|
|
|
|
{
|
|
|
|
|
auto ctx = scriptEngine.GetContext();
|
|
|
|
|
|
2018-03-25 18:23:24 +01:00
|
|
|
dukglue_register_global(ctx, std::make_shared<ScUi>(scriptEngine), "ui");
|
2018-03-24 19:30:10 +00:00
|
|
|
|
|
|
|
|
ScUi::Register(ctx);
|
|
|
|
|
ScWindow::Register(ctx);
|
|
|
|
|
}
|