Exemple #1
0
 /// <summary>
 /// 重新设置技能动画
 /// </summary>
 /// <param name="fileName">技能动画图像文件</param>
 public void ResetFlash(string fileName)
 {
     base.FaceIndex = MotaImage.GetFaceIndex(fileName, GameIni.SkillFrameSize);
 }
Exemple #2
0
        /// <summary>
        /// 创建动态元素实例
        /// </summary>
        /// <param name="repeated">元素图像是否重复播放</param>
        /// <param name="interval">每帧的部分间隔</param>
        /// <param name="fileName">图像文件地址</param>
        /// <param name="unitSize">图像分隔的单位尺寸</param>
        public DynamicElement(bool repeated, int interval, string fileName, Size unitSize)
        {
            FaceIndex = MotaImage.GetFaceIndex(fileName, unitSize);

            Initialize(repeated, interval);
        }