Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(45 Kb)
Download
Updated: 11-07-10 03:21 PM
Patch for:
Ion.
Pictures
File Info
Updated:11-07-10 03:21 PM
Created:06-13-10 08:18 PM
Downloads:1,479
Favorites:4
MD5:
Macaroon: AutoHide - Show on ModKey
Version: 40101
by: Dwargh [More]
This is a package with tampered files for Macaroon.
Updated for Macaroon v:40000.1.11
No further updates will be made


I made this change to how AutoHide works on bars with alt/ctrl/shift states.
So instead of needing MouseOver to show, the bar with either modkey-state
can be set by option to show on ModKey press.

You can do it by the GUI or by command.

Install by replacing your old files of the same name.(backup em for your own safety!)

This was a feature request by potatoes from the comments section for Macaroon main addon.


Gimme Your thoughts.

Ideas:
I thought of making it show on reaction and combat as well.
That way one could have something in the normal state of such a bar and have it to autohide in normal state but always show when reaction is true.
Updated for Macaroon version 40000.1.11
No new stuff added except marking of what code I've added to the files.
So that if one wants to update it for coming versions of Macaroon they can.
Search word to find all edits and additions: "Autohide:ModKey"
Archived Files (1)
File Name
Version
Size
Author
Date
30301
73kB
Dwargh
06-13-10 08:18 PM


Post A Reply Comment Options
Unread 03-11-11, 04:29 AM  
Dwargh
A Theradrim Guardian
 
Dwargh's Avatar
AddOn Author - Click to view AddOns

Forum posts: 64
File comments: 660
Uploads: 2
Originally posted by Crissa
Has this been added to main-trunk of Macaroon yet?

-Crissa
Nope, It has not. It was supposed to be after Maul changed the way alpha and autohide functions worked. As Maul has gone silent for a long while like last year, hope he's OK, I just had the thought to perhaps update it sgain.
I am still using the code myself so I basicaly need to write the code anyways, and as such I do have it at the ready.
Even though You can now basically just copy paste the parts of code yourselves fom an old version.
Dwargh is offline Report comment to moderator  
Reply With Quote
Unread 02-25-11, 10:59 PM  
Crissa
A Flamescale Wyrmkin
 
Crissa's Avatar

Forum posts: 136
File comments: 17
Uploads: 0
Has this been added to main-trunk of Macaroon yet?

-Crissa
Crissa is offline Report comment to moderator  
Reply With Quote
Unread 11-29-10, 04:51 PM  
Dwargh
A Theradrim Guardian
 
Dwargh's Avatar
AddOn Author - Click to view AddOns

Forum posts: 64
File comments: 660
Uploads: 2
Right, I found it.

When adding the local table autoHide_ModKeyIndex to the list in Macaroon_Bars.lua line 14.

I forgot to add the actual table at the end.

replace the line with the following and it should sort itself out


Code:
local autoHideIndex, alphaupIndex, autoHide_ModKeyIndex, anchorIndex, dockIndex = {}, {}, {}, {}, {}
Dwargh is offline Report comment to moderator  
Reply With Quote
Unread 11-23-10, 11:08 AM  
Dwargh
A Theradrim Guardian
 
Dwargh's Avatar
AddOn Author - Click to view AddOns

Forum posts: 64
File comments: 660
Uploads: 2
Re: Not sure if from regular Mac or from adding Autohide

Originally posted by kittykatmax
I think this error was caused by adding the Autohide files, thanks.

--------


1x Macaroon-40000.1.11\Macaroon_Bars.lua:2938: attempt to index upvalue 'dockIndex' (a nil value)
<string>:"*:OnEvent":4: in function <[string "*:OnEvent"]:1>

Locals:
self = MacaroonButtonStorage {
0 = <userdata>
ButtonBorder = MacaroonButtonStorageButtonBorder {}
parent = "Macaroon"
handler = MacaroonButtonStorage {}
btnType = "MacaroonButton"
homestate = <table> {}
lock = <unnamed> {}
okay = <function> @ Interface\FrameXML\InterfaceOptionsFrame.lua:614:
hasAction = "Interface\Buttons\UI-Quickslot2"
OptionsBorder = MacaroonButtonStorageOptionsBorder {}
refresh = <function> @ Interface\FrameXML\InterfaceOptionsFrame.lua:617:
hidden = true
noAction = "Interface\Buttons\UI-Quickslot"
config = <table> {}
name = "Stored Buttons"
text = <unnamed> {}
cancel = <function> @ Interface\FrameXML\InterfaceOptionsFrame.lua:615:
default = <function> @ Interface\FrameXML\InterfaceOptionsFrame.lua:616:
}
event = "PLAYER_LOGIN"

---
thanks, I thought I always got this error from original Macaroon but might be my alteration to it. Didn't even think of it. I'll check it out but wont update this one no more. I'll wait till Maul gets the reconfiguration for autohide and alpha change done and then have it implemented in the original.
Dwargh is offline Report comment to moderator  
Reply With Quote
Unread 11-14-10, 12:05 AM  
kittykatmax
A Deviate Faerie Dragon
 
kittykatmax's Avatar

