示例#1
0
        private void toolTipTimer_Tick(object sender, EventArgs e)
        {
            toolTipTimer.Stop();
            toolTip = new ItemToolTipForm(this);

            HabProperties hpsItem = toolTipItem as HabProperties;

            switch (combineMode)
            {
            case CombineMode.Fast:
                List <HabProperties> hpsList = FindSameLookingComplexItem(hpsItem);
                if (hpsList.Count == 0)
                {
                    toolTip.showItemToolTip(hpsItem, false);
                }
                else
                {
                    toolTip.showComplexItemToolTip(hpsItem, GetGoldCost(hpsList[0]));
                }
                break;

            default:
                toolTip.showItemToolTip(hpsItem, false);
                break;
            }
        }
示例#2
0
 protected void CloseToolTip()
 {
     if (toolTip != null)
     {
         toolTip.Close();
         toolTip     = null;
         toolTipItem = null;
     }
 }
示例#3
0
        private void toolTipTimer_Tick(object sender, EventArgs e)
        {
            toolTipTimer.Stop();

            toolTip = new ItemToolTipForm(this);

            if (toolTipItem is HabProperties)
            {
                toolTip.showHeroToolTip(toolTipItem as HabProperties);
            }
        }