added movieTime stuff, now it try handle subtitles for smush
This commit is contained in:
parent
1c3e5443cc
commit
397d822587
6 changed files with 24 additions and 2 deletions
7
lua.cpp
7
lua.cpp
|
@ -844,6 +844,13 @@ void set_frameTime(float frameTime) {
|
|||
lua_settable();
|
||||
}
|
||||
|
||||
void set_movieTime(float movieTime) {
|
||||
lua_pushobject(lua_getglobal("system"));
|
||||
lua_pushstring("movieTime");
|
||||
lua_pushnumber(movieTime);
|
||||
lua_settable();
|
||||
}
|
||||
|
||||
void PerSecond() {
|
||||
float rate = luaL_check_number(1);
|
||||
lua_pushnumber(Engine::instance()->perSecond(rate));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue