예제 #1
0
 /// <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();
     }
 }
예제 #2
0
 /// <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();
     }
 }
예제 #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;
 }
예제 #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;
 }