Add ammo to the gear types, and get more design stuff for the AmmoTracker

This commit is contained in:
Oliver-Akins 2025-03-15 18:36:04 -06:00
parent 96e4d09e7b
commit 3ae7e9489a
9 changed files with 85 additions and 11 deletions

View file

@ -19,8 +19,8 @@ export class AmmoTracker extends GenericPopoverMixin(HandlebarsApplicationMixin(
};
static PARTS = {
main: {
template: filePath(`templates/Apps/popovers/AmmoTracker/content.hbs`),
ammoList: {
template: filePath(`templates/Apps/popovers/AmmoTracker/ammoList.hbs`),
},
};
// #endregion
@ -29,6 +29,12 @@ export class AmmoTracker extends GenericPopoverMixin(HandlebarsApplicationMixin(
// #endregion
// #region Lifecycle
async _preparePartContext(partId, data) {
const ctx = { partId };
ctx.canPin = false;
ctx.ammos = data.ammos;
return ctx;
};
// #endregion
// #region Actions