Пример #1
0
        public void DrawBuffToolTip(TipImage tipData)
        {
            MemBaseBuff[] memBasebuffInfos = new MemBaseBuff[buffDict.Count];
            buffDict.Values.CopyTo(memBasebuffInfos, 0);
            foreach (MemBaseBuff buffdata in memBasebuffInfos)
            {
                Buff buff = buffdata.BuffInfo;
                string tp = "";
                if (buff.BuffConfig.Type[1] == 's')
                    tp = string.Format("{0}(剩余{1:0.0}回合)", buff.BuffConfig.Name, buffdata.TimeLeft);
                else if (buff.BuffConfig.Type[1] == 'a')
                    tp = string.Format("{0}({1})", buff.BuffConfig.Name, buff.Descript);

                tipData.AddImageNewLine(BuffBook.GetBuffImage(buffdata.Id, 0));

                tipData.AddText(tp, BuffBook.GetBuffColor(buffdata.Id));
            }
        }