Mercurial > wow > reaction
diff VehicleExitButton.lua @ 279:5b9c0164a491
Fixed a number of problems with drag corners in config mode
- Fixed button resizing via dragging not updating until a reload
- Fixed pet/stance/vehicle buttons not always displaying in config mode
- Fixed error spam when making too many pet/bag buttons
author | Flick |
---|---|
date | Wed, 11 May 2011 16:19:17 -0700 |
parents | 4e325f1ea6e1 |
children | e337b39dc491 |
line wrap: on
line diff
--- a/VehicleExitButton.lua Wed May 11 11:27:36 2011 -0700 +++ b/VehicleExitButton.lua Wed May 11 16:19:17 2011 -0700 @@ -94,12 +94,12 @@ -- auto show/hide when on a vehicle local config = bar:GetConfig() local f = bar:GetFrame() - if config.withControls then + if config.withControls or ReAction:GetConfigMode() then if bar.vehicleExitStateRegistered then UnregisterStateDriver(f, "unitexists") bar.vehicleExitStateRegistered = false end - bar:RegisterUnitWatch("vehicle",true) + bar:RegisterUnitWatch("vehicle",not ReAction:GetConfigMode()) else bar:RegisterUnitWatch("vehicle",false) if not bar.vehicleExitStateRegistered then