火星龙

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

DispelFrames插件分析

功能:Shows new frames for dispellable buffs for target and focus, and a bright border around default buff frames.

使用了Ace3库

分析:

1、xml文件定义了两个框体:DispelFrames_TargetFrame和DispelFrames_FocusFrame,这两个框体设置了同一个OnUpdate函数:DispelFrames_OnUpdate

2、DispelFrames_OnUpdate函数主要用于控制显示性能,也就是刷框体内容的时间间隔,然后调用函数DispelFrames_UpdateAuras做具体功能

3、DispelFrames_UpdateAuras里,使用了WOW API函数UnitBuff ,用它可以枚举出指定单位的所有buffs,一次返回一个buff。返回名字、图标、时间、法术ID等等信息,

其中返回的 isStealable数据表明了该buff是否可以被偷取(驱散)

 

posted on 2014-12-22 14:38  火星龙  阅读(359)  评论(0)    收藏  举报