private void Form1_Load(object sender, EventArgs e) { backgroundImage.Controls.Add(middleCharacterBoxImage); middleCharacterBoxImage.BackColor = Color.Transparent; outputLbl.Text = myStory.start(); }
private void Form1_Load(object sender, EventArgs e) { //default foreground to false foregroundImage.Visible = false; foregroundImage.Image = Properties.Resources.LoadingPage; backgroundImage.Controls.Add(middleCharacterBoxImage); middleCharacterBoxImage.BackColor = Color.Transparent; //Add details to the button box; buttonOptionBox.BackColor = Color.Black; //if I've changed position 0 I need to reload anyway checkForImageChange(); outputLbl.Text = myStory.start(); }
private void selectNextStory(int arrayPosition) { if (myStory.Choices[arrayPosition] != null) { //set next story Story myNextStory = myStory.Choices[arrayPosition].Story; //if I've changed position 0 I need to reload anyway myStory = myNextStory; myStory.Position = 0; checkForImageChange(); outputLbl.Text = myStory.start(); //turn button box invisable buttonOptionBox.Visible = false; } else { MessageBox.Show("No vailid option connected to this button, please select another (or, Anna, YOU can fix this)"); } }