#1342: UI Sounds: rows for the remaining viewer sounds #1382

Manually merged
sky_line merged 0 commits from TheSlowly/Slipstream:ui-sounds-1342 into main 2026-11-02 23:48:21 +00:00
Collaborator

Fixes #1342.

Depends on #1299: its #1263 commits show here until it merges; the last two commits are this PR.

  • On / off switch, UUID, Play and Reset for every remaining UI sound (L$, objects, teleport, windows, input, alerts, avatars, radar).
  • The page is one scrolling list with a heading per group.
Fixes #1342. Depends on #1299: its #1263 commits show here until it merges; the last two commits are this PR. - On / off switch, UUID, Play and Reset for every remaining UI sound (L$, objects, teleport, windows, input, alerts, avatars, radar). - The page is one scrolling list with a heading per group.
Adds LLAvatarActions::offerCallingCard (sends OfferCallingCard) and the
Avatar.GiveCard callback, and fills the Give Calling Card slots in the
avatar/attachment other pies. New OfferedCard notification confirms it.
The pie block moves into the free space under the skin info to make room;
the sliders and the two swatches are enabled by Override colors.
Not the agent's region: an avatar across a region border was never offered the card.
No region (the avatar left): the existing CantOfferCallingCard alert.
Ports Firestorm's FSFloaterAvatarAlign: a compass window (full and mini) that turns the
avatar to a cardinal direction, by a fixed step, to the nearest 45 degrees, or towards the
nearest avatar within 20 m. The turn goes to the server, so everyone sees it.

