hedgewars/uScript.pas
changeset 5073 96d849db41f8
parent 5072 863b9fe83c2f
child 5074 16f9e2d1f3b2
equal deleted inserted replaced
5072:863b9fe83c2f 5073:96d849db41f8
   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);