Archeia

Delete Voice Settings from Settings Menu

May 6th, 2018
600
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # ===================================================================
  2. #
  3. #   Remove Voice Settings by Archeia
  4. #   What this script does is remove all traces of "Voices" from the
  5. #   Menu Setting's Audio and Message Menus.
  6. #
  7. #   This modifies Layout_SettingsAudio and Layout_SettingsMessage
  8. #  
  9. # ===================================================================
  10.  
  11. # Remove Traces of Voice Settings in Layout_SettingsAudio
  12. # ===================================================================
  13. # Delete voiceVolume text
  14. ui.UiFactory.layouts.settingsAudio.controls[3].params.template.controls[1].controls.splice(2, 1)
  15. # ui.Text and StackLayout for Voice Settings
  16. ui.UiFactory.layouts.settingsAudio.controls[3].params.template.controls.splice(2 ,2)
  17.  
  18. # Remove Traces of Voice Settings in Layout_SettingsMessage
  19. ui.UiFactory.layouts.settingsMessage.controls[3].params.template.controls[0].controls.splice(3, 1)
  20. ui.UiFactory.layouts.settingsMessage.controls[3].params.template.controls[0].controls.splice(4, 1)
  21.  
  22. # Rearrange options in Menu
  23. ui.UiFactory.layouts.settingsMessage.controls[3].params.template.controls[1].controls[0].controls[1].controls = [
  24.     {
  25.         "type": "ui.StackLayout",
  26.         "sizeToFit": true,
  27.         "controls": [
  28.             {
  29.                 "type": "ui.OptionButton",
  30.                 "params": {
  31.                     "label": { "lcId": "C138CE3C9564C54707492AA264690B5BBB90", "defaultText": "Videos" },
  32.                     "write": $ (v) -> $dataFields.settings.allowVideoSkip = v
  33.                     "read": $ -> $dataFields.settings.allowVideoSkip
  34.                 }
  35.             },
  36.             {
  37.                 "type": "ui.OptionButton",
  38.                 "params": {
  39.                     "label": { "lcId": "469C50C92465724C9F48BD86BB799E781F3C", "defaultText": "Unread" },
  40.                     "write": $ (v) -> $dataFields.settings.allowSkipUnreadMessages = v
  41.                     "read": $ -> $dataFields.settings.allowSkipUnreadMessages
  42.                 }
  43.             }
  44.         ]
  45.     },
  46. ]
  47.  
  48. # Remove Unread from Skip Option second row
  49. ui.UiFactory.layouts.settingsMessage.controls[3].params.template.controls[1].controls[0].controls[2].controls.splice(0,1)
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×