From 7251c4d179719e0a1fa3cd11e11bdec39d681e16 Mon Sep 17 00:00:00 2001 From: brunzelchen Date: Sat, 6 Mar 2010 17:18:57 +0000 Subject: editor: added support for negative videogap git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2179 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Screens/UScreenEditSub.pas | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Game/Code/Screens/UScreenEditSub.pas b/Game/Code/Screens/UScreenEditSub.pas index 69f0f221..f4341022 100644 --- a/Game/Code/Screens/UScreenEditSub.pas +++ b/Game/Code/Screens/UScreenEditSub.pas @@ -223,6 +223,10 @@ begin temp := temp + 100; //1000ms AktSong.VideoGAP := temp/100; + + if AktSong.VideoGAP<0 then + AktSong.Start := (AktSong.VideoGAP*-1); + if PlayVideo then StartVideo; end; @@ -240,6 +244,10 @@ begin temp := temp - 100; //1000ms AktSong.VideoGAP := temp/100; + + if AktSong.VideoGAP<0 then + AktSong.Start := (AktSong.VideoGAP*-1); + if PlayVideo then StartVideo; end; -- cgit v1.2.3