ENH: Welcome

master
U~man 2020-07-09 14:44:44 +02:00
parent 0305587d9f
commit dbea66bde7
4 changed files with 36 additions and 2 deletions

View File

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

View File

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

View File

@ -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",

View File

@ -0,0 +1,18 @@
<li class="message flexcol welcome ose">
<p class="content">
<em>May you have a glorious game.</em> <strong>U~man</strong>
</p>
<div class="button">
<a href="https://ko-fi.com/H2H21WMKA" target="_blank"
><img
height="36"
style="border: 0px; height: 28px;"
src="https://cdn.ko-fi.com/cdn/kofi2.png?v=2"
border="0"
alt="Buy Me a Coffee at ko-fi.com"
/></a>
</div>
<div class="footer">
Report your issues on <a href="https://gitlab.com/mesfoliesludiques/foundryvtt-ose/-/boards">Gitlab</a>
</div>
</li>