View Single Post
01-11-16, 09:21 AM   #4
Taudier
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 53
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

Last edited by Taudier : 01-11-16 at 09:34 AM.
  Reply With Quote