MajorVictory

Soundboard Colors - Whetstone

Sep 17th, 2020 (edited)
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Hooks.once('WhetstoneReady', () => {
  2.  
  3.     // register a default menu with Whetstone for configuration
  4.     game.Whetstone.settings.registerMenu('SoundBoard', 'SoundBoard', {
  5.         name: game.i18n.localize('WHETSTONE.ConfigureTheme'),
  6.         label: game.i18n.localize('WHETSTONE.ConfigureTheme'),
  7.         hint: game.i18n.localize('WHETSTONE.ConfigHint'),
  8.         icon: 'fas fa-paint-brush',
  9.         restricted: false
  10.     });
  11.  
  12.     // register a theme
  13.     game.Whetstone.themes.register('SoundBoard', {
  14.         authors: [
  15.             { name: 'Blitzkraig', contact: 'https://github.com/BlitzKraig/fvtt-SoundBoard', url: 'https://github.com/BlitzKraig/fvtt-SoundBoard' }
  16.         ],
  17.  
  18.         variables: [
  19.             { name: '--SoundBoard-loop-bg-from', value: '#01701c', type: 'color', title: '', hint: '' },
  20.             { name: '--SoundBoard-loop-bg-to', value: '#1b291e', type: 'color', title: '', hint: '' },
  21.             { name: '--SoundBoard-loop-animation-time', value: '1s', type: String, title: '', hint: '' },
  22.             { name: '--SoundBoard-loop-active-icon-color', value: '#42e600', type: 'color', title: '', hint: '' },
  23.             { name: '--SoundBoard-loop-text-color', value: '#ffffff', type: 'color', title: '', hint: '' },
  24.             { name: '--SoundBoard-favorite-color', value: '#feeb20', type: 'color', title: '', hint: '' },
  25.             { name: '--SoundBoard-text-shadow', value: '0 0 2px #000', type: String, title: '', hint: '' },
  26.             { name: '--SoundBoard-more-button-active-color', value: '#969696', type: 'color', title: '', hint: '' },
  27.             { name: '--SoundBoard-more-button-inactive-color', value: 'rgba(0, 0, 0, 0)', type: String, title: '', hint: '' },
  28.             { name: '--SoundBoard-more-button-hover-color', value: '#dddddd', type: 'color', title: '', hint: '' },
  29.             { name: '--SoundBoard-extended-options-bg', value: 'rgba(100, 100, 120, 0.94)', type: String, title: '', hint: '' },
  30.             { name: '--SoundBoard-extended-options-icon-color', value: '#ffffff', type: 'color', title: '', hint: '' },
  31.             { name: '--SoundBoard-btn-text-size', value: '1rem', type: String, title: '', hint: '' },
  32.             { name: '--SoundBoard-volume-text-color', value: '#ffffff', type: 'color', title: '', hint: '' }
  33.         ],
  34.  
  35.         img: 'modules/RetroUI-P5e/images/p5e-thumb.png',
  36.         preview: 'modules/RetroUI-P5e/readme/Overview-9-4-2020.png',
  37.         systems: { 'core': '0.6.6' }
  38.     });
  39. });
Add Comment
Please, Sign In to add comment