henbagle / LE1CommunityPatch

Issue tracker for the Community Patch mod for Mass Effect 1: Legendary Edition
13 stars 0 forks source link

DesignerUI buttons have no sound (Quasar, Therum Laser, Toxin mix minigames) #193

Closed henbagle closed 1 year ago

henbagle commented 1 year ago

File: Startup_INT.pcc

Needs fixed in localized file? Yes

Export ID/TLK Str Ref: DesignerUI GFX Movie

Description of fix: In functions SetupButton, SetupButtonToxicA, and SetupLaserButton in the main DoAction for the DesignerUI, there are calls to getURL("FSCommand:" add com.UnrealMessages.PlaySound, szHoverSound);. com.UnrealMessages is not included in this SWF, so the call to the PlaySound property fails and the sound is not played

To fix, the actual character code for UnrealMessages.PlaySound has been copied from the UnrealMessages file and added to all callsites.

Example of fixed call: getURL("FSCommand:" add String.fromCharCode(8),szHoverSound);.

Additionally, szClickSound has been updated to szHoverSound in some instances to bring the button sounds in DesignerUI in line with other modal buttons found in the interface.

Fix will be included as a merge mod as part of several fixes to DesignerUI