View Single Post
04/26/14, 06:15 AM   #2
Fathis Ules
Thief Guild Master
 
Fathis Ules's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 42
what about hooking it directly

Lua Code:
  1. local function newSetHidden(...)
  2.     --origZO_PlayerAttributeHealthBarLeftGloss(...)
  3. end
  4. local origZO_PlayerAttributeHealthBarLeftGloss.SetHidden = ZO_PlayerAttributeHealthBarLeftGloss.SetHidden
  5. local origZO_PlayerAttributeHealthBarRightGloss.SetHidden = ZO_PlayerAttributeHealthBarLeftGloss.SetHidden
  6. ZO_PlayerAttributeHealthBarLeftGloss.SetHidden = newSetHidden
  7. ZO_PlayerAttributeHealthBarRightGloss.SetHidden = newSetHidden

that's a sample of course but that's how you can change the SetHidden behaviour after you changed it once

Last edited by Fathis Ules : 04/26/14 at 06:17 AM.
  Reply With Quote