public override void Initialize(PlayerTimersGroup parentGroup, string player, TimerDefinition definition) { base.Initialize(parentGroup, player, definition); View.SetCooldown(ShortMeditCooldown); skillEntryParser = new SkillEntryParser(WurmApi); sleepNotify = new SleepBonusNotify(Logger, SoundManager, TrayPopups, Character, "Can turn off sleep bonus now"); sleepNotify.Enabled = SleepBonusReminder; View.UpdateSkill(MeditationSkill); View.ShowSkill = ShowMeditSkill; View.ShowMeditCount = ShowMeditCount; MoreOptionsAvailable = true; PerformAsyncInits(); }
public override void Initialize(PlayerTimersGroup parentGroup, string player, string timerId, ServerInfo.ServerGroup serverGroup, string compactId) { base.Initialize(parentGroup, player, timerId, serverGroup, compactId); //more inits TimerDisplay.SetCooldown(ShortMeditCooldown); //load settings Settings = new PersistentObject<MeditTimerSettings>(new MeditTimerSettings()); Settings.FilePath = SettingsSavePath; if (!Settings.Load()) Settings.Save(); SleepNotify = new SleepBonusNotify(Player, "Can turn off sleep bonus now"); SleepNotify.Enabled = SleepBonusReminder; TimerDisplay.UpdateSkill(MeditationSkill); TimerDisplay.ShowSkill = Settings.Value.ShowMeditSkill; TimerDisplay.ShowMeditCount = Settings.Value.ShowMeditCount; MoreOptionsAvailable = true; PerformAsyncInits(); }