コード例 #1
0
 /// <summary>
 /// Removes all buttons, etc. from the GUI.
 /// </summary>
 public void ClearGUIs()
 {
     ClearButtons();
     statBox = null;
     textBox = null;
     optionsBox = null;
 }
コード例 #2
0
 /// <summary>
 /// Removes all buttons, etc. from the GUI.
 /// </summary>
 public void ClearGUIs()
 {
     ClearButtons();
     statBox    = null;
     textBox    = null;
     optionsBox = null;
 }
コード例 #3
0
 /// <summary>
 /// Clears all the info text from the main options box.
 /// </summary>
 public void clearOptionsBox()
 {
     if (optionsBox != null)
     {
         optionsBox.clear();
         optionsBox = null;
     }
 }
コード例 #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);
 }
コード例 #5
0
 /// <summary>
 /// Clears all the info text from the main options box.
 /// </summary>
 public void clearOptionsBox()
 {
     if (optionsBox != null)
     {
         optionsBox.clear();
         optionsBox = null;
     }
 }
コード例 #6
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;
 }