3DMMForever icon indicating copy to clipboard operation
3DMMForever copied to clipboard

[feature] disable studio sounds

Open willbr opened this issue 2 years ago • 5 comments

PlayUISound is used to play tool sound effects e.g. while rotating an actor. https://github.com/foone/3DMMForever/blob/79b301091175459dd39ec53bbb8a711248e969c6/src/studio/studio.cpp#L2264-L2267

willbr avatar Aug 12 '23 15:08 willbr

Tooltip sounds are triggered via scripts: https://github.com/foone/3DMMForever/blob/79b301091175459dd39ec53bbb8a711248e969c6/src/shared/sharhelp.cht#L572-L583

https://github.com/foone/3DMMForever/blob/79b301091175459dd39ec53bbb8a711248e969c6/kauai/src/screxeg.cpp#L835-L853

willbr avatar Aug 12 '23 16:08 willbr

ADOPT_WAVE is used to link sounds to mouse click events for toolbar buttons

Clicking the Scene cover https://github.com/foone/3DMMForever/blob/79b301091175459dd39ec53bbb8a711248e969c6/src/studio/studio.cht#L481

Clicking secondary tools https://github.com/foone/3DMMForever/blob/79b301091175459dd39ec53bbb8a711248e969c6/src/studio/sectools.cht#L385

willbr avatar Aug 12 '23 16:08 willbr

Can these be made into a user preference at some point in the future. We are a long way off from the modern version with new renderer, higher resolutions, etc - but there is a settings dialog of a sort, the options could go there... image

mdtauk avatar Aug 12 '23 16:08 mdtauk

Sure.

As an example, Better Speed is saved in the registry.

https://github.com/foone/3DMMForever/blob/79b301091175459dd39ec53bbb8a711248e969c6/src/studio/utest.cpp#L1997-L2016

willbr avatar Aug 12 '23 16:08 willbr

It also saves a small blob of binary data as UserData

This includes a flag kflgMcZeeAudio for disabling McZee tooltips.

https://github.com/foone/3DMMForever/blob/79b301091175459dd39ec53bbb8a711248e969c6/inc/stdiodef.h#L885-L911

https://github.com/foone/3DMMForever/blob/79b301091175459dd39ec53bbb8a711248e969c6/src/shared/sharhelp.cht#L572-L583

willbr avatar Aug 14 '23 07:08 willbr