/// <summary> /// Constructor /// </summary> /// <param name="eventsquare">EventSquare handle</param> /// <param name="dungeon">Dungeon handle</param> public EventSquareControl(EventSquare eventsquare, Dungeon dungeon) { InitializeComponent(); DirectionBox.DataSource = Enum.GetValues(typeof(CardinalPoint)); DirectionBox.SelectedItem = eventsquare.Direction; DisplayBorderBox.Checked = eventsquare.DisplayBorder; IntelligenceBox.Value = eventsquare.Intelligence; ColorPanelBox.BackColor = eventsquare.MessageColor; RemainingBox.Value = eventsquare.Remaining; TextBox.Text = eventsquare.Text; TextJustificationBox.DataSource = Enum.GetValues(typeof(TextJustification)); ActorControlBox.Actor = eventsquare; #region Choices ChoicesBox.DataSource = eventsquare.Choices; #endregion EventSquare = eventsquare; Dungeon = dungeon; }
/// <summary> /// Constructor /// </summary> /// <param name="eventsquare">EventSquare handle</param> /// <param name="dungeon">Dungeon handle</param> public EventSquareControl(EventSquare eventsquare, Dungeon dungeon) { InitializeComponent(); DirectionBox.DataSource = Enum.GetValues(typeof(CardinalPoint)); DirectionBox.SelectedItem = eventsquare.Direction; DisplayBorderBox.Checked = eventsquare.DisplayBorder; IntelligenceBox.Value = eventsquare.Intelligence; ColorPanelBox.BackColor = eventsquare.MessageColor; RemainingBox.Value = eventsquare.Remaining; TextBox.Text = eventsquare.Text; TextJustificationBox.DataSource = Enum.GetValues(typeof(TextJustification)); ActorControlBox.Actor = eventsquare; #region Choices ChoicesBox.DataSource = eventsquare.Choices; #endregion EventSquare = eventsquare; Dungeon = dungeon; }
/// <summary> /// Constructor /// </summary> /// <param name="eventsquare">EventSquare handle</param> /// <param name="dungeon">Dungeon handle</param> public ScriptedDialogForm(EventSquare eventsquare, Dungeon dungeon) { InitializeComponent(); DisplayBorderBox.Checked = eventsquare.DisplayBorder; MessageBox.Text = eventsquare.Text; TextJustificationBox.DataSource = Enum.GetValues(typeof(TextJustification)); Dungeon = dungeon; #region Choices ChoicesBox.DataSource = eventsquare.Choices; #endregion EventSquare = eventsquare; }
/// <summary> /// Constructor /// </summary> /// <param name="eventsquare">EventSquare handle</param> /// <param name="dungeon">Dungeon handle</param> public ScriptedDialogForm(EventSquare eventsquare, Dungeon dungeon) { InitializeComponent(); DisplayBorderBox.Checked = eventsquare.DisplayBorder; MessageBox.Text = eventsquare.Text; TextJustificationBox.DataSource = Enum.GetValues(typeof(TextJustification)); Dungeon = dungeon; #region Choices ChoicesBox.DataSource = eventsquare.Choices; #endregion EventSquare = eventsquare; }