From 88c1ee9d9b2d5c4336c528994c94f5bb40c47980 Mon Sep 17 00:00:00 2001 From: Frakits Date: Sat, 26 Jul 2025 18:55:13 +0300 Subject: [PATCH 1/2] idk what to do with this bruh.. --- source/funkin/backend/system/Flags.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/funkin/backend/system/Flags.hx b/source/funkin/backend/system/Flags.hx index 87795b27..f60fc621 100644 --- a/source/funkin/backend/system/Flags.hx +++ b/source/funkin/backend/system/Flags.hx @@ -214,6 +214,8 @@ class Flags { public static var DEFAULT_EDITOR_TEXTTYPE_SOUND = "editors/textType"; public static var DEFAULT_EDITOR_UNDO_SOUND = "editors/undo"; public static var DEFAULT_EDITOR_WINDOWAPPEAR_SOUND = "editors/windowAppear"; + public static var DEFAULT_EDITOR_WINDOWCLOSE_SOUND = "editors/windowClose"; + public static var DEFAULT_EDITOR_DROPDOWNAPPEAR_SOUND = "editors/dropdownAppear"; public static var DEFAULT_CHARTER_HITSOUND_SOUND = "editors/charter/hitsound"; public static var DEFAULT_CHARTER_METRONOME_SOUND = "editors/charter/metronome"; public static var DEFAULT_CHARTER_NOTEDELETE_SOUND = "editors/charter/noteDelete"; From 69681b2fa3bca24d17ad80b6513d72fb4f9f8658 Mon Sep 17 00:00:00 2001 From: Frakits Date: Sat, 26 Jul 2025 19:30:18 +0300 Subject: [PATCH 2/2] w --- source/funkin/editors/ui/UIDropDown.hx | 1 + source/funkin/editors/ui/UIState.hx | 1 + source/funkin/editors/ui/UISubstateWindow.hx | 1 + 3 files changed, 3 insertions(+) diff --git a/source/funkin/editors/ui/UIDropDown.hx b/source/funkin/editors/ui/UIDropDown.hx index 0dbd1545..d0cfb323 100644 --- a/source/funkin/editors/ui/UIDropDown.hx +++ b/source/funkin/editors/ui/UIDropDown.hx @@ -87,6 +87,7 @@ class UIDropDown extends UISliceSprite { } public function openContextMenu() { + FlxG.sound.play(Paths.sound(Flags.DEFAULT_EDITOR_DROPDOWNAPPEAR_SOUND)); var screenPos = getScreenPosition(null, __lastDrawCameras[0] == null ? FlxG.camera : __lastDrawCameras[0]); curMenu = UIState.state.openContextMenu([ for(k=>o in items) { diff --git a/source/funkin/editors/ui/UIState.hx b/source/funkin/editors/ui/UIState.hx index 24d905a4..97db4580 100644 --- a/source/funkin/editors/ui/UIState.hx +++ b/source/funkin/editors/ui/UIState.hx @@ -147,6 +147,7 @@ class UIState extends MusicBeatState { } public function closeCurrentContextMenu() { + FlxG.sound.play(Paths.sound(Flags.DEFAULT_EDITOR_WINDOWCLOSE_SOUND)); if(curContextMenu != null) { curContextMenu.close(); curContextMenu = null; diff --git a/source/funkin/editors/ui/UISubstateWindow.hx b/source/funkin/editors/ui/UISubstateWindow.hx index be975868..61c9f5ca 100644 --- a/source/funkin/editors/ui/UISubstateWindow.hx +++ b/source/funkin/editors/ui/UISubstateWindow.hx @@ -86,6 +86,7 @@ class UISubstateWindow extends MusicBeatSubstate { } public override function destroy() { + FlxG.sound.play(Paths.sound(Flags.DEFAULT_EDITOR_WINDOWCLOSE_SOUND)); super.destroy(); for(e in camShaders) e.removeShader(blurShader);