public override void SetDescription() { if (!lockedSprite.activeInHierarchy && !Talent.isUnlocked) { descriptionPanel.SetPanel(Talent, this); researchPanel.SetPanel(Talent); resourcePanel.Hide(); } else if (!lockedSprite.activeInHierarchy && Talent.isUnlocked) { descriptionPanel.SetPanel(Talent, this); researchPanel.Hide(); resourcePanel.SetPanel(Talent.characteristics); } }
/// <summary> /// This function takes care of transitioning from The Resources View to the Classes View when the top left Arrow is clicked. /// It also clears out the CurrentResources. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ArrowPanel_Click(object sender, EventArgs e) { if (ClassView) { return; } else { AddFilePanel.Hide(); AddLinkPanel.Hide(); CurrentPage = 0; CurrentClassLabel.Text = ""; DeleteSempahore.WaitOne(); ClassView = true; CurrentResources.Clear(); //Throw away the resources because the class is changing. ClassesPanel.Location = new Point(136, 150); ClassesPanel.BringToFront(); ClassesPanel.Show(); ResourcePanel.Hide(); } }