Example with a macro called "Inv" and its custom description.
Screenshot of the GUI with explicative text
LayMacroTooltip
This small addon allows the user to customize the tooltips displayed when mouseovering macro icons in an action bar. Without this addon, the base UI would only show the name of the macro.
You can install it by extracting the folder to your addon folder, as any other addon.
Tooltips for character-specific macros and for account macros are now saved separately. The new behavior can be summed up by this example:
- You have 3 characters: Alice, Bob and Charlie,
- You have a shared macro called "Mount" that Alice uses,
- Bob and Charlie both use a custom "Mount" macro, not the shared one.
What happens is that Alice will see the macro tooltip set for the shared version. Bob will see the macro tooltip for his personal Mount macro, and so will Charlie.
Known issues:
- 2 macros with the same name in the same category (character/account) will have the same tooltip
Please post about any bug you encounter and I will try to fix them as soon as I can. I am too lazy to spend hours testing my addons, so there are sometimes minor bugs in odd situations that I do not know about.
Change log:
1.4b:
- bug fix: an already customized tooltip no longer sometimes disappears from the editbox when you click it to start editing it
- another bug fix: renaming a macro no longer generates a lua error
1.4:
- tooltips for character-specific macros are stored per character, independently from account-wide macros
- unused tooltips are now deleted
- changing a macro's name will not make the user lose the tooltip associated to the macro
- corrected a bug in v1.3 where the macro tooltips would not show correctly until the macro window had been opened at least once after each login or /rl
1.3:
- fixed for the 3.2 client of the game
- some of the code is only executed when the macro frame is opened for the first time
1.2:
- included a GUI linked to the build-in macro frame
- removed the "/run" commands
- updated the .toc so that LayMacroTooltip isn't shown as "out of date" anymore
- restructured the whole code
1.1:
- minor change allowing a better display of long texts (automatic text wrap)
Sorry to post but this is currently giving errors:
Message: Interface\AddOns\LayMacroTooltip\Core.lua:107: attempt to index field 'EditBox' (a nil value)
Time: 11/18/09 14:58:22
Count: 1
Stack: [string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:18: in function <[string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:4>
[C]: ?
Interface\AddOns\LayMacroTooltip\Core.lua:107: in function `ExitConfirmation'
Interface\AddOns\LayMacroTooltip\Core.lua:322: in function <Interface\AddOns\LayMacroTooltip\Core.lua:320>
[C]: in function `SetTexture'
...terface\AddOns\Blizzard_MacroUI\Blizzard_MacroUI.lua:89: in function <...terface\AddOns\Blizzard_MacroUI\Blizzard_MacroUI.lua:57>
[C]: in function `MacroFrame_Update'
...terface\AddOns\Blizzard_MacroUI\Blizzard_MacroUI.lua:22: in function <...terface\AddOns\Blizzard_MacroUI\Blizzard_MacroUI.lua:21>
[C]: ?
[C]: in function `Show'
Interface\FrameXML\UIParent.lua:1577: in function `SetUIPanel'
Interface\FrameXML\UIParent.lua:1422: in function `ShowUIPanel'
Interface\FrameXML\UIParent.lua:1315: in function <Interface\FrameXML\UIParent.lua:1311>
[C]: in function `SetAttribute'
Interface\FrameXML\UIParent.lua:1944: in function `ShowUIPanel'
...terface\AddOns\Blizzard_MacroUI\Blizzard_MacroUI.lua:12: in function `MacroFrame_Show'
Interface\FrameXML\UIParent.lua:339: in function `ShowMacroFrame'
Interface\FrameXML\ChatFrame.lua:1958: in function `?'
Interface\FrameXML\ChatFrame.lua:3508: in function `ChatEdit_ParseText'
Interface\FrameXML\ChatFrame.lua:3177: in function `ChatEdit_SendText'
Interface\FrameXML\ChatFrame.lua:3201: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>
Locals: name = nil
texture = nil
body = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'EditBox' (a nil value)"
glob = <table> {
LastMacroID = 0
Name = "LayMacroTooltip"
TextIsHelp = 2
Lock = false
Debug = 0
Version = "1.2"
}
fram = <table> {
}
func = <table> {
AddTooltip = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:144
RemoveTooltip = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:154
Update = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:123
RemoveAllButtonClick = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:396
ListMacros = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:168
EditBoxEscapePressed = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:386
ExitButtonClick = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:402
EditBoxOnFocus = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:405
LoadGUI = <function> defined @Interface\AddOns\LayMacroTooltip\GUI.lua:45
RemoveAll = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:160
AddButtonClick = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:399
RemoveButtonClick = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:389
About = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:237
ApplyPostHooksList = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:332
ExitConfirmation = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:105
InitializeAddon = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:354
Print = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:87
EditBoxTextChanged = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:378
PurgeUnused = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:187
SavedTableForMacroID = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:79
ConfirmNameChange = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:206
CheckLock = <function> defined @Interface\AddOns\LayMacroTooltip\Core.lua:97
}
__________________
The end is never really the end, its the start of something new...
I'm sorry I've been so long to reply guys, I've just been very busy lately. I will take some time to fix that and make it work again as soon as I can next week.
[23:43:12] Interface\AddOns\LayMacroTooltip\Core.lua:120: attempt to index field 'SelectedMacroIcon' (a nil value)
[C]: ?
Interface\AddOns\LayMacroTooltip\Core.lua:120: in function `Update'
Interface\AddOns\LayMacroTooltip\Core.lua:219: in function <Interface\AddOns\LayMacroTooltip\Core.lua:218>
[C]: in function `MacroFrame_Update'
...terface\AddOns\Blizzard_MacroUI\Blizzard_MacroUI.lua:22: in function <...terface\AddOns\Blizzard_MacroUI\Blizzard_MacroUI.lua:21>
[C]: ?
[C]: in function `Show'
Interface\FrameXML\UIParent.lua:1577: in function `SetUIPanel'
Interface\FrameXML\UIParent.lua:1422: in function `ShowUIPanel'
Interface\FrameXML\UIParent.lua:1315: in function <Interface\FrameXML\UIParent.lua:1311>
[C]: in function `SetAttribute'
Interface\FrameXML\UIParent.lua:1944: in function `ShowUIPanel'
...terface\AddOns\Blizzard_MacroUI\Blizzard_MacroUI.lua:12: in function `MacroFrame_Show'
Interface\FrameXML\UIParent.lua:339: in function `ShowMacroFrame'
Interface\FrameXML\ChatFrame.lua:1958: in function `?'
Interface\FrameXML\ChatFrame.lua:3508: in function `ChatEdit_ParseText'
Interface\FrameXML\ChatFrame.lua:3177: in function `ChatEdit_SendText'
Interface\FrameXML\ChatFrame.lua:2275: in function <Interface\FrameXML\ChatFrame.lua:2268>
[C]: in function `RunMacroText'
Interface\FrameXML\SecureTemplates.lua:378: in function `handler'
Interface\FrameXML\SecureTemplates.lua:529: in function <Interface\FrameXML\SecureTemplates.lua:478>
And the addon button for accessing the textbox (where you type the macro description) no longer shows up in the macro window.
Message: Interface\AddOns\LayMacroTooltip\Core.lua:323: attempt to call field 'LoadGUI' (a nil value)
Time: 10/24/09 13:27:15
Count: 1
Stack: [string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:22: in function <[string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:4>
[C]: in function `LoadGUI'
Interface\AddOns\LayMacroTooltip\Core.lua:323: in function <Interface\AddOns\LayMacroTooltip\Core.lua:319>
[C]: in function `LoadAddOn'
Interface\AddOns\LayMacroTooltip\Core.lua:328: in main chunk
Locals: self = <unnamed> {
0 = <userdata>
}
event = "ADDON_LOADED"
arg1 = "Blizzard_MacroUI"
(*temporary) = nil
(*temporary) = "attempt to call field 'LoadGUI' (a nil value)"
Code:
Message: Interface\AddOns\LayMacroTooltip\Core.lua:120: attempt to index field 'SelectedMacroIcon' (a nil value)
Time: 10/24/09 13:34:09
Count: 1
Stack: [string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:18: in function <[string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:4>
(tail call): ?
[C]: ?
Interface\AddOns\LayMacroTooltip\Core.lua:120: in function `Update'
Interface\AddOns\LayMacroTooltip\Core.lua:219: in function <Interface\AddOns\LayMacroTooltip\Core.lua:218>
[C]: in function `MacroFrame_Update'
...terface\AddOns\Blizzard_MacroUI\Blizzard_MacroUI.lua:22: in function <...terface\AddOns\Blizzard_MacroUI\Blizzard_MacroUI.lua:21>
[C]: ?
[C]: in function `Show'
Interface\FrameXML\UIParent.lua:1577: in function `SetUIPanel'
Interface\FrameXML\UIParent.lua:1422: in function `ShowUIPanel'
Interface\FrameXML\UIParent.lua:1315: in function <Interface\FrameXML\UIParent.lua:1311>
[C]: in function `SetAttribute'
Interface\FrameXML\UIParent.lua:1944: in function <Interface\FrameXML\UIParent.lua:1932>
[C]: in function `ShowUIPanel'
...terface\AddOns\Blizzard_MacroUI\Blizzard_MacroUI.lua:12: in function `MacroFrame_Show'
Interface\FrameXML\UIParent.lua:339: in function `ShowMacroFrame'
[string "*:OnClick"]:3: in function <[string "*:OnClick"]:1>
Locals:
As the next poster, I can't see the tooltip button. Hope this helps.
Message: Interface\AddOns\LayMacroTooltip\Core.lua:323: attempt to call field 'LoadGUI' (a nil value)
Time: 10/14/09 20:25:27
Count: 1
Stack: [string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:18: in function <[string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:4>
[C]: in function `LoadGUI'
Interface\AddOns\LayMacroTooltip\Core.lua:323: in function <Interface\AddOns\LayMacroTooltip\Core.lua:319>
[C]: in function `LoadAddOn'
Interface\AddOns\LayMacroTooltip\Core.lua:328: in main chunk
Locals: self = <unnamed> {
0 = <userdata>
}
event = "ADDON_LOADED"
arg1 = "Blizzard_MacroUI"
(*temporary) = nil
(*temporary) = "attempt to call field 'LoadGUI' (a nil value)"
Thank you for the bug report. I haven't played much with the per-character saved settings much, I will look into it as soon as possible and try to fix that.
Wow would never had noticed this addon if it wasn't recently updated.. Love it!
I am noticing one error, and I can duplicate it almost all the time (Though I was stupid and keep forgetting to capture the entire text).
Basically I have a bunch of alts that I use for bank purposes, they run ZERO mods (all disabled).
if I log onto any of those first.. then onto my main char.. I get an LUA error from Laymacrotext saying something about "failed to load command LoadGUI" (I'll get the exact text again later if needed).
It does not happen if the character with this addon enabled is the first char to play.. nor to any other chars if they are enabled.. it only seems to come up if I load a character who does NOT have it enabled, and THEN load a a character with it enabled.. probably an easy fix.. but though you should know.
EDIT:
HEre's the exact error:
Quote:
Message: Interface\AddOns\LayMacroTooltip\Core.lua:423: attempt to call field 'LoadGUI' (a nil value)
Time: 09/24/09 22:30:08
Count: 1
Stack: [string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:18: in function <[string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:4>
(tail call): ?
[C]: in function `LoadGUI'
Interface\AddOns\LayMacroTooltip\Core.lua:423: in function <Interface\AddOns\LayMacroTooltip\Core.lua:419>
[C]: in function `LoadAddOn'
Interface\AddOns\LayMacroTooltip\Core.lua:428: in main chunk
Originally posted by slice3 it's says incompatible for me, can you update it for curent wow version
I've been working on a GUI for it a long time ago, but didn't complete it, so I'll just finish the GUI, optimize the currently ugly code, and update the interface version by the way. It should be online by the middle of the week if everything goes well.
You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.
*Clicking the donate button above will take you to PayPal.com
*Clicking the donate button above will take you to Pledgie.com