Add support for custom minimap buttons (next version 1.5)
Use the command: /bh
Feedback about anything is welcomed.
Change Log - ButtonHide
Changes 1.4.1:
Fixed buttons not saving settings on reload.
Changes 1.4:
Fixed Mail, Meeting Stone, and Voice buttons
Changes 1.3:
Fixed Battleground button
Major cleanup of code
Changes 1.2:
Added Battleground button
Changes 1.1:
Added welcome message (only displays once)
Changes 1.0:
Ordered the options (a-z)
Removed 2 unneeded libs
Little code cleanup
Changes in 0.9:
Fixed options
Mail, Voice, and MeetingStone options should now work correctly
Changes in 0.8:
Hiding chat buttons will now not only hide ChatFrame1 buttons.
Changes in 0.7:
Removed the "hide all chat / minimap buttons at once" options, just unnecessary to have.
Cleaned code up a little.
Changes in 0.6:
Fixed up options a little
Fixed /bh and /buttonhide commands to open to InterfaceOptionsFrame
ReAdded MeetingStone and Voice buttons
Added a "Hide Chat Buttons" and "Hide Minimap Buttons" option (hides all chat buttons / all minimap buttons, dont use if you dont want to hide all buttons)
Should now use less memory
Changes in 0.5:
Fixed up options a little
Added /bh and /buttonhide commands will now open a ace3 GUI (alternative to interface options)
Removed the "... Loaded" spam on startup
Removed Voice and MeetingStone buttons
Changes in 0.4:
Using Ace3
Uses Blizzard Option Panel
Rework of all code
Changes in 0.3:
ReAdded to show Location Bar Border, NorthTag, and ButtonToggle
Added mousewheel support for the chat frames
Added ChatFrameUpButton, ChatFrameDownButton, ChatFrameBottomButton, and ChatFrameMenuButton to hide.
Changes in 0.2:
Added mousewheel support for zoom in/out functions
Added NorthTag, ButtonToggle, and Location Bar Border to hide
Originally posted by Kyron I don't get it tbh, i just did a fresh install and tried with both 1.3 and 1.4, with or without savedvariable, and, mail/bg/tracking keep reappearing, even if i don't have any other addon affecting those, i've got to say i don't understand.
I install the addon, log in, hide them, they're hidden, i /rl, they reappear...
Missing one needed line of code in OnEnable(). Now its really fixed in version 1.4.1.
I don't get it tbh, i just did a fresh install and tried with both 1.3 and 1.4, with or without savedvariable, and, mail/bg/tracking keep reappearing, even if i don't have any other addon affecting those, i've got to say i don't understand.
I install the addon, log in, hide them, they're hidden, i /rl, they reappear...
Originally posted by Kyron Actually i've just noticed that the same issue happen withthe mail icon, when a new mail arrive it's being shown, same as how it was with battleground which is working perfectly now ofc.
Actually i've just noticed that the same issue happen withthe mail icon, when a new mail arrive it's being shown, same as how it was with battleground which is working perfectly now ofc.
Originally posted by Kyron
[b]That was damn fast thanks a lot, now something i'd like to ask.
How could i manually add a "non blizzard" button, could you provide a template to add to the .lua myself.
I was thinking of a "custom" section where it would detect the minimap buttons and could hide/show them if toggled. But for now I could probably do a template.
Quote:
Edit: The battleground doesn't seems to work quite well, it does if you enable it once you're in a queue, it's correctly being hidden. But if you're not in a queue then join one, the button pop on the minimap and is not being hidden unless u disable/enable it again in /BH
Yeah i see the problem, i'll work on the fix later on.
That was damn fast thanks a lot, now something i'd like to ask.
How could i manually add a "non blizzard" button, could you provide a template to add to the .lua myself.
i'm very annoyed, My minimap has only (now that u fixed the bg button) one button that i can't get rid off, and i don't feel like installing Visor just to hide one button. it's from the ace addon BankStack.
Here's a screenshot (ignore the bugsack button) usually hidden but i'm toying with my oUF layout so i need to see the errors.
Edit: The battleground doesn't seems to work quite well, it does if you enable it once you're in a queue, it's correctly being hidden. But if you're not in a queue then join one, the button pop on the minimap and is not being hidden unless u disable/enable it again in /BH
Edit2: Ignore the Bankstack issue, removed fubar from the toc, voilą, no more button, only slack commands left
Only issue left is the BG button.
Had you considered adding functionality for custom frames? That way, you could roll this and the Hide Blizzard mod into one.
I'm not sure what the most efficient way would be though to poll a frame/button/thing to see what events it has registered on it. I'm not sure if there is an efficient way to do that, unfortunately. If there is though, that'd make a great mod. One that'd check a frame for events, could hide/show it, and register the events necessary.