Skip to content

Commit

Permalink
Replaced intro tutorial with a chat message
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Sep 9, 2024
1 parent 1b77e23 commit 18a7f65
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions scripts/updates/tours/1customRingNotificationTour.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
import { MODULE_ID } from "../../const.js";

export const customRingTour = () => {
const t = new Tour({
namespace: "core",
id: "sett-custom-ring-notification-tour",
title: game.i18n.localize(MODULE_ID + ".tours.custom.notification.title"),
steps: [
{
title: game.i18n.localize(MODULE_ID + ".tours.custom.notification.title"),
selector: 'section#ui-middle',
content: game.i18n.localize(MODULE_ID + ".tours.custom.notification.step"),
tooltipDirection: "CENTER"
}
]
export const customRingTour = async () => {
await ChatMessage.create({
content: `<h2>${game.i18n.localize(MODULE_ID + ".tours.custom.notification.title")}</h2>
<p>${game.i18n.localize(MODULE_ID + ".tours.custom.notification.step")}</p>`,
whisper: ChatMessage.getWhisperRecipients("GM")
})
t.start();
}

0 comments on commit 18a7f65

Please sign in to comment.