357 vg:= VisualGearByUID(lua_tointeger(L, 1)); |
357 vg:= VisualGearByUID(lua_tointeger(L, 1)); |
358 if vg <> nil then |
358 if vg <> nil then |
359 begin |
359 begin |
360 lua_pushinteger(L, round(vg^.X)); |
360 lua_pushinteger(L, round(vg^.X)); |
361 lua_pushinteger(L, round(vg^.Y)); |
361 lua_pushinteger(L, round(vg^.Y)); |
362 lua_pushnumber(L, vg^.dX); |
362 lua_pushnumber(L, vg^.dX * 100000); |
363 lua_pushnumber(L, vg^.dY); |
363 lua_pushnumber(L, vg^.dY * 100000); |
364 lua_pushnumber(L, vg^.Angle); |
364 lua_pushnumber(L, vg^.Angle); |
365 lua_pushinteger(L, vg^.Frame); |
365 lua_pushinteger(L, vg^.Frame); |
366 lua_pushinteger(L, vg^.FrameTicks); |
366 lua_pushinteger(L, vg^.FrameTicks); |
367 lua_pushinteger(L, vg^.State); |
367 lua_pushinteger(L, vg^.State); |
368 lua_pushinteger(L, vg^.Timer); |
368 lua_pushinteger(L, vg^.Timer); |