Opened from Avatar > Avatar alignment... and the "Avatar alignment" toolbar button; "Face
nearest avatar" is in the Avatar menu and the toolbar too. "Face towards avatar" is in the
radar and mini-map menus (and Avatar.FaceTowards for the pie menus, #198). The shared
can-face / face rule is FSAvatarAlignBase::canFaceAvatarID / faceAvatarID.
- To Set... (contact sets) and Face towards (#1100) on other avatars and their attachments.
- Script Info on every avatar / attachment / object pie: the script count, memory and time
  in nearby chat through the Slipstream Helper (SLScriptInfo, as Area Search); Firestorm
  asks its LSL bridge.
- Save as > glTF... on your own attachments: the glTF export (#908) instead of Firestorm's
  backup / Collada export. Other people's attachments keep empty slots, since the exporter
  only takes your own objects.
- Add / Remove Favorite on your own attachments (the inventory item they were worn from).
- Mesh LOD in the avatar and attachment Reset submenus, after Anims: forces the highest LOD
  on each worn mesh, as Firestorm's Reset Mesh LOD.
The Alchemy / Ionic / Heretic skins the ticket mentions were removed (947c63c449); the Slipstream skin, the default, fell back to the default skin's white pie text. It now uses its menu text colour, and the two Preferences override colours (OverridePieColors) are defined in the skin, with the same values as before.
FSEnableRightclickMenuInMouselook (Preferences > Move & View, "Context menus in Mouselook", off by default): Alt + right-click in mouselook opens the menu for what is under the crosshair. Firestorm only lets the click through; here the mouse is also freed for the menu the way the mouselook chat window frees it (#225), and a click in the world takes mouselook back. Right-click with another tool active already went through LLViewerWindow::handlePieMenu as in Firestorm.
A Pie menu sounds section (the opening, closing and eight slice-highlight sounds): an on/off per sound, its UUID, Play to preview and Reset to the default. The on/off is Firestorm's PlayModeUISnd<name>; find_ui_sound now honours a PlayMode<name> setting wherever one exists, so only the pie sounds have one for now. Slipstream has no UI Sounds panel, so this is a section of its own rather than Firestorm's whole panel.
Copied as-is: a translated file only changes labels, matched by name, and names our menus don't have are skipped. The Give Card slice takes Firestorm's name (Give Calling Card) so its translation applies; the English label stays. Untranslated: Anims (#297) and glTF... (the format name). Danish and Turkish have no Firestorm translation and stay English.
Compared every pie slice with the flat menu item that runs the same action. Touch, edit, sit / stand on objects and the avatar items already used the same checks (several as enable where the flat menu hides, since a pie keeps its slots). Differences fixed: the land pie's About Land and Sit Here now grey out like the flat menu (Floater.CanShow, which RLVa's floater rules answer, and Land.CanSit); both actions were already refused on click. The flat Show in inventory on your own attachments now has the RLVa showinv check its pie slice had. The Blacklist / Temporary derender slices got Object.EnableDerender.
The pies matched Firestorm's, so people using them lost what Slipstream's flat menus add:
- Objects: More > Tools > (in the slot where the More ring repeated the top ring's Buy):
  Particles, Speaker, Play / Stop local animation, Copy UUID, and Explode / Destroy /
  Force Delete (hidden unless SlipstreamPowerfulWizard). Mute > also has Sounds...
- Avatars and their attachments: Mute > is Manage > as in the flat menu (Mute, particle
  owner, Freeze and Eject moved in from More >, Send Home / Estate Kick / Estate Ban);
  More > has Teleport To and Copy > (names, SLurl, UUIDs) in their place; Display > has
  Cel Shade and the render exceptions. An attachment's Derender > also derenders the avatar.
- Yourself: Fly / Land shares the Sit / Stand slot (it wins it while flying); Reset > has
  Stop Anims; your attachment's Inventory > has Copy UUID.
The translated pies keep their Freeze / Eject labels under the renamed ring ("Manage").
Conflicts with the new upstream pie items and the mini-map overhaul, both sides kept:
- Avatar / attachment Manage >: upstream's Sound Emitter / Sound (Perm) slices join Mute,
  particle owner, Freeze and Eject; the estate actions (Send Home, Estate Kick, Estate Ban)
  move into their own Estate > ring so the ring stays within 8 slices.
- Object Mute >: Sound Emitter, Sound (Perm) and Sounds....
- Avatar menu: Face nearest avatar and Avatar alignment..., then Controller overlay.
- Mini-map: Minimap.FaceTowards beside the new dot / map / mark / zone callbacks.
#1250 moved Freeze, Send Home, Estate Kick and Parcel Eject into the avatar pie's More ring. Here they stay under Manage > (More is full with Teleport To, Give Card, Face towards and Copy >), with #1250's behaviour: hidden when unusable (on_visible), the "Parcel Eject" label and the no-ban tooltips.
The shooter-camera rows left the mouselook block of Move & View; "Context menus in Mouselook" now sits between "Show me in Mouselook" and "Show UI in Mouselook".
#624 is on main: "Context menus in Mouselook" sits between "Show me in Mouselook" and "Hide UI in Mouselook".
Preferences > Sound & Media gets a Notification sounds section (sound UUID, Play, Reset per
row, as the pie menu sounds): instant message, group chat, conference, nearby chat, object
messages, mention of you, incoming call, teleport offer and inventory offer. On / off per type
stays in Chat > Alerts.

New settings: UISndNewIncomingGroupIMSession,
UISndNewIncomingConfIMSession, UISndNearbyChat, UISndObjectIM, UISndIncomingVoiceCall,
UISndTeleportOffer, UISndInventoryOffer. Each defaults to the sound that played before (the
IM sound; the start-IM sound for calls), so nothing changes until a sound is picked. The
offers' notifications name their own sound; a snoozed group chat coming back plays the group
chat sound.

Builds on #1170 (the pie menu sounds' Play button, Pref.PreviewUISound).
Sound & Media gets subtabs, as Chat has: General (everything that was on the page) and
UI Sounds (the notification sounds and the pie menu sounds), each in its own file and
scroll area. Control names, settings and callbacks are unchanged.

Each language's General translations move with their controls into its own
panel_preferences_sound_general.xml, so the layered merge still finds them. The General
subtab uses the label each language already has for the General preferences tab.

Test-Plan: Open Preferences > Sound & Media: it has General and UI Sounds subtabs. General has
  everything the page had before; UI Sounds has the notification and pie menu sounds.
  Change a setting on each subtab, press OK and reopen Preferences: both changes are kept.
  Switch the viewer language (for example to German) and reopen Sound & Media: General's
  labels are translated as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Five more rows in Sound & Media > UI Sounds, each with an on / off box as the pie menu
sounds have. All are off by default (PlayModeUISnd<name> = 0), so nothing changes until one
is ticked; the default sounds are the alert, IM and start-IM sounds.

They play where the viewer posts each notice rather than from notifications.xml: those
notices' handlers never play a template sound, and group notices and invitations persist, so
a handler-side sound would replay for every stored one at login. None plays in Do Not
Disturb or for a sender muted for text chat; a voice-only mute leaves them alone.

Nothing sounds for what arrives at login. Notices, invitations and offers sent while you were
offline (IM_OFFLINE) are silent. Whether you were logged in is taken when a friend's status
arrives, not when their name resolves, so a cold name cache causes no burst of online sounds.
The friend sounds follow the online notice settings (toast or nearby chat).

Test-Plan: In Sound & Media > UI Sounds, tick the five Friends and groups rows. Have an alt come
  online and go offline, then send you a friendship offer, a group invitation and a group
  notice: each plays its sound. Turn on Do Not Disturb and repeat: none play.
  Have the alt send a group notice, a group invitation and a friendship offer while you are
  logged out, then log in: they show, with no sounds.
  Clear the cache and log in with friends online: no burst of online sounds.
  Mute the alt for voice only: their online / offline sound still plays. Block them fully:
  silent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The hint beside the Notification sounds heading ran past the right edge of the scroll area
and was cut off under the scrollbar at "On / off: Chat >". The first line now reads
"Sound UUID (empty or zeros: none)", as the Friends and groups and Pie menu headings do,
and the Chat > Alerts pointer has its own grey line under it. The scroll panel grows by
the extra line.

Test-Plan: Open Preferences > Sound & Media > UI Sounds at the floater's normal size: beside
  "Notification sounds" read "Sound UUID (empty or zeros: none)" and, under it,
  "On / off per type: Chat > Alerts", both whole and clear of the scrollbar. Scroll to the
  bottom: the last pie menu row (slice 7) is fully visible.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Preferences floater is reused, so the Sound & Media subtabs keep the one last shown.
The nearby media panel's gear button only selected the Sound & Media tab, and landed on
UI Sounds if that was where you left it, away from the media settings it is about.
LLFloaterPreference::selectSoundPanel(), next to selectChatPanel(), now selects the tab and
its General subtab. The gear button calls it, and so does the volume pulldown's Advanced
handler (Vol.GoAudioPrefs, which no skin currently puts a button on).

Test-Plan: Open Preferences > Sound & Media, pick the UI Sounds subtab, close Preferences.
  Click the media icon in the top bar, then the gear button: Preferences opens on Sound &
  Media > General. Pick UI Sounds again and leave Preferences open; click the gear again:
  it switches back to Sound & Media > General.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
UI Sounds says an empty or all-zero sound UUID means none, but only the exact null UUID
string was treated that way: an emptied field logged "does not translate to a valid uuid"
each time the event fired, and a short "0" also tripped LLUUID's "Bad UUID string" warning.
find_ui_sound() now takes any value made only of zeros, dashes and spaces (or nothing) as no
sound, before parsing. Anything else that does not parse still warns.

Test-Plan: In Sound & Media > UI Sounds, clear the Instant message field, press Enter and have an
  alt IM you a few times: no sound, and the viewer log has no "does not translate to a
  valid uuid" or "Bad UUID string" lines for UISndNewIncomingIMSession. Repeat with "0" and
  with 00000000-0000-0000-0000-000000000000: the same. Enter "abc": no sound, and the
  warning is logged. Press Reset: the IM sound plays again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The shutter sound had no place in the preferences. The only way to silence it was Advanced >
Quiet Snapshots to Disk, which, despite its name, applies to every snapshot and also stops the
camera animation; the sound itself could only be changed through the debug setting
UISndSnapshot.

UI Sounds gets a Snapshots section with a Shutter row like the friend and group rows: on / off
(new PlayModeUISndSnapshot, on by default, so nothing changes until it is unticked), the sound
UUID, Play and Reset. Unlike the other UI sounds, the region plays this one at the avatar, so
people nearby hear it; the hint and the tooltip say so. Quiet Snapshots stays the switch for
the sound and the animation together.

The shutter and its preload now go through find_ui_sound(), now declared in llui.h, which
honours PlayMode<name> and treats an empty or all-zero UUID as none.

Test-Plan: In Sound & Media > UI Sounds, the Snapshots section has a ticked Shutter row. Take a
  snapshot to disk: the shutter plays and the camera animation runs, as before.
  Untick Shutter and take another: no sound, the animation still runs. Ask someone nearby: they
  hear nothing either.
  Tick it again and paste another sound's UUID: snapshots play that sound; Reset brings back
  the shutter. Play previews it while unticked.
  With Advanced > Quiet Snapshots to Disk on, there is no sound and no animation whatever the
  row says.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Advanced > Quiet Snapshots to Disk turned off both the shutter sound and the camera animation,
for every kind of snapshot despite its name, while UI Sounds now had its own Shutter switch.
Two switches for one shutter, where the menu one silently won, looked as if the shutter would
play when it would not.

The Shutter row in Sound & Media > UI Sounds (PlayModeUISndSnapshot) is now the one switch:
off, a snapshot plays neither the shutter sound nor the camera animation (the avatar raising a
camera); on, both play, and with no sound UUID set only the animation does. The region plays
both at the avatar, so the hint and tooltips say people nearby notice it.

The Advanced menu item (and its translations) and QuietSnapshotsToDisk are gone. A settings
file that had it on turns the Shutter switch off once (SLSettingsMigration::
migrateQuietSnapshots, marked by QuietSnapshotsMigrated), and the viewer preset that set it now
sets the Shutter switch.

Test-Plan: Sound & Media > UI Sounds > Snapshots > Shutter is ticked. Take a snapshot to disk:
  shutter sound, and the avatar raises a camera. Untick Shutter: neither. Tick it and clear the
  sound UUID: only the animation. Advanced has no Quiet Snapshots to Disk item any more.
  With a settings file from a build where Quiet Snapshots to Disk was on, start this build:
  Shutter is unticked, and stays as you set it afterwards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Before #1263 every kind of IM played UISndNewIncomingIMSession. Group, conference, nearby chat
and object IMs now read their own UISnd* settings, so someone who had changed the shared sound
in Debug Settings lost that choice for those kinds (Sky's review note on PR #1299).

SLSettingsMigration::migrateSharedIMSound runs once per install, marked by
SharedIMSoundMigrated. It copies a non-default UISndNewIncomingIMSession into each of the four
per-type sounds that is still at its default. A per-type sound already chosen is kept.

Test-Plan: A settings file from before #1263 with UISndNewIncomingIMSession changed: after the
  first start, UI Sounds shows that sound for Group chat, Conference, Nearby chat and Object IM.
  Change Group chat afterwards and restart: it stays changed. Unit test slsettingsmigration: 4/4
  (the once-only test was checked by removing the marker check, which made it fail).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
UI Sounds is getting rows for the rest of the viewer's sounds. Each needs a switch, so sixteen
PlayModeUISnd* settings are added. They are on by default, so nothing changes until someone
unticks one. Teleport, typing and the ping keep the switches they already have (PlayTeleportSound,
PlayTypingSound, SLPingSound).

Some sounds read their setting directly and so missed both the switch and #1263's empty / zeros
rule:
- Object create and typing now go through find_ui_sound.
- The Play button now uses find_ui_sound(name, even_if_off) instead of parsing the value itself,
  which warned on "0".
- The startup preload fetched a null sound for ObjectRezOut (zeros by default) and preloaded
  ObjectDelete, which nothing plays. It now skips sounds that are off or none, and leaves
  ObjectDelete out.

Test-Plan: Debug settings: PlayModeUISndWindowOpen off: opening a window is silent; back on: it
  plays. UISndObjectCreate set to 0: creating a prim is silent and the log has no UUID warning.
  UISndTyping set to empty: typing in nearby chat is silent, no warning. Relog with
  PlayModeUISndAlert off: no errors; alerts are silent.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With every UI sound on it, the page is 51 rows. They are grouped under ten bold headings in one
scrolling list: Notifications, Friends and groups, Snapshots and Pie menu (as before), then L$,
Objects and teleport, Windows and input, Alerts, Avatars and Radar. Every group stays shown:
collapsible sections, one open at a time, made the page jump in height and position whenever a
heading was clicked.

The existing rows keep their names, labels and tool tips. The new rows work like them: on / off,
sound UUID, Play, Reset.
- Teleport, Typing and Ping are bound to the switches already in General and Combat.
- The radar rows use the radar options menu's switches.
- UISndObjectDelete gets no row, because nothing plays it.

Test-Plan: Preferences > Sound & Media > UI Sounds: ten headings in one list that scrolls to the
  end with no row clipped and no gap after Radar. Windows and input > Window opens unticked:
  opening a window is silent, and Play still plays it. Reset puts back the default UUID. The
  Teleport and Typing boxes follow General's Play teleport / typing sound, and Ping follows
  Combat's Sound when a ping arrives. Radar > Enters chat range follows the radar options menu's
  sound item.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sky_line manually merged commit b3f43c2db8 into main 2026-11-02 23:48:21 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sky_line/Slipstream!1382
No description provided.