|
|
@ -6,6 +6,8 @@
|
|
|
|
#include <components/lua_ui/alignment.hpp>
|
|
|
|
#include <components/lua_ui/alignment.hpp>
|
|
|
|
#include <components/lua_ui/resources.hpp>
|
|
|
|
#include <components/lua_ui/resources.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <components/settings/settings.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
#include "context.hpp"
|
|
|
|
#include "context.hpp"
|
|
|
|
#include "actions.hpp"
|
|
|
|
#include "actions.hpp"
|
|
|
|
#include "luamanagerimp.hpp"
|
|
|
|
#include "luamanagerimp.hpp"
|
|
|
@ -296,6 +298,14 @@ namespace MWLua
|
|
|
|
return luaManager->uiResourceManager()->registerTexture(data);
|
|
|
|
return luaManager->uiResourceManager()->registerTexture(data);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
api["screenSize"] = []()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return osg::Vec2f(
|
|
|
|
|
|
|
|
Settings::Manager::getInt("resolution x", "Video"),
|
|
|
|
|
|
|
|
Settings::Manager::getInt("resolution y", "Video")
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
return LuaUtil::makeReadOnly(api);
|
|
|
|
return LuaUtil::makeReadOnly(api);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|