BOSS战中的能量条移动.

PlayerPowerBarAlt:SetScale(0.9)
PlayerPowerBarAlt:SetMovable(true)
PlayerPowerBarAlt:SetUserPlaced(true)
PlayerPowerBarAlt:SetFrameStrata("HIGH")
PlayerPowerBarAlt:SetScript("OnMouseDown", function()
    if (IsAltKeyDown()) then
        PlayerPowerBarAlt:ClearAllPoints()
        PlayerPowerBarAlt:StartMoving()
    end
end)

PlayerPowerBarAlt:SetScript('OnMouseUp', function(self, button)
PlayerPowerBarAlt:StopMovingOrSizing()
end)

 

ALT + 鼠标 移动.

另骑士圣能条API : PaladinPowerBar

posted @ 2012-11-28 14:46  sakaras  阅读(625)  评论(0编辑  收藏  举报