| Zloy_Gelud 
 
  
 Silver Member
 | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору leonardosv
 
 Может так подойдет? В указанные промежутки времени (2,5,30,40,50,60) будет плавно показываться изображение, затем плавное скрытие.
 
 Глобальные функции:
 
 Код:
 | tTimeLine = {2,5,30,40,50,60};    -- таймлайн в секундах 
 -- nShow равен 1 - плавное появление, 0 - плавное исчезновение
 function _show_img(sImg, nShow)
 if nShow == 1 then nInd = 2; nOpt = 100; else nInd = -2; nOpt = 0; end
 do
 repeat
 Image.SetOpacity(sImg, Image.GetOpacity(sImg) + nInd);
 Application.Sleep(5);
 until Image.GetOpacity(sImg) == nOpt;
 end
 end
 | 
 On Timer:
 
 Код:
 | if e_ID == 10 then local nPos = Video.GetCurrentPos("Video1");
 if (type(tTimeLine) == 'table') and (#tTimeLine > 0) then
 if Image.GetOpacity("Image1") == 100 then
 _show_img("Image1", 0);
 end
 for i = 1, #tTimeLine do
 if (tTimeLine[i] == Math.Round(nPos, 0)) and Image.GetOpacity("Image1") == 0 then
 _show_img("Image1", 1);
 break;
 end
 end
 end
 if Math.Floor(Video.GetLength("Video1")) == nPos then Page.StopTimer(10); end
 end
 | 
 On Show:
 
 Код:
 | Page.StartTimer(1000, 10); | 
 |