Forum posts: 16
File comments: 230
Uploads: 0
Not sure if from regular Mac or from adding Autohide

I think this error was caused by adding the Autohide files, thanks.

--------


1x Macaroon-40000.1.11\Macaroon_Bars.lua:2938: attempt to index upvalue 'dockIndex' (a nil value)
<string>:"*:OnEvent":4: in function <[string "*:OnEvent"]:1>

Locals:
self = MacaroonButtonStorage {
0 = <userdata>
ButtonBorder = MacaroonButtonStorageButtonBorder {}
parent = "Macaroon"
handler = MacaroonButtonStorage {}
btnType = "MacaroonButton"
homestate = <table> {}
lock = <unnamed> {}
okay = <function> @ Interface\FrameXML\InterfaceOptionsFrame.lua:614:
hasAction = "Interface\Buttons\UI-Quickslot2"
OptionsBorder = MacaroonButtonStorageOptionsBorder {}
refresh = <function> @ Interface\FrameXML\InterfaceOptionsFrame.lua:617:
hidden = true
noAction = "Interface\Buttons\UI-Quickslot"
config = <table> {}
name = "Stored Buttons"
text = <unnamed> {}
cancel = <function> @ Interface\FrameXML\InterfaceOptionsFrame.lua:615:
default = <function> @ Interface\FrameXML\InterfaceOptionsFrame.lua:616:
}
event = "PLAYER_LOGIN"

---
kittykatmax is offline Report comment to moderator  
Reply With Quote
Unread 11-13-10, 11:02 PM  
kittykatmax
A Deviate Faerie Dragon
 
kittykatmax's Avatar

Forum posts: 16
File comments: 230
Uploads: 0
Check out Screencast-O-Matic web site if you ever DO want to record tutorials. It records all or part of your screen and audio from a mic.

It's free, easy to use and provides free hosting of the video (can also send to YouTube or save to a file). Had to use it for a class assignment this past week and it rocks.

[quote]Originally posted by Dwargh
[b][color="RoyalBlue"]Sorry, I don't have any recording addon to make a video.
kittykatmax is offline Report comment to moderator  
Reply With Quote
Unread 10-19-10, 03:42 PM  
Dwargh
A Theradrim Guardian
 
Dwargh's Avatar
AddOn Author - Click to view AddOns

Forum posts: 64
File comments: 660
Uploads: 2
Ok, perhaps I was a tad early on saying it's not needed any more. But soon it won't
Dwargh is offline Report comment to moderator  
Reply With Quote
Unread 09-14-10, 09:51 AM  
Dwargh
A Theradrim Guardian
 
Dwargh's Avatar
AddOn Author - Click to view AddOns

Forum posts: 64
File comments: 660
Uploads: 2
Originally posted by Tweeker
Anyway you can make a video for how to do this?
I want to click a button and when i do, have more buttons popup that were previously hidden

Sorry, I don't have any recording addon to make a video.
But to take advantage of this alternation of Macaroons auto hide function.
You just have your bar, set it to autohide and set it to one or more of the mod key preset states in the list of bar editor. Then you need to exit bar editor and go back to it to be able to check the ":ModKey" check box which will make the bar show when you press your mod key.

to make a macaroon button unhide a hidden bar I think you can misuse the mac command /mac hidden
with using the number of the bar you want to unhide after the command.
I know I did try that way back when.. but I'm not completely sure I got it to work or not as it was for another user and not myself.


Just reinstalled macaroon and all extras and this, and I'm noticing some glitches with this modification. I'll look into it asap.

Actually I think I was satisfied with the normal state showing on any modkey pressed. So no glitches But if requested I'll change it so mouseover is needed for the normal state. Shouldn't be too hard.
Last edited by Dwargh : 09-14-10 at 04:34 PM.
Dwargh is offline Report comment to moderator  
Reply With Quote
Unread 09-13-10, 11:08 AM  
Tweeker
A Cobalt Mageweaver
 
Tweeker's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 209
File comments: 133
Uploads: 5
Originally posted by Dwargh
I know the menu gui checkbutton doesn't really work as intended
you have to first set your bar to Autohide and at least one of the modkey-states. select dismiss and then get the menu up again to check the new box.

I'll get around to fix that sometime in the future.



Oh yeah, if you've used my Horizontal displacement fix it is now updated to work with this one.
Anyway you can make a video for how to do this?
I want to click a button and when i do, have more buttons popup that were previously hidden
__________________



Tweeker is offline Report comment to moderator  
Reply With Quote
Unread 06-13-10, 09:00 PM  
Dwargh
A Theradrim Guardian
 
Dwargh's Avatar
AddOn Author - Click to view AddOns

Forum posts: 64
File comments: 660
Uploads: 2
I know the menu gui checkbutton doesn't really work as intended
you have to first set your bar to Autohide and at least one of the modkey-states. select dismiss and then get the menu up again to check the new box.

I'll get around to fix that sometime in the future.



Oh yeah, if you've used my Horizontal displacement fix it is now updated to work with this one.
Last edited by Dwargh : 06-13-10 at 09:15 PM.
Dwargh is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: