Merge branch 'rewrite/master' into feature/high-erect
This commit is contained in:
@@ -15,7 +15,6 @@ import flixel.input.mouse.FlxMouseEvent;
|
||||
import flixel.math.FlxMath;
|
||||
import flixel.math.FlxPoint;
|
||||
import flixel.math.FlxRect;
|
||||
import flixel.sound.FlxSound;
|
||||
import flixel.system.debug.log.LogStyle;
|
||||
import flixel.system.FlxAssets.FlxSoundAsset;
|
||||
import flixel.text.FlxText;
|
||||
@@ -1091,7 +1090,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
|
||||
* The chill audio track that plays in the chart editor.
|
||||
* Plays when the main music is NOT being played.
|
||||
*/
|
||||
var welcomeMusic:FlxSound = new FlxSound();
|
||||
var welcomeMusic:FunkinSound = new FunkinSound();
|
||||
|
||||
/**
|
||||
* The audio track for the instrumental.
|
||||
@@ -3888,8 +3887,8 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
|
||||
function handleCursor():Void
|
||||
{
|
||||
// Mouse sounds
|
||||
if (FlxG.mouse.justPressed) FlxG.sound.play(Paths.sound("chartingSounds/ClickDown"));
|
||||
if (FlxG.mouse.justReleased) FlxG.sound.play(Paths.sound("chartingSounds/ClickUp"));
|
||||
if (FlxG.mouse.justPressed) FunkinSound.playOnce(Paths.sound("chartingSounds/ClickDown"));
|
||||
if (FlxG.mouse.justReleased) FunkinSound.playOnce(Paths.sound("chartingSounds/ClickUp"));
|
||||
|
||||
// Note: If a menu is open in HaxeUI, don't handle cursor behavior.
|
||||
var shouldHandleCursor:Bool = !(isHaxeUIFocused || playbarHeadDragging || isHaxeUIDialogOpen)
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package funkin.ui.debug.charting.handlers;
|
||||
|
||||
import flixel.system.FlxAssets.FlxSoundAsset;
|
||||
import flixel.sound.FlxSound;
|
||||
import funkin.audio.VoicesGroup;
|
||||
import funkin.audio.FunkinSound;
|
||||
import funkin.play.character.BaseCharacter.CharacterType;
|
||||
@@ -302,7 +301,8 @@ class ChartEditorAudioHandler
|
||||
trace('WARN: Failed to play sound $path, asset not found.');
|
||||
return;
|
||||
}
|
||||
var snd:FunkinSound = FunkinSound.load(asset);
|
||||
var snd:Null<FunkinSound> = FunkinSound.load(asset);
|
||||
if (snd == null) return;
|
||||
snd.autoDestroy = true;
|
||||
snd.play(true);
|
||||
snd.volume = volume;
|
||||
|
||||
Reference in New Issue
Block a user