import { CommandSetting } from "./CommandSetting" ; import { HpVerbosityOption , PlayerViewSettings } from "./PlayerViewSettings" ; export enum AutoGroupInitiativeOption { None = "None" , ByName = "By Name" , SideInitiative = "Side Initiative" } export enum AutoRerollInitiativeOption { No = "No" , Prompt = "Prompt" , Automatic = "Automatic" } export enum PostCombatStatsOption { None = "None" , EncounterViewOnly = "Encounter view only" , PlayerViewOnly = "Player view only" , Both = "Both" } export interface Settings { Commands : CommandSetting [ ] ; Rules : { RollMonsterHp : boolean ; EnableBossAndMinionHP : boolean ; AllowNegativeHP : boolean ; AutoCheckConcentration : boolean ; AutoGroupInitiative : AutoGroupInitiativeOption ; AutoRerollInitiative : AutoRerollInitiativeOption ; } ; TrackerView : { DisplayPortraits : boolean ; DisplayRoundCounter : boolean ; DisplayTurnTimer : boolean ; DisplayDifficulty : boolean ; DisplayHPBar : boolean ; PostCombatStats : PostCombatStatsOption ; } ; PlayerView : PlayerViewSettings ; PreloadedContent : { BasicRules : boolean ; Open5eContent : boolean ; } ; Version : string ; } export function getDefaultSettings ( ) { return { Commands : [ ] , Rules : { RollMonsterHp : false , EnableBossAndMinionHP : false , AllowNegativeHP : false , AutoCheckConcentration : true , AutoGroupInitiative : AutoGroupInitiativeOption . None , AutoRerollInitiative : AutoRerollInitiativeOption . No } , TrackerView : { DisplayPortraits : false , DisplayRoundCounter : false , DisplayTurnTimer : false , DisplayDifficulty : true , DisplayHPBar : false , PostCombatStats : PostCombatStatsOption . None } , PlayerView : { ActiveCombatantOnTop : false , AllowPlayerSuggestions : false , AllowTagSuggestions : false , MonsterHPVerbosity : HpVerbosityOption . ColoredLabel , PlayerHPVerbosity : HpVerbosityOption . ActualHP , HideMonstersOutsideEncounter : false , DisplayRoundCounter : false , DisplayTurnTimer : false , DisplayPortraits : false , SplashPortraits : false , CustomCSS : "" , CustomStyles : { combatantBackground : "" , combatantText : "" , activeCombatantIndicator : "" , font : "" , headerBackground : "" , headerText : "" , mainBackground : "" , backgroundUrl : "" } , CustomEncounterId : "" } , PreloadedContent : { BasicRules : true , Open5eContent : true } , Version : process . env . VERSION || "0.0.0" } ; }