This commit is contained in:
MartinSDampier 2025-03-26 08:59:11 -05:00
parent b9382a24ed
commit 2f78946555
3 changed files with 5 additions and 5 deletions

View file

@ -1,11 +1,11 @@
import Creature from "./Models/Creature";
export interface MyPluginSettings {
export interface RetainerSettings {
mySetting: string;
playerCharacters: Creature[];
}
export const DEFAULT_SETTINGS: MyPluginSettings = {
export const DEFAULT_SETTINGS: RetainerSettings = {
mySetting: 'default',
playerCharacters: [],
}

View file

@ -146,7 +146,7 @@ export class InitiativeView extends ItemView {
this.round = round;
div = div ?? this.roundEl.createDiv({ cls: "leftAlign roundHeader"});
div.setText("Round: " + this.round);
var newRoundButton = new ButtonComponent(div);
let newRoundButton = new ButtonComponent(div);
newRoundButton.setButtonText("New");
newRoundButton.setClass("headerButtonLeft");
newRoundButton.onClick( () => {

View file

@ -2,12 +2,12 @@ import { App, ButtonComponent, Editor, MarkdownView, Modal, Notice, Plugin, Plug
import { InitiativeView } from './Views/InitiativeTrackerView';
import { INITIATIVE_VIEW, TableFormat, TableFlag } from 'lib/Models/Constants';
import Creature from 'lib/Models/Creature';
import {MyPluginSettings, DEFAULT_SETTINGS} from 'lib/Settings'
import {RetainerSettings, DEFAULT_SETTINGS} from 'lib/Settings'
import { CreatureTypes } from './Models/CreatureTypes';
// Remember to rename these classes and interfaces!
export default class ForbiddenLandsCharacterSheet extends Plugin {
settings: MyPluginSettings;
settings: RetainerSettings;
creatures: Creature[] = [];
async onload() {