Bazooka

50 - Disable Bazooka options when right clicking on bars

I have a minor issue with Bazooka, my top bar is set with fade in combat and fade out of combat so when I'm out of combat and I right click on the bar it opens the options and I would like to have an option to disable this behaviour completely, in fact I think you should remove it completely. :)

I can't disable the mouse out of combat because then whenever I'll hover the bar it won't show up, so as a quick fix I just disabled it completely by comment it out in the code, like so:

Bar.OnMouseDown = function(frame, button, ...)
    --[[local self = frame.bzkBar
    if button == 'RightButton' and not IsAltKeyDown() then
        Bazooka:openConfigDialog()
        if Bazooka.barOpts then
            Bazooka:openConfigDialog(Bazooka.barOpts, Bazooka:getSubAppName("bars"), self:getOptionsName())
        end
    end]]
end

I don't know whether you make additional calls to it and I didn't have time to dig into this so I just commented the body of the function.

User When Change
Lynxium Aug 21, 2016 at 22:43 UTC Changed description:
  I have a minor issue with Bazooka, my top bar is set with fade in combat and fade out of combat so when I'm out of combat and I right click on the bar it opens the options and I would like to have an option to disable this behaviour completely, in fact I think you should remove it completely. :)

  I can't disable the mouse out of combat because then whenever I'll hover the bar it won't show up, so as a quick fix I just disabled it completely by comment it out in the code, like so:
- ```
+
+
- Bar.OnMouseDown = function(frame, button, ...)
+ 	Bar.OnMouseDown = function(frame, button, ...)
-     --[[local self = frame.bzkBar
+ 		--[[local self = frame.bzkBar
-     if button == 'RightButton' and not IsAltKeyDown() then
+ 		if button == 'RightButton' and not IsAltKeyDown() then
-         Bazooka:openConfigDialog()
+ 			Bazooka:openConfigDialog()
-         if Bazooka.barOpts then
+ 			if Bazooka.barOpts then
-             Bazooka:openConfigDialog(Bazooka.barOpts, Bazooka:getSubAppName("bars"), self:getOptionsName())
+ 				Bazooka:openConfigDialog(Bazooka.barOpts, Bazooka:getSubAppName("bars"), self:getOptionsName())
-         end
-     end]]
+ 			end
+ 		end]]
- end
+ 	end
- ```
+
+
  I don't know whether you make additional calls to it and I didn't have time to dig into this so I just commented the body of the function.
Lynxium Aug 21, 2016 at 22:42 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

Facts

Last updated
Aug 21, 2016
Reported
Aug 21, 2016
Status
New - Issue has not had initial review yet.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees