Remove commented code
This commit is contained in:
parent
06a41a1b55
commit
a792ee40dd
1 changed files with 2 additions and 26 deletions
|
|
@ -4,17 +4,14 @@ import { GenericAppMixin } from "../GenericApp.mjs";
|
||||||
import { localizer } from "../../utils/Localizer.mjs";
|
import { localizer } from "../../utils/Localizer.mjs";
|
||||||
import { Logger } from "../../utils/Logger.mjs";
|
import { Logger } from "../../utils/Logger.mjs";
|
||||||
|
|
||||||
|
|
||||||
const { HandlebarsApplicationMixin } = foundry.applications.api;
|
const { HandlebarsApplicationMixin } = foundry.applications.api;
|
||||||
const { ActorSheetV2 } = foundry.applications.sheets;
|
const { ActorSheetV2 } = foundry.applications.sheets;
|
||||||
// const { Roll } = foundry.dice;
|
|
||||||
|
|
||||||
export class HeroSummaryCardV1 extends GenericAppMixin(HandlebarsApplicationMixin(ActorSheetV2)) {
|
export class HeroSummaryCardV1 extends GenericAppMixin(HandlebarsApplicationMixin(ActorSheetV2)) {
|
||||||
|
|
||||||
// #region Options
|
// #region Options
|
||||||
static DEFAULT_OPTIONS = {
|
static DEFAULT_OPTIONS = {
|
||||||
classes: [
|
classes: [
|
||||||
// `ripcrypt`,
|
|
||||||
`ripcrypt--actor`,
|
`ripcrypt--actor`,
|
||||||
`ripcrypt--HeroSummaryCardV1`,
|
`ripcrypt--HeroSummaryCardV1`,
|
||||||
`ripcrypt-theme--dark`,
|
`ripcrypt-theme--dark`,
|
||||||
|
|
@ -26,9 +23,7 @@ export class HeroSummaryCardV1 extends GenericAppMixin(HandlebarsApplicationMixi
|
||||||
window: {
|
window: {
|
||||||
resizable: false,
|
resizable: false,
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {},
|
||||||
// roll: this.rollDice,
|
|
||||||
},
|
|
||||||
form: {
|
form: {
|
||||||
submitOnChange: true,
|
submitOnChange: true,
|
||||||
closeOnSubmit: false,
|
closeOnSubmit: false,
|
||||||
|
|
@ -137,28 +132,9 @@ export class HeroSummaryCardV1 extends GenericAppMixin(HandlebarsApplicationMixi
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
return ctx;
|
return ctx;
|
||||||
}
|
};
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
// #region Actions
|
// #region Actions
|
||||||
// static async rollDice(_$e, el) {
|
|
||||||
// const data = el.dataset;
|
|
||||||
// const formula = data.formula;
|
|
||||||
// Logger.debug(`Attempting to roll formula: ${formula}`);
|
|
||||||
|
|
||||||
// let flavor;
|
|
||||||
// if (data.flavor) {
|
|
||||||
// flavor = localizer(
|
|
||||||
// data.flavor,
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
|
|
||||||
// const roll = new Roll(formula);
|
|
||||||
// await roll.evaluate();
|
|
||||||
// await roll.toMessage({
|
|
||||||
// speaker: ChatMessage.getSpeaker({ actor: this.actor }),
|
|
||||||
// flavor,
|
|
||||||
// });
|
|
||||||
// };
|
|
||||||
// #endregion
|
// #endregion
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue