Create first design of the ring + bg sheet + add icons and update item
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import { L5RItemSheet } from "./item-sheet.js";
|
||||
import { ItemSheetL5r5e } from "./item-sheet.js";
|
||||
|
||||
/**
|
||||
* @extends {ItemSheet}
|
||||
*/
|
||||
export class L5RFeatSheet extends L5RItemSheet {
|
||||
export class FeatSheetL5r5e extends ItemSheetL5r5e {
|
||||
|
||||
/** @override */
|
||||
static get defaultOptions() {
|
||||
return mergeObject(super.defaultOptions, {
|
||||
classes: ["l5r", "sheet", "feat"],
|
||||
template: "systems/l5r/templates/item/feat-sheet.html",
|
||||
template: "systems/l5r5e/templates/item/feat-sheet.html",
|
||||
width: 520,
|
||||
height: 480,
|
||||
tabs: [{navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description"}]
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
* Extend the basic ItemSheet with some very simple modifications
|
||||
* @extends {ItemSheet}
|
||||
*/
|
||||
export class L5RItemSheet extends ItemSheet {
|
||||
export class ItemSheetL5r5e extends ItemSheet {
|
||||
|
||||
/** @override */
|
||||
static get defaultOptions() {
|
||||
return mergeObject(super.defaultOptions, {
|
||||
classes: ["l5r", "sheet", "item"],
|
||||
template: "systems/l5r/templates/item/item-sheet.html",
|
||||
template: "systems/l5r5e/templates/item/item-sheet.html",
|
||||
width: 520,
|
||||
height: 480,
|
||||
tabs: [{navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description"}]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
export class L5RItem extends Item {
|
||||
export class ItemL5r5e extends Item {
|
||||
|
||||
}
|
||||
@@ -1,15 +1,15 @@
|
||||
import { L5RItemSheet } from "./item-sheet.js";
|
||||
import { ItemSheetL5r5e } from "./item-sheet.js";
|
||||
|
||||
/**
|
||||
* @extends {ItemSheet}
|
||||
*/
|
||||
export class L5RWeaponSheet extends L5RItemSheet {
|
||||
export class WeaponSheetL5r5e extends ItemSheetL5r5e {
|
||||
|
||||
/** @override */
|
||||
static get defaultOptions() {
|
||||
return mergeObject(super.defaultOptions, {
|
||||
classes: ["l5r", "sheet", "weapon"],
|
||||
template: "systems/l5r/templates/item/weapon-sheet.html",
|
||||
template: "systems/l5r5e/templates/item/weapon-sheet.html",
|
||||
width: 520,
|
||||
height: 480,
|
||||
tabs: [{navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description"}]
|
||||
|
||||
@@ -3,6 +3,10 @@ import { RegisterSettings } from './settings.js';
|
||||
import { PreloadTemplates } from './preloadTemplates.js';
|
||||
import { ActorL5r5e } from "./actor-l5r5e.js";
|
||||
import { ActorSheetL5r5e } from './sheets/actor-sheet.js';
|
||||
import { ItemL5r5e } from './items/item.js';
|
||||
import { ItemSheetL5r5e } from './items/item-sheet.js';
|
||||
import { WeaponSheetL5r5e } from './items/weapon-sheet.js';
|
||||
import { FeatSheetL5r5e } from './items/feat-sheet.js';
|
||||
|
||||
// Import Dice Types
|
||||
|
||||
@@ -15,6 +19,7 @@ Hooks.once('init', async function() {
|
||||
// Assign custom classes and constants here
|
||||
CONFIG.Actor.entityClass = ActorL5r5e;
|
||||
CONFIG.Actor.sheetClasses = ActorSheetL5r5e;
|
||||
CONFIG.Item.entityClass = ItemL5r5e;
|
||||
|
||||
// Register custom system settings
|
||||
RegisterSettings();
|
||||
@@ -27,6 +32,12 @@ Hooks.once('init', async function() {
|
||||
Actors.unregisterSheet("core", ActorSheet);
|
||||
Actors.registerSheet("l5r5e", ActorSheetL5r5e, { types: ["character"], makeDefault: true });
|
||||
|
||||
// Items sheet
|
||||
Items.unregisterSheet("core", ItemSheet);
|
||||
Items.registerSheet("l5r5e", ItemSheetL5r5e, { types: ["item"], makeDefault: true });
|
||||
Items.registerSheet("l5r5e", WeaponSheetL5r5e, { types: ["weapon"], makeDefault: true });
|
||||
Items.registerSheet("l5r5e", FeatSheetL5r5e, { types: ["feat"], makeDefault: true });
|
||||
|
||||
Handlebars.registerHelper('localizeSkillCategory', function(skillName) {
|
||||
const key = 'L5r5e.Skills.' + skillName + '.Title';
|
||||
return game.i18n.localize(key);
|
||||
|
||||
@@ -2,10 +2,12 @@ export const PreloadTemplates = async function() {
|
||||
const templatePaths = [
|
||||
// Add paths to "systems/l5r5e/templates"
|
||||
'systems/l5r5e/templates/sheets/actor/rings.html',
|
||||
'systems/l5r5e/templates/sheets/actor/narrative.html',
|
||||
'systems/l5r5e/templates/sheets/actor/identity.html',
|
||||
'systems/l5r5e/templates/sheets/actor/category.html',
|
||||
'systems/l5r5e/templates/sheets/actor/skill.html',
|
||||
'systems/l5r5e/templates/sheets/actor/social.html',
|
||||
'systems/l5r5e/templates/sheets/actor/attributes.html',
|
||||
'systems/l5r5e/templates/sheets/actor/conflict.html',
|
||||
'systems/l5r5e/templates/sheets/actor/stance.html',
|
||||
'systems/l5r5e/templates/sheets/actor/feats.html',
|
||||
|
||||
Reference in New Issue
Block a user