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是否可以被偷取(驱散)

浙公网安备 33010602011771号