public DeleteCharForm(Player _player) { InitializeComponent(); this.StartPosition = FormStartPosition.CenterParent; this.BackgroundImage = Function.GeneralFunctions.ResizeImage(Properties.Resources.background, labelBackgroundIGNORE.Size); player = _player; foreach (var item in player.ControlledCharacters) { comboBoxChooseChar.Items.Add(item.UnitName); } comboBoxChooseChar.SelectedIndex = 0; }
public ChangeGearForm(Item _item, Player _player) { InitializeComponent(); this.StartPosition = FormStartPosition.CenterParent; this.BackgroundImage = RPG.Function.GeneralFunctions.ResizeImage(Properties.Resources.background, labelBackgroundIGNORE.Size); this.theItem = _item; this.player = _player; this.selectedChar = player.ControlledCharacters[0]; foreach (var item in player.ControlledCharacters) { comboBoxChooseChar.Items.Add(item.UnitName); } this.labelCurrentItem.Text = Function.GeneralFunctions.ReturnItemLabelString(theItem); labelCurrentItem.ForeColor = Function.GeneralFunctions.ReturnProperColorForItem(theItem); comboBoxChooseChar.SelectedIndex = 0; }
public OptionsForm(Player _player) { InitializeComponent(); this.StartPosition = FormStartPosition.CenterParent; this.BackgroundImage = Function.GeneralFunctions.ResizeImage(Properties.Resources.background, labelBackgroundIGNORE.Size); player = _player; foreach (var item in _player.ControlledCharacters) { listBoxChars.Items.Add(item.UnitName); } foreach (var tem in _player.Settings.PrefChars) { listBoxChars.SelectedItems.Add(tem); } comboBoxDifficulty.Items.Add("Very Easy (Level - 4)"); comboBoxDifficulty.Items.Add("Easy (Level - 2)"); comboBoxDifficulty.Items.Add("Normal (Level)"); comboBoxDifficulty.Items.Add("Hard (Level + 2)"); comboBoxDifficulty.Items.Add("Very Hard (Level + 4)"); comboBoxDifficulty.SelectedIndex = _player.Settings.PrefDifficulty; if (player.Settings.SoundOn) { radioButtonSoundOn.Checked = true; numericUpDownSound.Value = player.Settings.SoundVolume; numericUpDownSound.Enabled = true; } else { radioButtonSoundOff.Checked = true; numericUpDownSound.Enabled = false; } }