From dbea66bde78484ed29892500a166f65439909334 Mon Sep 17 00:00:00 2001 From: U~man Date: Thu, 9 Jul 2020 14:44:44 +0200 Subject: [PATCH] ENH: Welcome --- src/ose.js | 6 +++++- src/scss/apps.scss | 12 ++++++++++++ src/system.json | 2 +- src/templates/chat/welcome.html | 18 ++++++++++++++++++ 4 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 src/templates/chat/welcome.html diff --git a/src/ose.js b/src/ose.js index 68dd863..a87d2e1 100644 --- a/src/ose.js +++ b/src/ose.js @@ -70,10 +70,14 @@ Hooks.once("setup", function () { } }); -Hooks.once("ready", () => { +Hooks.once("ready", async () => { Hooks.on("hotbarDrop", (bar, data, slot) => macros.createOseMacro(data, slot) ); + + const template = 'systems/ose/templates/chat/welcome.html'; + const html = await renderTemplate(template); + $('#chat-log').append(html); }); Hooks.on( diff --git a/src/scss/apps.scss b/src/scss/apps.scss index df4e823..6f872ce 100644 --- a/src/scss/apps.scss +++ b/src/scss/apps.scss @@ -5,6 +5,18 @@ } } +.ose.welcome { + .button { + text-align: center; + margin: 4px; + } + .footer { + font-size: 12px; + text-align: right; + color: $colorTan; + } +} + .ose.chat-block { margin: 0; .chat-header { diff --git a/src/system.json b/src/system.json index 3a3cfed..6c4e245 100644 --- a/src/system.json +++ b/src/system.json @@ -1,7 +1,7 @@ { "name": "ose", "title": "Old-School Essentials", - "description": "Play OSR modules with Old-School Essentials on Foundry VTT", + "description": "Play B/X OSR modules with Old-School Essentials on Foundry VTT", "version": 0.5, "minimumCoreVersion": "0.6.2", "compatibleCoreVersion": "0.6.5", diff --git a/src/templates/chat/welcome.html b/src/templates/chat/welcome.html new file mode 100644 index 0000000..1e776f1 --- /dev/null +++ b/src/templates/chat/welcome.html @@ -0,0 +1,18 @@ +
  • +

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

    +
    + Buy Me a Coffee at ko-fi.com +
    + +