/// <summary>
 /// Sets Category state and enables the button accordingly
 /// </summary>
 /// <param name="sender">Sender of event</param>.
 /// <param name="e">Event arguments</param>
 public void CategoryChanged_RequirementBazaar(object sender, System.EventArgs e)
 {
     if (isRequirementBazaarOpen)
     {
         reqBazShelfConfiguration           = (ReqBazShelfConfiguration)GameObject.FindObjectOfType <ShelfConfigurationMenu>().ShelfConfiguration;
         categorySelected_RequirementBazaar = reqBazShelfConfiguration.SelectedCategory != null;
         RequirementBazaarCheck();
     }
 }
 /// <summary>
 /// Sets RequirementBazaar Project state and enables the button accordingly
 /// </summary>
 /// <param name="sender">Sender of event</param>.
 /// <param name="e">Event arguments</param>
 public void ProjectChanged_RequirementBazaar(object sender, System.EventArgs e)
 {
     if (isRequirementBazaarOpen)
     {
         reqBazShelfConfiguration          = (ReqBazShelfConfiguration)GameObject.FindObjectOfType <ShelfConfigurationMenu>().ShelfConfiguration;
         isProjectLoaded_RequirementBazaar = reqBazShelfConfiguration.IsValidConfiguration;
         RequirementBazaarCheck();
     }
 }
Beispiel #3
0
 /// <summary>
 /// Stores the current category
 /// </summary>
 /// <param name="sender">Sender of event</param>.
 /// <param name="e">Event arguments</param>
 public void CategoryChanged(object sender, System.EventArgs e)
 {
     configurationMenu        = GameObject.FindObjectOfType <ShelfConfigurationMenu>();
     reqBazShelfConfiguration = (ReqBazShelfConfiguration)configurationMenu.ShelfConfiguration;
     currentCategory          = reqBazShelfConfiguration.SelectedCategory;
 }
Beispiel #4
0
 /// <summary>
 /// Stores the current project ID
 /// </summary>
 /// <param name="sender">Sender of event</param>.
 /// <param name="e">Event arguments</param>
 public void ProjectChanged_RequirementBazaar(object sender, System.EventArgs e)
 {
     configurationMenu        = GameObject.FindObjectOfType <ShelfConfigurationMenu>();
     reqBazShelfConfiguration = (ReqBazShelfConfiguration)configurationMenu.ShelfConfiguration;
     currentProjectID         = reqBazShelfConfiguration.SelectedProject.id;
 }