forked from parvusdomus/ysystem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathysystem.js
More file actions
59 lines (53 loc) · 1.99 KB
/
Copy pathysystem.js
File metadata and controls
59 lines (53 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import FichaYsystem from "./modules/fichas/FichaPJ.js";
import FichaPNJYsystem from "./modules/fichas/FichaPNJ.js";
import FichaObjetoYsystem from "./modules/fichas/FichaObjeto.js";
import FichaPoderYsystem from "./modules/fichas/FichaPoder.js";
import YsystemChat from "./modules/Chat.js";
import { preloadHandlebarsTemplates } from "./modules/preloadTemplates.js";
Hooks.once("init", function(){
console.log("test | INICIALIZANDO HOJAS DE PERSONAJE DE Ysystem");
Actors.unregisterSheet("core", ActorSheet);
Actors.registerSheet("Ysystem", FichaYsystem, {
makeDefault: true,
types: ['Jugador']
});
Actors.registerSheet("Ysystem", FichaPNJYsystem, {
makeDefault: true,
types: ['PNJ']
});
Items.unregisterSheet("core", ItemSheet);
Items.registerSheet("Ysystem", FichaObjetoYsystem,{
makeDefault: true,
types: ['Arma','Armadura','Escudo','Objeto']
});
Items.registerSheet("Ysystem", FichaPoderYsystem,{
makeDefault: true,
types: ['Poder']
});
console.log ("test | HOJAS INICIALIZADAS");
console.log ("test | CARGANDO TEMPLATES");
preloadHandlebarsTemplates();
console.log ("test | TEMPLATES CARGADOS");
game.settings.register("ysystem", "forceFontSize", {
name: "Forzar Tamaño de Fuente",
hint: "Activa esta opción si la ficha se ve rara. Activarla forzará el tamaño de la fuente a 5.",
scope: "world",
type: Boolean,
default: false,
config: true
});
game.settings.register("ysystem", "aspectoFicha", {
name: "Aspecto",
hint: "Este setting cambia los assets usados en la ficha modificando su aspecto.",
scope: "world",
type: String,
default: "Negro",
choices: {
"Negro": "Por defecto. ficha moderna de color negro.",
"Rojo": "Ficha moderna de color rojo",
"Medieval": "Ficha con aspecto medieval"
},
config: true
});
});
Hooks.on('renderChatLog', (app, html, data) => YsystemChat.chatListeners(html))