diff options
author | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-03-06 17:18:57 +0000 |
---|---|---|
committer | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-03-06 17:18:57 +0000 |
commit | 7251c4d179719e0a1fa3cd11e11bdec39d681e16 (patch) | |
tree | 2a7c5af07ed71cae8a31fa99a08f7c3e0af49621 | |
parent | 4aa6a474ad3f38bdaccfd76b899e2b9142bea95b (diff) | |
download | usdx-7251c4d179719e0a1fa3cd11e11bdec39d681e16.tar.gz usdx-7251c4d179719e0a1fa3cd11e11bdec39d681e16.tar.xz usdx-7251c4d179719e0a1fa3cd11e11bdec39d681e16.zip |
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
-rw-r--r-- | Game/Code/Screens/UScreenEditSub.pas | 8 |
1 files changed, 8 insertions, 0 deletions
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;
|