From b0c604ec5812848691cef4a360243041728a7cae Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Wed, 6 Mar 2024 23:03:19 -0500 Subject: [PATCH] Add personal lighting FUI button --- indra/newview/app_settings/commands.xml | 10 ++++++++++ indra/newview/skins/default/textures/textures.xml | 1 + .../textures/toolbar_icons/personal_lighting.png | Bin 0 -> 278 bytes indra/newview/skins/default/xui/en/strings.xml | 5 +++-- 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 indra/newview/skins/default/textures/toolbar_icons/personal_lighting.png diff --git a/indra/newview/app_settings/commands.xml b/indra/newview/app_settings/commands.xml index a8c71425a28..e880fec8077 100644 --- a/indra/newview/app_settings/commands.xml +++ b/indra/newview/app_settings/commands.xml @@ -201,6 +201,16 @@ is_running_function="Floater.IsOpen" is_running_parameters="people" /> + <command name="personal_lighting" + available_in_toybox="true" + icon="Command_PersonalLighting_Icon" + label_ref="Command_PersonalLighting_Label" + tooltip_ref="Command_PersonalLighting_Tooltip" + execute_function="Floater.ToggleOrBringToFront" + execute_parameters="env_adjust_snapshot" + is_running_function="Floater.IsOpen" + is_running_parameters="env_adjust_snapshot" + /> <command name="picks" available_in_toybox="true" icon="Command_Picks_Icon" diff --git a/indra/newview/skins/default/textures/textures.xml b/indra/newview/skins/default/textures/textures.xml index ce5efb9e69b..9e7af1278fe 100644 --- a/indra/newview/skins/default/textures/textures.xml +++ b/indra/newview/skins/default/textures/textures.xml @@ -158,6 +158,7 @@ with the same filename but different name <texture name="Command_Panic_Icon" file_name="toolbar_icons/panic.png" preload="false" /> <texture name="Command_People_Icon" file_name="toolbar_icons/people.png" preload="true" /> <texture name="Command_Performance_Icon" file_name="toolbar_icons/performance.png" preload="true" /> + <texture name="Command_PersonalLighting_Icon" file_name="toolbar_icons/personal_lighting.png" preload="true" /> <texture name="Command_Picks_Icon" file_name="toolbar_icons/picks.png" preload="true" /> <texture name="Command_Places_Icon" file_name="toolbar_icons/places.png" preload="true" /> <texture name="Command_Preferences_Icon" file_name="toolbar_icons/preferences.png" preload="true" /> diff --git a/indra/newview/skins/default/textures/toolbar_icons/personal_lighting.png b/indra/newview/skins/default/textures/toolbar_icons/personal_lighting.png new file mode 100644 index 0000000000000000000000000000000000000000..133f8bb967d900148d46fdcfbc658eb2c66f1d59 GIT binary patch literal 278 zcmV+x0qOpUP)<h;3K|Lk000e1NJLTq000sI000sQ1ONa4{KrPz0002pNkl<ZD9^o- zJx&5)5Qd*`7UH6<F%;6kVrOFQB{%`G-HL`_MPmsq1y`V;;|>%YfCghsEHoM;1%EN* zdo2i{tlRQTGs!#u14kfqThAr5TMUt9%zNlo`Y-(|Qlv;_71~KLAcs-9kk^K~=pMwl z*u?U3wbq`N=xtOB9nh$DKX?j<C&8cM1pDzH>a$nv`uwgmrvs1yZqCp0k~>_qqWtMg z++1=G)w{=$l6Xn-U#iKPFd0bRODTafnT*9Zxa3W@mtNq>@I1Z#bn}$gWO<_qV0}}X cp@KLzKi2Z3bHJ(^e*gdg07*qoM6N<$f-wwwdjJ3c 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 6e4a70b45ca..785ec01d120 100644 --- a/indra/newview/skins/default/xui/en/strings.xml +++ b/indra/newview/skins/default/xui/en/strings.xml @@ -4224,6 +4224,7 @@ name="Command_360_Capture_Label">360 snapshot</string> <string name="Command_Panic_Label">Panic!</string> <string name="Command_People_Label">People</string> <string name="Command_Performance_Label">Graphics speed</string> + <string name="Command_PersonalLighting_Label">Personal Lighting</string> <string name="Command_Picks_Label">Picks</string> <string name="Command_Places_Label">Places</string> <string name="Command_Preferences_Label">Preferences</string> @@ -4241,8 +4242,7 @@ name="Command_360_Capture_Label">360 snapshot</string> <string name="Command_Voice_Label">Voice Settings</string> <string name="Command_Webbrowser_Label">Web Browser</string> - <string -name="Command_360_Capture_Tooltip">Capture a 360 equirectangular image</string> + <string name="Command_360_Capture_Tooltip">Capture a 360 equirectangular image</string> <string name="Command_AboutLand_Tooltip">Information about the land you're visiting</string> <string name="Command_AnimationOverride_Tooltip">Animation Override</string> <string name="Command_Appearance_Tooltip">Change your avatar</string> @@ -4267,6 +4267,7 @@ name="Command_360_Capture_Tooltip">Capture a 360 equirectangular image</string> <string name="Command_Panic_Tooltip">Press this if you're in trouble</string> <string name="Command_People_Tooltip">Friends, groups, and nearby people</string> <string name="Command_Performance_Tooltip">Improve graphics speed</string> + <string name="Command_PersonalLighting_Tooltip">Modify your personal environment lighting</string> <string name="Command_Picks_Tooltip">Places to show as favorites in your profile</string> <string name="Command_Places_Tooltip">Places you've saved</string> <string name="Command_Preferences_Tooltip">Preferences</string> -- GitLab