From 83a1c7b717a4365e5a807b891629afd2a35c6bc2 Mon Sep 17 00:00:00 2001 From: U~man Date: Thu, 9 Jul 2020 19:57:26 +0200 Subject: [PATCH] ENH: Nice place for licensing --- src/lang/en.json | 3 +++ src/ose.js | 5 ++--- src/scss/apps.scss | 5 ++--- .../chat/{welcome.html => license.html} | 16 ++++++++++++---- 4 files changed, 19 insertions(+), 10 deletions(-) rename src/templates/chat/{welcome.html => license.html} (50%) diff --git a/src/lang/en.json b/src/lang/en.json index 50adfdc..9974b4d 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -4,6 +4,7 @@ "OSE.Show": "Show", "OSE.Add": "Add", "OSE.Ok": "Ok", + "OSE.Reset": "Reset", "OSE.Cancel": "Cancel", "OSE.Roll": "Roll", "OSE.Success": "Success", @@ -134,6 +135,8 @@ "OSE.Setting.MovementAuto": "Calculate Movement", "OSE.Setting.SignificantTreasure": "Significant Treasure Weight", "OSE.Setting.SignificantTreasureHint": "Weight at which treasure will reduce the movement, only useful for basic encumbrance", + "OSE.Setting.Welcome": "Display Welcome message", + "OSE.Setting.WelcomeHint": "Display this annoying welcome message", "OSE.items.Equip": "Equip", "OSE.items.Unequip": "Unequip", diff --git a/src/ose.js b/src/ose.js index a87d2e1..322ed3b 100644 --- a/src/ose.js +++ b/src/ose.js @@ -74,10 +74,9 @@ Hooks.once("ready", async () => { Hooks.on("hotbarDrop", (bar, data, slot) => macros.createOseMacro(data, slot) ); - - const template = 'systems/ose/templates/chat/welcome.html'; + const template = 'systems/ose/templates/chat/license.html'; const html = await renderTemplate(template); - $('#chat-log').append(html); + $('#settings .game-system').append(html); }); Hooks.on( diff --git a/src/scss/apps.scss b/src/scss/apps.scss index 6f872ce..15033bc 100644 --- a/src/scss/apps.scss +++ b/src/scss/apps.scss @@ -5,15 +5,14 @@ } } -.ose.welcome { +#settings .ose.game-license { + font-size: 12px; .button { text-align: center; margin: 4px; } .footer { - font-size: 12px; text-align: right; - color: $colorTan; } } diff --git a/src/templates/chat/welcome.html b/src/templates/chat/license.html similarity index 50% rename from src/templates/chat/welcome.html rename to src/templates/chat/license.html index 1e776f1..37da947 100644 --- a/src/templates/chat/welcome.html +++ b/src/templates/chat/license.html @@ -1,6 +1,14 @@ -
  • -

    - May you have a glorious game. U~man +

    +

    + This fan-made system requires requires Old-School Essentials Core Rules that + you can find here. +

    +

    + Old School Essentials is a trademark of Necrotic Gnome, the trademark is + used with permission of Necrotic Gnome under license. +

    +

    + Brought to life on Foundry VTT by U~man.

    -
  • +