Support for newer hxvlc compiling (#818)
This commit is contained in:
@@ -60,7 +60,9 @@ class VideoCutscene extends Cutscene {
|
||||
|
||||
add(video = new FlxVideoSprite());
|
||||
video.antialiasing = true;
|
||||
#if (hxvlc < version("2.0.0"))
|
||||
video.autoPause = false; // Imma handle it better inside this class, mainly because of the pause menu - Nex
|
||||
#end
|
||||
video.bitmap.onEndReached.add(close);
|
||||
video.bitmap.onFormatSetup.add(function() if (video.bitmap != null && video.bitmap.bitmapData != null) {
|
||||
final width = video.bitmap.bitmapData.width;
|
||||
@@ -205,6 +207,7 @@ class VideoCutscene extends Cutscene {
|
||||
}
|
||||
}
|
||||
|
||||
#if (hxvlc < version("2.0.0"))
|
||||
@:dox(hide) override public function onFocus() {
|
||||
if(FlxG.autoPause && !paused) video.resume();
|
||||
super.onFocus();
|
||||
@@ -214,6 +217,7 @@ class VideoCutscene extends Cutscene {
|
||||
if(FlxG.autoPause && !paused) video.pause();
|
||||
super.onFocusLost();
|
||||
}
|
||||
#end
|
||||
|
||||
public override function pauseCutscene() {
|
||||
video.pause();
|
||||
|
||||
Reference in New Issue
Block a user