View Single Post
01-11-16, 09:52 AM   #5
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by Taudier View Post
you can 'WrapScript' the 'OnShow' & 'OnHide' vehicule ui. more reliable than [vehicleui].


Code:
for i=1, 6 do
	local button = _G["OverrideActionBarButton"..i]
	handler:WrapScript(button, "OnShow", your function)
	handler:WrapScript(button, "OnHide", your function)
end
or just the first button
What about vehicles without a button?
  Reply With Quote