示例#1
0
 private void TraitsList_MouseHover(object sender, EventArgs e)
 {
     try
     {
         TraitsList.SelectedIndex = TraitsList.IndexFromPoint(TraitsList.PointToClient(Cursor.Position));
         TraitsListPopUp.SetToolTip(TraitsList, TraitsList.SelectedItem.ToString());
     }
     catch { TraitsListPopUp.SetToolTip(TraitsList, ""); }
 }
示例#2
0
        private void ChallengeRatingDropDown_MouseHover(object sender, EventArgs e)
        {
            string output = "CR: " + currentCR.CR + Environment.NewLine;

            output += "AC: " + currentCR.ArmorClass + Environment.NewLine;
            output += "Attack Bonus: " + currentCR.AttackBonus + Environment.NewLine;
            output += "Save DC: " + currentCR.profBonus + Environment.NewLine;
            output += "Low HP: " + currentCR.LowHP + "  High HP: " + currentCR.HighHP + Environment.NewLine;
            TraitsListPopUp.SetToolTip(ChallengeRatingDropDown, output);
        }