New icons

This commit is contained in:
2022-10-23 09:55:02 +02:00
parent 782b39d0be
commit 12c2c46724
16 changed files with 205 additions and 214 deletions

View File

@ -44,7 +44,7 @@ Hooks.once("init", async function () {
CONFIG.Combat.documentClass = HawkmoonCombat
CONFIG.Actor.documentClass = HawkmoonActor
CONFIG.Item.documentClass = HawkmoonItem
game.system.hawkmon = {
game.system.hawkmosn = {
HawkmoonUtility
}
@ -58,7 +58,7 @@ Hooks.once("init", async function () {
Items.registerSheet("fvtt-hawkmoon-cyd", HawkmoonItemSheet, { makeDefault: true })
HawkmoonUtility.init();
});
/* -------------------------------------------- */
@ -67,7 +67,7 @@ function welcomeMessage() {
user: game.user.id,
whisper: [game.user.id],
content: `<div id="welcome-message-Hawkmoon"><span class="rdd-roll-part">
<strong>Bienvenue dans Hawkmoon !</strong>
<strong>Bienvenue dans Hawkmoon et le troisième Millénaire !</strong>
<p>Les livres de Hawkmoon sont nécessaires pour jouer : https://www.titam-france.fr</p>
<p>Hawkmoon est jeude rôle publié par Titam France/Sombres projets, tout les droits leur appartiennent.<p>
` });
@ -75,8 +75,8 @@ function welcomeMessage() {
/* -------------------------------------------- */
// Register world usage statistics
function registerUsageCount( registerKey ) {
if ( game.user.isGM ) {
function registerUsageCount(registerKey) {
if (game.user.isGM) {
game.settings.register(registerKey, "world-key", {
name: "Unique world key",
scope: "world",
@ -86,14 +86,14 @@ function registerUsageCount( registerKey ) {
});
let worldKey = game.settings.get(registerKey, "world-key")
if ( worldKey == undefined || worldKey == "" ) {
if (worldKey == undefined || worldKey == "") {
worldKey = randomID(32)
game.settings.set(registerKey, "world-key", worldKey )
game.settings.set(registerKey, "world-key", worldKey)
}
// Simple API counter
let regURL = `https://www.uberwald.me/fvtt_appcount/count.php?name="${registerKey}"&worldKey="${worldKey}"&version="${game.release.generation}.${game.release.build}"&system="${game.system.id}"&systemversion="${game.system.version}"`
//$.ajaxSetup({
//headers: { 'Access-Control-Allow-Origin': '*' }
//headers: { 'Access-Control-Allow-Origin': '*' }
//})
$.ajax(regURL)
}
@ -113,9 +113,15 @@ Hooks.once("ready", function () {
user: game.user._id
});
}
registerUsageCount('fvtt-hawkmoon-cyd')
welcomeMessage()
// CSS patch for v9
if (game.version) {
let sidebar = document.getElementById("sidebar");
sidebar.style.width = "min-content";
}
});
/* -------------------------------------------- */