View Single Post
05/26/14, 06:17 AM   #4
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Vuelhering View Post
I don't mind not hiding it... just curious if there's a known way to hook into it so I can call my own routines. (Doesn't have to be through LAM, I don't mind hooking into the base UI.)

Finally got the tooltip thing handled although I haven't been able to figure out how to read it.

The defaults button was one of those things left that's bugging me, though.

Thanks!
Check X4D Chat addon code, it seem that Wilson0x4d found a way how to do it.

Lua Code:
  1. ZO_PreHook("ZO_OptionsWindow_ChangePanels", function(panel)
  2.     if (panel == yourPanelId) then
  3.         ZO_OptionsWindowResetToDefaultButton:SetCallback(function()
  4.             --your code here
  5.         end)
  6.     end
  7. end)
  Reply With Quote