// (Triforce) Where Setup sounds: the game's own decide sound when a button, a link or a row of a list is chosen or a choice // changes, its cancel sound when the player goes back, cancels or answers no (Sound.cs has the sounds and where they come // from: the player's own game, never a file of Setup's). Only what the player does sounds: a page the programme turns, a // list it fills, the cursor moving over things do not. And nothing sounds in a run without a player (--snapshot, a script, // a test folder) or while the game runs. // // The setting is "Sounds" at the window's top, beside the minimize button: a click goes on to the next of Off, Low (as it // starts), Medium and High, and plays the decide sound at it. Kept with Setup's other settings (Sounds in HKCU\Software\Triforce). using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Input; using System.Windows.Media; using System.Windows.Threading; namespace TriforceSetup; sealed partial class Shell { Sounds sounds = null!; Button SoundsButton = null!; Caps SoundsLabel = null!; bool byHand; // (inside the player's own click or key on a list: a choice that changes now is theirs) bool gameUp; bool playing; // ((Triforce) Play was chosen: its start sound plays, no click's over it int gameAsked = Environment.TickCount - 60000; /// The buttons that go back, cancel or say no: the cancel sound. Every other button and link: the decide sound static readonly HashSet GoBack = new() { "SavesBack", "ModsBack", "SetupBack", "BackButton", "AskNo", "FetchCancel", "CancelButton", "NotNowButton" }; void InitSounds() { SoundsButton = Part