/// <summary>
 /// Removes all buttons, etc. from the GUI.
 /// </summary>
 public void ClearGUIs()
 {
     ClearButtons();
     statBox = null;
     textBox = null;
     optionsBox = null;
 }
Exemple #2
0
 /// <summary>
 /// Removes all buttons, etc. from the GUI.
 /// </summary>
 public void ClearGUIs()
 {
     ClearButtons();
     statBox    = null;
     textBox    = null;
     optionsBox = null;
 }
Exemple #3
0
 /// <summary>
 /// Clears all the info text from the main options box.
 /// </summary>
 public void clearOptionsBox()
 {
     if (optionsBox != null)
     {
         optionsBox.clear();
         optionsBox = null;
     }
 }
Exemple #4
0
 /// <summary>
 /// Creates an options box, which contains the selected hero's abilities.
 /// </summary>
 /// <param name="position">Top left corner of the options area.</param>
 /// <param name="InfoText">Info text for the box itself.</param>
 /// <param name="buttonStrings">Array of info texts for each button.</param>
 /// <returns></returns>
 public OptionsBox MakeOptionsBox(Rectangle position, String InfoText, String[] buttonStrings)
 {
     if (optionsBox != null)
     {
         optionsBox.clear();
     }
     optionsBox = new OptionsBox(position, InfoText, buttonStrings);
     return(optionsBox);
 }
 /// <summary>
 /// Clears all the info text from the main options box.
 /// </summary>
 public void clearOptionsBox()
 {
     if (optionsBox != null)
     {
         optionsBox.clear();
         optionsBox = null;
     }
 }
 /// <summary>
 /// Creates an options box, which contains the selected hero's abilities.
 /// </summary>
 /// <param name="position">Top left corner of the options area.</param>
 /// <param name="InfoText">Info text for the box itself.</param>
 /// <param name="buttonStrings">Array of info texts for each button.</param>
 /// <returns></returns>
 public OptionsBox MakeOptionsBox(Rectangle position, String InfoText, String[] buttonStrings)
 {
     if (optionsBox != null)
     {
         optionsBox.clear();
     }
     optionsBox = new OptionsBox(position, InfoText, buttonStrings);
     return optionsBox;
 }