ShadowMario / FNF-PsychEngine

Engine originally used on Mind Games mod
Apache License 2.0
1.15k stars 2.21k forks source link

Custom Volume Tray #15701

Open Dragonmon101 opened 1 month ago

Dragonmon101 commented 1 month ago

What is your question?

Am I able to make a custom volume tray using the new base engine volume tray assets in 0.7.3? If anyone could help that'd be great. I'm extremely new to coding and modifying source code.

SantiagoCalebe commented 1 month ago

Yes, basically, just change the assets

Dragonmon101 commented 1 month ago

Where's the assets located at? Also I can't find the code where it plays the beep sound when you change volume or the code for the tray itself.

SantiagoCalebe commented 1 month ago

Where's the assets located at? Also I can't find the code where it plays the beep sound when you change volume or the code for the tray itself.

Assets/Shared

Dragonmon101 commented 1 month ago

Is the volume beep there? I was looking there earlier and couldn't find it anywhere

SantiagoCalebe commented 1 month ago

Assets/Shared/Sounds

Dragonmon101 commented 1 month ago

Assets/Shared/Sounds

That's where I checked. I don't see any sound that's for the volume beep.

TooManyFactoryResets commented 1 month ago

Listen to all of them I guess?

Dragonmon101 commented 4 weeks ago

Listen to all of them I guess?

I've memorized quite a bit of what and where files are in FNF across base, Kade, and Psych engines decently since I sarted looking into that (around Q2 2021 iirc), there's nothing for it. Does Psych Engine pull the sound from some sort of built in Haxe sounds? Right before I started this thread a few days ago, I was doing research for the sound tray and found the code line for it on Haxe's website via Google searching https://api.haxeflixel.com/flixel/system/ui/FlxSoundTray.html.

In the Volume Up & Down sound examples used a directory like "flixel/sounds/beep" and thought maybe that was it since nowhere in this engine's source files was there a beep sound. Would I be able to write my own code for the volume sounds and trays though, or is there existing code in the source I can modify?

SantiagoCalebe commented 4 weeks ago

Oh yeah, Beep sound if default in HaxeFlixel, you can't change

Dragonmon101 commented 4 weeks ago

Oh yeah, Beep sound if default in HaxeFlixel, you can't change

What could I write to have it pull a custom sound then? For volume going up, down, and maxing out btw

SantiagoCalebe commented 4 weeks ago

Nothing

Dragonmon101 commented 3 weeks ago

oh

Arolox666 commented 3 weeks ago

if you're using source code you can use

       FlxG.sound.soundTray.volumeUpSound = "change/this/to/the/actual/path";
       // And as for the down it is the same you only change the volumeUpSound to volumeDownSound