I am trying to hide the default texture over the XP and Reputation bars. I have the rep bar but for the life of me I cannot figure out what the XP bar texture is. I have scoured the blizzard frame xml file and tried to hide every frame and texture I could find.
Here is a screenshot of what I am trying to hide. It is the side borders of the bars on the XP bar that that make up each "bubble" of XP. You can see the reputation bar I ahve ready to go but the XP still has those damned textures.
I thought I would post here instead of making another thread. I am having taint issues with my little action bar addon with moving the bars/buttons:
MultiBarLeftButton1:SetPoint("LEFT", TalentMicroButton, "RIGHT", 0, -12)
MultiBarLeftButton5:SetPoint("LEFT", MultiBarLeftButton1, "RIGHT", 4, 0)
MultiBarLeftButton9:SetPoint("LEFT", MultiBarLeftButton5, "RIGHT", 4, 0)[/HTML]
[HTML]9/1 10:12:27.599 An action was blocked in combat because of taint from DejaBars - MainMenuBar:SetScale()
9/1 10:12:27.599 Interface\AddOns\DejaBars\DejaBars.lua:49
9/1 10:12:27.599 An action was blocked in combat because of taint from DejaBars - MainMenuBar:ClearAllPoints()
9/1 10:12:27.599 Interface\AddOns\DejaBars\DejaBars.lua:51
9/1 10:12:27.599 An action was blocked in combat because of taint from DejaBars - MainMenuBar:SetPoint()
9/1 10:12:27.599 Interface\AddOns\DejaBars\DejaBars.lua:52
etc for every element I move in the addon.
Do I need to call SecureActionButtonTemplate somewhere or use hooksecurefunc or how should I go about doing this? I am new to both wow addon programming and programming in general so help would be much appreciated.
That's now how hooksecurefunc works; you must specify (1) the name of the function you want to hook, and (2) the function you want to be run after every time the hooked function runs. It isn't a method for calling an arbitrary function once.
When are you calling the first chunk of code you posted? Preferrably, post the whole file it's in.
No. HookScript is what you use to have your script handler run after the original script handler. If you use it on a frame without an original script handler, it's not any different than SetScript. Both will cause your OnEvent script handler to run every time your frame receives an event -- including in combat.
Forget about hooking. Hooking is only used to modify the behavior of existing code that's not part of your addon. If you ever think you need to hook your own addon's functions/scripts, you're doing something wrong.