diff --git a/src/client/luafunctions.cpp b/src/client/luafunctions.cpp index 5f78f4d869..221fec3634 100644 --- a/src/client/luafunctions.cpp +++ b/src/client/luafunctions.cpp @@ -363,6 +363,10 @@ void Client::registerLuaFunctions() g_lua.registerSingletonClass("g_gameConfig"); g_lua.bindSingletonFunction("g_gameConfig", "loadFonts", &GameConfig::loadFonts, &g_gameConfig); + g_lua.registerSingletonClass("g_client"); + g_lua.bindSingletonFunction("g_client", "setEffectAlpha", &Client::setEffectAlpha, &g_client); + g_lua.bindSingletonFunction("g_client", "setMissileAlpha", &Client::setMissileAlpha, &g_client); + g_lua.registerSingletonClass("g_attachedEffects"); g_lua.bindSingletonFunction("g_attachedEffects", "getById", &AttachedEffectManager::getById, &g_attachedEffects); g_lua.bindSingletonFunction("g_attachedEffects", "registerByThing", &AttachedEffectManager::registerByThing, &g_attachedEffects); diff --git a/src/framework/luafunctions.cpp b/src/framework/luafunctions.cpp index 85f7bcda26..02acbee3d3 100644 --- a/src/framework/luafunctions.cpp +++ b/src/framework/luafunctions.cpp @@ -31,7 +31,6 @@ #include #include #include -#include #ifdef FRAMEWORK_GRAPHICS #include "framework/graphics/particleeffect.h" @@ -324,11 +323,6 @@ void Application::registerLuaFunctions() g_lua.bindSingletonFunction("g_app", "setAnimatedTextScale", &GraphicalApplication::setAnimatedTextScale, &g_app); g_lua.bindSingletonFunction("g_app", "setStaticTextScale", &GraphicalApplication::setStaticTextScale, &g_app); - // Client - g_lua.registerSingletonClass("g_client"); - g_lua.bindSingletonFunction("g_client", "setEffectAlpha", &Client::setEffectAlpha, &g_client); - g_lua.bindSingletonFunction("g_client", "setMissileAlpha", &Client::setMissileAlpha, &g_client); - // PlatformWindow g_lua.registerSingletonClass("g_window"); g_lua.bindSingletonFunction("g_window", "move", &PlatformWindow::move, &g_window);