@@ -246,6 +246,7 @@ class TransitionState {
246246 case " instant" :
247247 switchState (targetState , onComplete , args );
248248 case ' transparent fade' :
249+ #if windows
249250 FlxTween .num (1 , 0 , 2 , {ease : FlxEase .sineInOut , onComplete :
250251 function (twn : FlxTween )
251252 {
@@ -255,6 +256,7 @@ class TransitionState {
255256 {
256257 CppAPI .setWindowOppacity (num );
257258 });
259+ #end
258260 case ' transparent close' :
259261 if (FlxG .sound .music != null && FlxG .sound .music .playing )
260262 {
@@ -266,6 +268,7 @@ class TransitionState {
266268 FlxG .sound .play (Paths .music (' gameOverEnd' ));
267269 }
268270 if (ClientPrefs .data .flashing ) FlxG .camera .flash (FlxColor .WHITE , 2 );
271+ #if windows
269272 FlxTween .num (1 , 0 , 2 , {ease : FlxEase .sineInOut , onComplete :
270273 function (twn : FlxTween )
271274 {
@@ -275,6 +278,7 @@ class TransitionState {
275278 {
276279 CppAPI .setWindowOppacity (num );
277280 });
281+ #end
278282 }
279283 // trace("Transition complete!");
280284 }
@@ -323,7 +327,7 @@ class TransitionState {
323327 }
324328 });
325329 case " transparent fade" :
326- CppAPI .setWindowOppacity (1 );
330+ #if windows CppAPI .setWindowOppacity (1 ); #end
327331 trace (" Post-switch transparent fade complete." );
328332 default :
329333 trace (" Unknown post-switch transition type: " + transitionType );
@@ -479,6 +483,7 @@ class TransitionState {
479483 processNextObject ();
480484 case ' transparent fade' :
481485 MusicBeatState .emergencyOpacityFix = true ;
486+ #if windows
482487 FlxTween .num (1 , 0 , 2 , {ease : FlxEase .sineInOut , onComplete :
483488 function (twn : FlxTween )
484489 {
@@ -489,6 +494,7 @@ class TransitionState {
489494 {
490495 CppAPI .setWindowOppacity (num );
491496 });
497+ #end
492498 case ' transparent close' : var psPause = states. PlayState .instance ?. paused ;
493499 if (FlxG .sound .music != null && FlxG .sound .music .playing )
494500 {
@@ -508,6 +514,7 @@ class TransitionState {
508514 }
509515 MusicBeatState .emergencyOpacityFix = true ;
510516 if (ClientPrefs .data .flashing ) FlxG .camera .flash (FlxColor .WHITE , 2 );
517+ #if windows
511518 FlxTween .num (1 , 0 , 2 , {ease : FlxEase .sineInOut , onComplete :
512519 function (twn : FlxTween )
513520 {
@@ -524,6 +531,7 @@ class TransitionState {
524531 {
525532 CppAPI .setWindowOppacity (num );
526533 });
534+ #end
527535 }
528536 }
529537
0 commit comments