public AlignmentTimerOptions(AlignmentTimer alignmentTimer, FormTimerSettingsDefault form)
        {
            this.alignmentTimer = alignmentTimer;
            this.settingsForm = form;

            InitializeComponent();

            if (alignmentTimer.IsWhiteLighter) radioButtonWL.Checked = true;
            else radioButtonBL.Checked = true;

            switch (alignmentTimer.PlayerReligion)
            {
                case AlignmentTimer.WurmReligions.Fo:
                    radioButtonFo.Checked = true; break;
                case AlignmentTimer.WurmReligions.Magranon:
                    radioButtonMag.Checked = true; break;
                case AlignmentTimer.WurmReligions.Vynora:
                    radioButtonVyn.Checked = true; break;
                case AlignmentTimer.WurmReligions.Libila:
                    radioButtonLib.Checked = true; break;
            }

            radioButtonWL.CheckedChanged += UpdateResult;
            radioButtonBL.CheckedChanged += UpdateResult;
            radioButtonFo.CheckedChanged += UpdateResult;
            radioButtonMag.CheckedChanged += UpdateResult;
            radioButtonVyn.CheckedChanged += UpdateResult;
            radioButtonLib.CheckedChanged += UpdateResult;

            UpdateResult(new object(), new EventArgs());
        }
 public MeditationTimerOptions(MeditationTimer timer, FormTimerSettingsDefault parent)
 {
     MedTimer = timer;
     parentForm = parent;
     InitializeComponent();
     checkBoxRemindSleepBonus.Checked = MedTimer.SleepBonusReminder;
     int popupDurationMillis = MedTimer.SleepBonusPopupDuration;
     this.numericUpDownPopupDuration.Value = GeneralHelper.ConstrainValue<int>(
         popupDurationMillis / 1000,
         (int)numericUpDownPopupDuration.Minimum,
         (int)numericUpDownPopupDuration.Maximum);
     checkBoxShowMeditSkill.Checked = MedTimer.ShowMeditSkill;
     checkBoxCount.Checked = MedTimer.ShowMeditCount;
     inited = true;
 }
        public PrayerTimerOptions(PrayerTimer prayerTimer, FormTimerSettingsDefault form)
        {
            InitializeComponent();
            this.prayerTimer = prayerTimer;
            this.formSettings = form;

            numericUpDownFavorWhenThis.Value = 
                GeneralHelper.ConstrainValue<decimal>((decimal)prayerTimer.Settings.Value.FavorSettings.FavorNotifyOnLevel, 0M, 100M);
            checkBoxPopupPersist.Checked = prayerTimer.Settings.Value.FavorSettings.FavorNotifyPopupPersist;
            textBoxSoundName.Text = prayerTimer.Settings.Value.FavorSettings.FavorNotifySoundName;
            checkBoxNotifySound.Checked = prayerTimer.Settings.Value.FavorSettings.FavorNotifySound;
            checkBoxNotifyPopup.Checked = prayerTimer.Settings.Value.FavorSettings.FavorNotifyPopup;
            checkBoxFavorWhenMAX.Checked = prayerTimer.Settings.Value.FavorSettings.FavorNotifyWhenMAX;
            checkBoxShowFaithSkill.Checked = prayerTimer.ShowFaithSkillOnTimer;
        }
Example #4
0
 public override void OpenMoreOptions(FormTimerSettingsDefault form)
 {
     MeditationTimerOptions moreOptUI = new MeditationTimerOptions(this, form);
     moreOptUI.ShowDialog();
 }
Example #5
0
 public override void OpenMoreOptions(FormTimerSettingsDefault form)
 {
     base.OpenMoreOptions(form);
     MeditPathTimerOptions ui = new MeditPathTimerOptions(form, this);
     ui.ShowDialog();
 }
Example #6
0
 /// <summary>
 /// override to show "more options" window
 /// </summary>
 /// <param name="form"></param>
 public virtual void OpenMoreOptions(FormTimerSettingsDefault form)
 {
 }
Example #7
0
 /// <summary>
 /// opens config for default timer settings
 /// </summary>
 public void OpenTimerConfig()
 {
     FormTimerSettingsDefault ui = new FormTimerSettingsDefault(this);
     ui.ShowDialog();
 }
Example #8
0
 public override void OpenMoreOptions(FormTimerSettingsDefault form)
 {
     base.OpenMoreOptions(form);
 }
 public MeditPathTimerOptions(FormTimerSettingsDefault defaultSettingsForm, MeditPathTimer meditPathTimer)
 {
     this.defaultSettingsForm = defaultSettingsForm;
     this.meditPathTimer = meditPathTimer;
     InitializeComponent();
 }