Modifying InteruptBar's display behavior
Hello, I'm new to .lua editing and was wondering if I could modify the behavior of InteruptBar by only showing the frame in PVP (Arenas, Battlegrounds, and possibly when flagged for PVP), similar to how Spy has the options to only show the frame in Arenas & BGs.
Is it possible for me to hard-code it into the .lua file? Can anyone help me out? Thanks :) |
Lua Code:
Not pro at coding but it's something like that |
I tried adding that to .lua in many forms, and I can't seem to get it right. Anymore help? :(
|
Just an idea:
Code:
local f = ? -- FrameReference not sure of the name |
I'll test out that second code today. Hopefully it works this time x)
& btw thanks for the explanations of how each line works :) it will be easier for me to mess around with it now |
InterruptBar does not give its frame a global name, so you cannot (easily) access it from outside of the addon's own Lua file. The following simple modification to InterruptBar.lua should work.
Find this line, near the end of the file: Code:
["COMBAT_LOG_EVENT_UNFILTERED"] = function(self,...) InterruptBar_COMBAT_LOG_EVENT_UNFILTERED(...) end, Code:
["ZONE_CHANGED_NEW_AREA"] = function(self) |
Quote:
I typed "/ib hidden" to show the frame, and positioned it where I wanted it, then I hid it again by typing "/ib hidden". When I tested it, the frame was not showing, but the spell icons appear when they are being used! This actually turned out better than I ever wanted! THANKS!!! |
All times are GMT -6. The time now is 11:38 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI