Update style Npc Sheet v2 + update Charac + delete old ui and add svg

Update Npc sheet style for v1.0
Update Character sheet rings / social / attribute
Delete old l5r-ui folder
Add asset svg
This commit is contained in:
Mandar
2020-12-19 04:44:12 +01:00
parent d3bcfba723
commit 10956e6677
106 changed files with 29486 additions and 1990 deletions

View File

@@ -37,7 +37,7 @@ Hooks.once("ready", async function () {
//----logo image
var logo = document.getElementById("logo");
logo.setAttribute("src", CONFIG.l5r5e.paths.assets + "l5r-logo.webp");
logo.setAttribute("src", CONFIG.L5r5e.paths.assets + "l5r-logo.webp");
//--------------ouvrir le menu lien sur click logo
logo.setAttribute("title", "Aide en Ligne");

View File

@@ -1,4 +0,0 @@
export function openDTR() {
ui.notifications.info("votre navigateur va ouvrir le site DriveThruRpg de EDGE STUDIO");
var windowObjectReference = window.open("https://www.drivethrurpg.com/browse/pub/17946/EDGE-Studio?src=browse17946/", "_blank");
};

View File

@@ -1,4 +0,0 @@
export function openEN() {
ui.notifications.info("Votre navigateur va s'ouvrir sur le discord officiel de Foundry");
var windowObjectReference = window.open("https://discordapp.com/invite/DDBZUDf", "_blank");
};

View File

@@ -1,4 +0,0 @@
export function openES() {
ui.notifications.info("votre navigateur va ouvrir le site de EDGE STUDIO");
var windowObjectReference = window.open("https://edge-studio.net/", "_blank");
};

View File

@@ -1,5 +0,0 @@
export function openFR() {
ui.notifications.info("votre navigateur va ouvrir le discord francophone de foundry");
var windowObjectReference = window.open("https://discord.gg/pPSDNJk", "_blank");
};

View File

@@ -1,124 +0,0 @@
Hooks.on('init', () => {
// Register module settings.
game.settings.register('l5r-ui', 'icBgColor', {
name: game.i18n.localize('IC.BG.COLOR'),
hint: game.i18n.localize('HEXA.COLOR'),
default: "#D3E5F5",
type: String,
scope: 'client',
config: true
});
game.settings.register('l5r-ui', 'icTextColor', {
name: game.i18n.localize('IC.TEXT.COLOR'),
hint: game.i18n.localize('HEXA.COLOR'),
default: "#000000",
type: String,
scope: 'client',
config: true
});
game.settings.register('l5r-ui', 'emoteBgColor', {
name: game.i18n.localize('EMOTE.BG.COLOR'),
hint: game.i18n.localize('HEXA.COLOR'),
default: "#D1F5D1",
type: String,
scope: 'client',
config: true
});
game.settings.register('l5r-ui', 'emoteTextColor', {
name: game.i18n.localize('EMOTE.TEXT.COLOR'),
hint: game.i18n.localize('HEXA.COLOR'),
default: "#000000",
type: String,
scope: 'client',
config: true
});
game.settings.register('l5r-ui', 'rollBgColor', {
name: game.i18n.localize('ROLL.BG.COLOR'),
hint: game.i18n.localize('HEXA.COLOR'),
default: "#E6BB81",
type: String,
scope: 'client',
config: true
});
game.settings.register('l5r-ui', 'rollTextColor', {
name: game.i18n.localize('ROLL.TEXT.COLOR'),
hint: game.i18n.localize('HEXA.COLOR'),
default: "#000000",
type: String,
scope: 'client',
config: true
});
game.settings.register('l5r-ui', 'otherBgColor', {
name: game.i18n.localize('OTHER.BG.COLOR'),
hint: game.i18n.localize('HEXA.COLOR'),
default: "#DBD9CD",
type: String,
scope: 'client',
config: true
});
game.settings.register('l5r-ui', 'otherTextColor', {
name: game.i18n.localize('OTHER.TEXT.COLOR'),
hint: game.i18n.localize('HEXA.COLOR'),
default: "#000000",
type: String,
scope: 'client',
config: true
});
game.settings.register('l5r-ui', 'defaultChatPrefix', {
name: game.i18n.localize('DEF.CHAT.PREF'),
hint: game.i18n.localize('SPE.CHAT.PREF'),
default: "",
type: String,
scope: 'client',
config: true
});
});
Hooks.on("renderChatLog", (log, html) => {
// Prepend inline CSS to the chatlog to style the chat messages.
icBgColor = game.settings.get('l5r-ui', 'icBgColor');
icTextColor = game.settings.get('l5r-ui', 'icTextColor');
emoteBgColor = game.settings.get('l5r-ui', 'emoteBgColor');
emoteTextColor = game.settings.get('l5r-ui', 'emoteTextColor');
rollBgColor = game.settings.get('l5r-ui', 'rollBgColor');
rollTextColor = game.settings.get('l5r-ui', 'rollTextColor');
otherBgColor = game.settings.get('l5r-ui', 'otherBgColor');
otherTextColor = game.settings.get('l5r-ui', 'otherTextColor');
$("<style type='text/css'> #chat-log .message.ic { background: " + icBgColor+ "; color: " + icTextColor +
" }\n #chat-log .message.ic .message-header { color: " + icTextColor +
" }\n #chat-log .message.emote { background: " + emoteBgColor +
"; color: " + emoteTextColor +
" }\n #chat-log .message.emote .message-header { color: " + emoteTextColor +
" }\n #chat-log .message.chatColorsRoll { background: " + rollBgColor +
"; color: " + rollTextColor +
" }\n #chat-log .message.chatColorsRoll .message-header { color: " + rollTextColor +
" }\n #chat-log .message { background: " + otherBgColor +
"; color: " + otherTextColor +
" }\n #chat-log .message .message-header { color: " + otherTextColor +
"; } </style>").prependTo(html);
});
Hooks.on("chatMessage", (chatLog, message, chatData) => {
if (game.settings.get('l5r-ui', 'defaultChatPrefix')) {
prefix = game.settings.get('l5r-ui', 'defaultChatPrefix');
// Check if the message begins with any command.
let [command, match] = chatLog.constructor.parse(message);
if ( command === "none" ) {
// If there is no command, insert the prefix and reprocess.
chatLog.processMessage(prefix + " " + message);
return false;
}
// Otherwise do nothing.
return true;
}
});
Hooks.on("renderChatMessage", (message, html, data) => {
// Add extra CSS classes to rolls so we can style them.
if (message.isRoll) {
html.addClass("chatColorsRoll");
}
});