Begin working on HUD interactivity

This commit is contained in:
Oliver-Akins 2025-03-01 00:44:49 -07:00
parent c9ed4142e6
commit 507913139f
5 changed files with 65 additions and 19 deletions

View file

@ -83,6 +83,10 @@ export class DelveDiceHUD extends HandlebarsApplicationMixin(ApplicationV2) {
await this._prepareDifficultyContext(ctx);
break;
};
case `fateCompass`: {
await this._prepareFateCompassContext(ctx);
break;
};
};
Logger.log(`${partId} Context`, ctx);
@ -95,12 +99,20 @@ export class DelveDiceHUD extends HandlebarsApplicationMixin(ApplicationV2) {
async _prepareDifficultyContext(ctx) {
ctx.dc = game.settings.get(`ripcrypt`, `dc`);
};
async _prepareFateCompassContext(ctx) {
ctx.direction = game.settings.get(`ripcrypt`, `currentFate`);
}
// #endregion
// #region Actions
static async #tourDelta() {
ui.notifications.info(`Button Clicked!`, { console: false });
ui.notifications.info(`Delve Tour Changed`, { console: false });
};
static async #setFate() {
ui.notifications.info(`Fate Set!`, { console: false });
};
// #endregion
};