/indra/newview/skins/default/xui/en/panel_preferences_sound.xml

https://bitbucket.org/lindenlab/viewer-beta/ · XML · 503 lines · 500 code · 0 blank · 3 comment · 0 complexity · 71aca10958f0116e541529cff0c8d840 MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
  2. <panel
  3. border="true"
  4. follows="all"
  5. height="408"
  6. label="Sounds"
  7. layout="topleft"
  8. left="102"
  9. name="Preference Media panel"
  10. top="1"
  11. width="517">
  12. <panel.string
  13. name="middle_mouse">
  14. Middle Mouse
  15. </panel.string>
  16. <slider
  17. control_name="AudioLevelMaster"
  18. follows="left|top"
  19. font.style="BOLD"
  20. height="15"
  21. increment="0.025"
  22. initial_value="0.5"
  23. label="Master volume"
  24. label_width="120"
  25. layout="topleft"
  26. left="0"
  27. name="System Volume"
  28. show_text="false"
  29. slider_label.halign="right"
  30. top="10"
  31. volume="true"
  32. width="300">
  33. <slider.commit_callback
  34. function="Pref.setControlFalse"
  35. parameter="MuteAudio" />
  36. </slider>
  37. <button
  38. control_name="MuteAudio"
  39. follows="top|left"
  40. height="16"
  41. image_selected="AudioMute_Off"
  42. image_unselected="Audio_Off"
  43. is_toggle="true"
  44. layout="topleft"
  45. left_pad="5"
  46. name="mute_audio"
  47. tab_stop="false"
  48. width="16" />
  49. <check_box
  50. control_name="MuteWhenMinimized"
  51. height="15"
  52. initial_value="true"
  53. layout="topleft"
  54. name="mute_when_minimized"
  55. top_delta="3"
  56. left_pad="5"
  57. width="20" />
  58. <!-- *HACK
  59. After storm-1109 will be fixed: instead of using this text_box, word_wrap should be applied for "mute_when_minimized" check_box's label.-->
  60. <text
  61. follows="top|left"
  62. height="15"
  63. layout="topleft"
  64. left_pad="0"
  65. name="mute_chb_label"
  66. top_delta="0"
  67. width="150"
  68. wrap="true">
  69. Mute when minimized
  70. </text>
  71. <slider
  72. control_name="AudioLevelUI"
  73. disabled_control="MuteAudio"
  74. follows="left|top"
  75. height="15"
  76. increment="0.025"
  77. initial_value="0.5"
  78. label="Buttons"
  79. label_width="120"
  80. layout="topleft"
  81. left="0"
  82. name="UI Volume"
  83. show_text="false"
  84. slider_label.halign="right"
  85. top_pad="4"
  86. volume="true"
  87. width="300">
  88. <slider.commit_callback
  89. function="Pref.setControlFalse"
  90. parameter="MuteUI" />
  91. </slider>
  92. <button
  93. control_name="MuteUI"
  94. disabled_control="MuteAudio"
  95. follows="top|left"
  96. height="16"
  97. image_selected="AudioMute_Off"
  98. image_unselected="Audio_Off"
  99. is_toggle="true"
  100. layout="topleft"
  101. left_pad="5"
  102. name="mute_audio"
  103. tab_stop="false"
  104. width="16" />
  105. <slider
  106. control_name="AudioLevelAmbient"
  107. disabled_control="MuteAudio"
  108. follows="left|top"
  109. height="15"
  110. increment="0.025"
  111. initial_value="0.5"
  112. label="Ambient"
  113. label_width="120"
  114. layout="topleft"
  115. left="0"
  116. name="Wind Volume"
  117. show_text="false"
  118. slider_label.halign="right"
  119. top_pad="4"
  120. volume="true"
  121. width="300">
  122. <slider.commit_callback
  123. function="Pref.setControlFalse"
  124. parameter="MuteAmbient" />
  125. </slider>
  126. <button
  127. control_name="MuteAmbient"
  128. disabled_control="MuteAudio"
  129. follows="top|left"
  130. height="16"
  131. image_selected="AudioMute_Off"
  132. image_unselected="Audio_Off"
  133. is_toggle="true"
  134. layout="topleft"
  135. left_pad="5"
  136. name="mute_audio"
  137. tab_stop="false"
  138. width="16" />
  139. <slider
  140. control_name="AudioLevelSFX"
  141. disabled_control="MuteAudio"
  142. follows="left|top"
  143. height="15"
  144. increment="0.025"
  145. initial_value="0.5"
  146. label="Sound Effects"
  147. label_width="120"
  148. slider_label.halign="right"
  149. layout="topleft"
  150. left="0"
  151. name="SFX Volume"
  152. show_text="false"
  153. top_pad="4"
  154. volume="true"
  155. width="300">
  156. <slider.commit_callback
  157. function="Pref.setControlFalse"
  158. parameter="MuteSounds" />
  159. </slider>
  160. <button
  161. control_name="MuteSounds"
  162. disabled_control="MuteAudio"
  163. follows="top|left"
  164. height="16"
  165. image_selected="AudioMute_Off"
  166. image_unselected="Audio_Off"
  167. is_toggle="true"
  168. layout="topleft"
  169. left_pad="5"
  170. name="mute_audio"
  171. tab_stop="false"
  172. width="16">
  173. <button.commit_callback
  174. function="Pref.SetSounds"/>
  175. </button>
  176. <slider
  177. control_name="AudioLevelMusic"
  178. disabled_control="MuteAudio"
  179. follows="left|top"
  180. height="15"
  181. increment="0.025"
  182. initial_value="0.5"
  183. label="Streaming music"
  184. label_width="120"
  185. layout="topleft"
  186. left="0"
  187. name="Music Volume"
  188. slider_label.halign="right"
  189. show_text="false"
  190. top_pad="4"
  191. volume="true"
  192. width="300">
  193. <slider.commit_callback
  194. function="Pref.setControlFalse"
  195. parameter="MuteMusic" />
  196. </slider>
  197. <button
  198. control_name="MuteMusic"
  199. disabled_control="MuteAudio"
  200. follows="top|left"
  201. height="16"
  202. image_selected="AudioMute_Off"
  203. image_unselected="Audio_Off"
  204. is_toggle="true"
  205. layout="topleft"
  206. left_pad="5"
  207. name="mute_audio"
  208. tab_stop="false"
  209. width="16" />
  210. <check_box
  211. control_name="AudioStreamingMusic"
  212. height="16"
  213. label="Enabled"
  214. layout="topleft"
  215. left_pad="5"
  216. name="enable_music"
  217. top_delta="2"
  218. width="350">
  219. <check_box.commit_callback
  220. function="Pref.updateMediaAutoPlayCheckbox"/>
  221. </check_box>
  222. <slider
  223. control_name="AudioLevelMedia"
  224. disabled_control="MuteAudio"
  225. follows="left|top"
  226. height="16"
  227. increment="0.025"
  228. initial_value="0.5"
  229. label="Media"
  230. label_width="120"
  231. layout="topleft"
  232. left="0"
  233. name="Media Volume"
  234. show_text="false"
  235. slider_label.halign="right"
  236. top_pad="4"
  237. volume="true"
  238. width="300">
  239. <slider.commit_callback
  240. function="Pref.setControlFalse"
  241. parameter="MuteMedia" />
  242. </slider>
  243. <button
  244. control_name="MuteMedia"
  245. disabled_control="MuteAudio"
  246. follows="top|left"
  247. height="16"
  248. image_selected="AudioMute_Off"
  249. image_unselected="Audio_Off"
  250. is_toggle="true"
  251. layout="topleft"
  252. left_pad="5"
  253. name="mute_audio"
  254. tab_stop="false"
  255. width="16" />
  256. <check_box
  257. label_text.halign="left"
  258. follows="left|top"
  259. height="16"
  260. control_name ="AudioStreamingMedia"
  261. label="Enabled"
  262. layout="topleft"
  263. top_delta="2"
  264. left_pad="5"
  265. name="enable_media"
  266. width="110">
  267. <check_box.commit_callback
  268. function="Pref.updateMediaAutoPlayCheckbox"/>
  269. </check_box>
  270. <slider
  271. control_name="AudioLevelVoice"
  272. disabled_control="MuteAudio"
  273. follows="left|top"
  274. height="16"
  275. increment="0.025"
  276. initial_value="0.5"
  277. label="Voice Chat"
  278. label_width="120"
  279. layout="topleft"
  280. left="0"
  281. top_pad="4"
  282. name="Voice Volume"
  283. show_text="false"
  284. slider_label.halign="right"
  285. volume="true"
  286. width="300">
  287. <slider.commit_callback
  288. function="Pref.setControlFalse"
  289. parameter="MuteVoice" />
  290. </slider>
  291. <button
  292. control_name="MuteVoice"
  293. disabled_control="MuteAudio"
  294. follows="top|left"
  295. height="16"
  296. image_selected="AudioMute_Off"
  297. image_unselected="Audio_Off"
  298. is_toggle="true"
  299. layout="topleft"
  300. left_pad="5"
  301. name="mute_audio"
  302. tab_stop="false"
  303. width="16" />
  304. <check_box
  305. label_text.halign="left"
  306. follows="left|top"
  307. height="16"
  308. control_name ="EnableVoiceChat"
  309. disabled_control="CmdLineDisableVoice"
  310. label="Enabled"
  311. layout="topleft"
  312. top_delta="2"
  313. left_pad="5"
  314. name="enable_voice_check"
  315. width="110"/>
  316. <!-- -->
  317. <check_box
  318. name="media_auto_play_btn"
  319. control_name="ParcelMediaAutoPlayEnable"
  320. enabled_control="AudioStreamingMedia"
  321. value="true"
  322. follows="left|bottom|right"
  323. height="15"
  324. tool_tip="Check this to let media auto-play if it wants"
  325. label="Allow Media to auto-play"
  326. top_pad="1"
  327. left="25"/>
  328. <check_box
  329. name="media_show_on_others_btn"
  330. control_name="MediaShowOnOthers"
  331. value="true"
  332. follows="left|bottom|right"
  333. height="15"
  334. tool_tip="Uncheck this to hide media attached to other avatars nearby"
  335. label="Play media attached to other avatars"
  336. left="25"
  337. width="230"/>
  338. <check_box
  339. name="gesture_audio_play_btn"
  340. control_name="EnableGestureSounds"
  341. disabled_control="MuteAudio"
  342. value="true"
  343. follows="left|bottom|right"
  344. height="15"
  345. tool_tip="Check this to hear sounds from gestures"
  346. label="Play sounds from gestures"
  347. top_pad="1"
  348. left="25"/>
  349. <text
  350. type="string"
  351. length="1"
  352. follows="left|top"
  353. height="20"
  354. layout="topleft"
  355. left="25"
  356. name="voice_chat_settings"
  357. width="200"
  358. top_pad="7">
  359. Voice Chat Settings
  360. </text>
  361. <text
  362. type="string"
  363. length="1"
  364. follows="left|top"
  365. layout="topleft"
  366. left="46"
  367. top_delta="16"
  368. name="Listen from"
  369. width="112">
  370. Listen from:
  371. </text>
  372. <icon
  373. follows="left|top"
  374. height="18"
  375. image_name="Cam_FreeCam_Off"
  376. layout="topleft"
  377. name="camera_icon"
  378. mouse_opaque="false"
  379. visible="true"
  380. width="18"
  381. left_pad="-4"
  382. top_delta="-5"/>
  383. <icon
  384. follows="left|top"
  385. height="18"
  386. image_name="Move_Walk_Off"
  387. layout="topleft"
  388. left_pad="170"
  389. name="avatar_icon"
  390. mouse_opaque="false"
  391. visible="true"
  392. width="18"
  393. top_delta="0" />
  394. <radio_group
  395. enabled_control="EnableVoiceChat"
  396. control_name="VoiceEarLocation"
  397. draw_border="false"
  398. follows="left|top"
  399. layout="topleft"
  400. left_delta="-168"
  401. width="221"
  402. height="20"
  403. name="ear_location">
  404. <radio_item
  405. height="19"
  406. label="Camera position"
  407. follows="left|top"
  408. layout="topleft"
  409. name="0"
  410. width="200"/>
  411. <radio_item
  412. height="19"
  413. follows="left|top"
  414. label="Avatar position"
  415. layout="topleft"
  416. left_pad="-16"
  417. name="1"
  418. top_delta ="0"
  419. width="200" />
  420. </radio_group>
  421. <check_box
  422. control_name="LipSyncEnabled"
  423. follows="left|top"
  424. height="15"
  425. label="Move avatar lips when speaking"
  426. layout="topleft"
  427. left="44"
  428. name="enable_lip_sync"
  429. top_pad="5"
  430. width="237"/>
  431. <check_box
  432. follows="top|left"
  433. enabled_control="EnableVoiceChat"
  434. control_name="PushToTalkToggle"
  435. height="15"
  436. label="Toggle speak on/off when I press:"
  437. layout="topleft"
  438. left="44"
  439. name="push_to_talk_toggle_check"
  440. width="237"
  441. tool_tip="When in toggle mode, press and release the trigger key ONCE to switch your microphone on or off. When not in toggle mode, the microphone broadcasts your voice only while the trigger is being held down."
  442. top_pad="3"/>
  443. <line_editor
  444. follows="top|left"
  445. control_name="PushToTalkButton"
  446. enabled="false"
  447. enabled_control="EnableVoiceChat"
  448. height="23"
  449. left="80"
  450. max_length_bytes="200"
  451. name="modifier_combo"
  452. label="Push-to-Speak trigger"
  453. top_pad="3"
  454. width="200" />
  455. <button
  456. layout="topleft"
  457. follows="top|left"
  458. enabled_control="EnableVoiceChat"
  459. height="23"
  460. label="Set Key"
  461. left_pad="5"
  462. name="set_voice_hotkey_button"
  463. width="100">
  464. <button.commit_callback
  465. function="Pref.VoiceSetKey" />
  466. </button>
  467. <button
  468. enabled_control="EnableVoiceChat"
  469. follows="top|left"
  470. halign="center"
  471. height="23"
  472. image_overlay="Refresh_Off"
  473. layout="topleft"
  474. tool_tip="Reset to Middle Mouse Button"
  475. mouse_opaque="true"
  476. name="set_voice_middlemouse_button"
  477. left_pad="5"
  478. width="25">
  479. <button.commit_callback
  480. function="Pref.VoiceSetMiddleMouse" />
  481. </button>
  482. <button
  483. control_name="ShowDeviceSettings"
  484. follows="left|top"
  485. height="23"
  486. is_toggle="true"
  487. label="Input/Output devices"
  488. layout="topleft"
  489. left="20"
  490. top_pad="6"
  491. name="device_settings_btn"
  492. width="190">
  493. </button>
  494. <panel
  495. layout="topleft"
  496. filename="panel_sound_devices.xml"
  497. visiblity_control="ShowDeviceSettings"
  498. name="device_settings_panel"
  499. top_pad="0"
  500. width="480"
  501. left="18"
  502. class="panel_voice_device_settings"/>
  503. </panel>