From 65f585ce47b245b2ef380776bba0ff2e2575afa1 Mon Sep 17 00:00:00 2001 From: gwigz Date: Sat, 13 Jun 2026 23:09:17 +0100 Subject: [PATCH] Add Toggle HUDs toolbar command Expose a "Toggle HUDs" button in the toybox that shows/hides HUD attachments, wrapping the existing `View.ShowHUDAttachments` / `View.CheckHUDAttachments` handlers. The 18x18 `toggle_hud.png` icon is adapted from Phosphor Icons toggle glyph. Co-Authored-By: Claude Opus 4.8 (1M context) --- indra/newview/app_settings/commands.xml | 9 +++++++++ indra/newview/llviewermenu.cpp | 12 ++++++++++++ indra/newview/skins/alchemy/textures/textures.xml | 1 + indra/newview/skins/default/textures/textures.xml | 1 + .../default/textures/toolbar_icons/toggle_hud.png | Bin 0 -> 430 bytes indra/newview/skins/default/xui/en/strings.xml | 2 ++ indra/newview/skins/gemini/textures/textures.xml | 1 + 7 files changed, 26 insertions(+) create mode 100644 indra/newview/skins/default/textures/toolbar_icons/toggle_hud.png diff --git a/indra/newview/app_settings/commands.xml b/indra/newview/app_settings/commands.xml index 63b9e13665..2cff9a082a 100644 --- a/indra/newview/app_settings/commands.xml +++ b/indra/newview/app_settings/commands.xml @@ -358,6 +358,15 @@ is_running_function="Agent.IsMicrophoneOn" is_running_parameters="speak" /> + + diff --git a/indra/newview/skins/default/textures/textures.xml b/indra/newview/skins/default/textures/textures.xml index dbaffd6995..da19a06371 100644 --- a/indra/newview/skins/default/textures/textures.xml +++ b/indra/newview/skins/default/textures/textures.xml @@ -176,6 +176,7 @@ with the same filename but different name + diff --git a/indra/newview/skins/default/textures/toolbar_icons/toggle_hud.png b/indra/newview/skins/default/textures/toolbar_icons/toggle_hud.png new file mode 100644 index 0000000000000000000000000000000000000000..9797b8a79ae87834b08a2a664cc5538bbcd2696e GIT binary patch literal 430 zcmV;f0a5;mP)45?Y^oH2GL(%D*|-1$6JvXVa0S#$~g7hCDChv_>o8{#kv_|fa@Y7 zW6b8mcLZVAvn>0V&*%0Lp1aw|hwsO!wcG7S^nKsI)mj%;gh~K`4}KdQ3MjAj{pDw07*qoM6N<$g8bUVW&i*H literal 0 HcmV?d00001 diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml index 1f564827f2..68470af05f 100644 --- a/indra/newview/skins/default/xui/en/strings.xml +++ b/indra/newview/skins/default/xui/en/strings.xml @@ -4259,6 +4259,7 @@ name="Command_360_Capture_Label">360 snapshot Snapshot Snapshot to Disk Speak + Toggle HUDs Camera Voice Settings Web Browser @@ -4303,6 +4304,7 @@ name="Command_360_Capture_Label">360 snapshot Open the snapshot floater Take a picture immediately Speak with people nearby using your microphone + Show or hide HUD attachments Changing camera angle Volume controls for calls and people near you in world Open a web browser inside [APP_NAME] diff --git a/indra/newview/skins/gemini/textures/textures.xml b/indra/newview/skins/gemini/textures/textures.xml index 2857b54284..8156daf83e 100644 --- a/indra/newview/skins/gemini/textures/textures.xml +++ b/indra/newview/skins/gemini/textures/textures.xml @@ -155,6 +155,7 @@ with the same filename but different name +