Skip to content

Commit

Permalink
tests incoming
Browse files Browse the repository at this point in the history
  • Loading branch information
PurSnake committed Jun 21, 2024
1 parent ba385a5 commit 31d8410
Show file tree
Hide file tree
Showing 16 changed files with 550 additions and 526 deletions.
6 changes: 5 additions & 1 deletion Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,11 @@ xsi:schemaLocation="http://lime.openfl.org/project/1.0.4 http://lime.openfl.org/
<!-- Turns on additional debug logging. -->
<haxedef name="POLYMOD_DEBUG" value="true" if="debug" />
<!-- The file extension to use for script files. -->
<haxedef name="POLYMOD_SCRIPT_EXT" value=".hscript" />
<haxedef name="POLYMOD_SCRIPT_EXT" value=".hxs" />

<!-- The file extension to use for scripted classes. -->
<haxedef name="POLYMOD_SCRIPT_CLASS_EXT" value=".hx" />

<!-- Which asset library to use for scripts. -->
<haxedef name="POLYMOD_SCRIPT_LIBRARY" value="scripts" />
<!-- The base path from which scripts should be accessed. -->
Expand Down
1 change: 1 addition & 0 deletions source/flixel/system/ui/FlxSoundTray.hx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class FlxSoundTray extends Sprite
screenCenter();

final splashSprite:Bitmap = new Bitmap(Assets.getBitmapData(Paths.file("images/soundtray/volume-back.png")));
splashSprite.smoothing = true;
_width = splashSprite.width;

final disBg:Bitmap = new Bitmap(new BitmapData(200, 68, false, FlxColor.GRAY));
Expand Down
6 changes: 3 additions & 3 deletions source/funkin/audio/FunkinSound.hx
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,12 @@ class FunkinSound extends FlxSound implements ICloneable<FunkinSound>
// already paused before we lost focus.
if (_lostFocus && !_alreadyPaused)
{
trace('Resuming audio (${this._label}) on focus!');
//trace('Resuming audio (${this._label}) on focus!');
resume();
}
else
{
trace('Not resuming audio (${this._label}) on focus!');
//trace('Not resuming audio (${this._label}) on focus!');
}
_lostFocus = false;
}
Expand All @@ -242,7 +242,7 @@ class FunkinSound extends FlxSound implements ICloneable<FunkinSound>
*/
override function onFocusLost():Void
{
trace('Focus lost, pausing audio!');
//trace('Focus lost, pausing audio!');
_lostFocus = true;
_alreadyPaused = _paused;
pause();
Expand Down
Loading

0 comments on commit 31d8410

Please sign in to comment.