Mercurial > wow > reaction
diff ActionButton.lua @ 295:0cb6a9944497 1.1 alpha 11 (5.04 bandaid)
Quick hacks for 5.04
- disable hiding VehicleMenuBar frame, whose name changed
- GetMultiCastBarOffset() -> GetMultiCastBarIndex()... cleanup before totem bar support is purged
- Remove totem bar
- fix demon form, vehicle buttons, overridebar buttons (cross fingers)
- change possess/vehicle order priority
author | Flick |
---|---|
date | Tue, 11 Sep 2012 16:50:37 -0700 |
parents | 276165a0e860 |
children | f7a5676c9517 |
line wrap: on
line diff
--- a/ActionButton.lua Fri Aug 05 16:27:45 2011 -0700 +++ b/ActionButton.lua Tue Sep 11 16:50:37 2012 -0700 @@ -46,8 +46,9 @@ (doMindControl and mcVehicleState == "mc") then local idx = self:GetAttribute("bar-idx") local maxN = (doVehicle and mcVehicleState == "vehicle") and 7 or 12 + local pageIndex = (doVehicle and mcVehicleState == "vehicle") and 12 or 14 if idx and idx <= maxN then - action = 120 + idx + action = 12*(pageIndex-1) + idx else action = 0 end @@ -642,7 +643,7 @@ ]]) f:SetAttribute("_onstate-mc", _onstate_mc) - RegisterStateDriver(f, "mc", "[vehicleui] vehicle; [bonusbar:5] mc; none") + RegisterStateDriver(f, "mc", "[vehicleui] vehicle; [overridebar] mc; none") f:SetAttribute("lockbuttons",config.lockButtons) f:SetAttribute("lockbuttonscombat",config.lockButtonsCombat)