MajorVictory

Global Theme Register - Draft 0.2

Sep 12th, 2020 (edited)
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. game.themes.register('RetroUI-P5e', {
  2.  
  3.     // the following keys will be pulled from the module.json
  4.     // name, title, description, version, author/authors, url
  5.  
  6.     // author/authors will be formattd to fit this format
  7.     author: [
  8.         { name: 'MajorVictory', contact: 'https://github.com/MajorVictory', url: 'https://github.com/MajorVictory' }
  9.     ],
  10.  
  11.     // will be merged with 'styles' entry in module.json
  12.     // these sheets are considered to be the 'core' styles for this theme
  13.     // these files are always loaded first when the theme is enabed
  14.     // no system specific themes should be defined here
  15.     'styles': [
  16.         'styles/fonts/loadfonts.css'
  17.     ],
  18.  
  19.     // FormApplication extended class that creates the options dialog
  20.     dialog: RetroUIP5eStylesConfigDialog,
  21.  
  22.     // RetroUICoreConfig extended class that handles theme settings
  23.     config: RetroUIP5eStylesConfig,
  24.  
  25.     // (optional) Thumbnail image
  26.     img: 'modules/RetroUI-P5e/thumb.png',
  27.  
  28.     // (optional) Large preview image
  29.     preview: 'modules/RetroUI-P5e/preview.png',
  30.  
  31.     // (optional) priority, higher priorities load last (numeric > 0)
  32.     priority: 1,
  33.  
  34.     // (optional) Ensure the specified module is loaded before registering theme
  35.     dependencies: {
  36.         'RetroUI-Core': ''
  37.     },
  38.  
  39.     // (optional) known compatible systems/versions
  40.     // if specified, sheets are attempted to be loaded in the following order
  41.     // 1. /modules/<Module_Name>/styles/systems/<SystemID>.css
  42.     // 2. /modules/<Module_Name>/styles/systems/<SystemID>-<Version>.css
  43.     //
  44.     // <SystemID> : will be the current active system id
  45.     // <Version> : will be the current active system's version
  46.     //
  47.     // specified versions are used to indicate to the user if a theme may have issues with their world
  48.     // These are NOT ENFORCED
  49.     systems: {
  50.         'core': '0.6.6',
  51.         'dnd5e': '0.96',
  52.         'worldbuilding': '0.36',
  53.         'pf2e': '1.10.10.1973'
  54.     },
  55.  
  56.     // (optional) known compatibilities
  57.     compatible: {
  58.         'alt5e': '1.3.4',
  59.         'tidy5e-sheet': '0.2.21',
  60.         'furnace':'',
  61.         'dice-calculator': ''
  62.     },
  63.  
  64.     // (optional) known conflicts
  65.     conflicts: {
  66.         'darksheet': '',
  67.         'dnd-ui': ''
  68.     },
  69. });
Add Comment
Please, Sign In to add comment