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 @@ +