Download
(4 Kb)
Download
Updated: 08/05/14 04:12 AM
Pictures
File Info
Compatibility:
Update 3 (1.3.3)
Updated:08/05/14 04:12 AM
Created:04/21/14 08:44 AM
Monthly downloads:22
Total downloads:11,367
Favorites:24
MD5:
Junkee  Popular! (More than 5000 hits)
Version: 0.9
by: Thenedus [More]

My subscription has run out, so I will not be able to update this addon anymore.
If anyone wants to take over development, please let me know (preferably via PM)


Junkee

Provides a keybinding to quickly mark an item as junk and an additional keybinding to delete an item.

Installation and Setup
  • Copy complete folder to
    %USERPROFILE%\Documents\Elder Scrolls Online\<megaserver>\AddOns
    where <megaserver> is "live" for North America and "liveeu" for Europe
    (or use Minion)
  • Go to Controls/User Interface Shortcuts/Junkee and bind a key to "Junk current item"
  • Optionally, also bind a key do "Delete current item"
## 0.9
- [MOD] Adjusted APIVersion to the current API
## 0.8
- [MOD] Adjusted APIVersion to the current one, added ZeniMax disclaimer
- [FIX] Pressing the key bound to delete in another view (e.g. map) destroyed the
helmet (Thanks Karmik)
## 0.7
- [FIX] Pressing either bound key in another view (e.g. map) junked/destroyed the
last item the mouse was over (Thanks McGuffin)
## 0.6
- [FIX] Inventory slots that were not present on login were missing the Junk action
- [FIX] Destroy action was missing completely
- [FIX] Actions were missing from bank
## 0.5 (Thanks Iyanga)
- [MOD] Plays sound when junking or unjunking an item
- [FIX] Adding the junk keybind is more robust, should fix the "unsecure code" error
## 0.4
- [MOD] Adjusted APIVersion to the current one.
## 0.3
- [NEW] Second action to delete an item.
- [MOD] Only show actions when they are bound to a key.
- [NEW] Localization for German and French.
## 0.2a
- [FIX] Error when interacting with a vendor (Thanks ThadOptimus)
## 0.2
- [MOD] Removed dependency on Wykkyd's Framework.
- [NEW] Toggle junk, i.e. unjunk a junked item.
- [NEW] Only display action for backpack and bank.
- [FIX] Renamed readme.txt to read.me (Thanks Tonyleila)
## 0.1
- Initial release with basic functionality.
Optional Files (0)


Archived Files (8)
File Name
Version
Size
Uploader
Date
0.8
4kB
Thenedus
07/15/14 08:34 PM
0.7
4kB
Thenedus
06/02/14 01:12 PM
0.6
3kB
Thenedus
05/31/14 04:56 AM
0.5
3kB
Thenedus
05/30/14 05:08 PM
0.4
4kB
Thenedus
05/23/14 04:06 PM
0.3
3kB
Thenedus
04/27/14 06:16 AM
0.2a
2kB
Thenedus
04/23/14 03:22 PM
0.1
2kB
Thenedus
04/21/14 08:44 AM


Post A Reply Comment Options
Unread 04/21/14, 10:40 AM  
Fing3rz

Forum posts: 11
File comments: 53
Uploads: 0
Talking YES!!!

I approve!
Report comment to moderator  
Reply With Quote
Unread 04/21/14, 01:58 PM  
Veideon

Forum posts: 0
File comments: 34
Uploads: 0
Awesome! You just read my thoughts!
Report comment to moderator  
Reply With Quote
Unread 04/21/14, 07:27 PM  
Tonyleila
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 288
File comments: 763
Uploads: 7
readme.txt

PLEASE NOTE:
don't put other txt files into addon folders if you need a readme file rename it to read.me or readme.rtf or .doc
Or it will cause bugs and show up as addon ingame in the addon manager!

Other then that thanks for the great addon, was one of my requests in forum

EDIT: Woud it be possible to revers the hotkey while inside the junk bag? (remove from junk bag)
Last edited by Tonyleila : 04/22/14 at 08:56 AM.
Report comment to moderator  
Reply With Quote
Unread 04/23/14, 01:30 PM  
Thenedus
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 22
Uploads: 3
Re: readme.txt

Originally Posted by Tonyleila
PLEASE NOTE:
don't put other txt files into addon folders if you need a readme file rename it to read.me or readme.rtf or .doc
Or it will cause bugs and show up as addon ingame in the addon manager!
Thanks for the hint. I was already wondering where that strange outdated "readme" addon came from.

I just uploaded version 0.2, which not only fixes this bug, but also unjunks junked items.
Report comment to moderator  
Reply With Quote
Unread 04/23/14, 02:50 PM  
ThadOptimus

Forum posts: 4
File comments: 66
Uploads: 0
Got this error when opening up a vendor to sell.

Last edited by ThadOptimus : 04/23/14 at 02:54 PM.
Report comment to moderator  
Reply With Quote
Unread 04/23/14, 03:24 PM  
Thenedus
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 22
Uploads: 3
Originally Posted by ThadOptimus
Got this error when opening up a vendor to sell.
Damn, one more thing to add to my release tests. Should be fixed with version 0.2a.
Report comment to moderator  
Reply With Quote
Unread 04/23/14, 03:39 PM  
ThadOptimus

Forum posts: 4
File comments: 66
Uploads: 0
Originally Posted by Thenedus
Originally Posted by ThadOptimus
Got this error when opening up a vendor to sell.
Damn, one more thing to add to my release tests. Should be fixed with version 0.2a.
Yep, works fine.
Report comment to moderator  
Reply With Quote
Unread 04/25/14, 07:13 AM  
Destabilizator

Forum posts: 1
File comments: 18
Uploads: 0
WTB shortcut for Destroy too please
Report comment to moderator  
Reply With Quote
Unread 04/26/14, 08:30 PM  
redsteven

Forum posts: 0
File comments: 2
Uploads: 0
Shortcut for "link in chat" would be awesome too

Although... i guess that would only work well with a click modifier (like a shift+click)
Last edited by redsteven : 04/26/14 at 08:30 PM.
Report comment to moderator  
Reply With Quote
Unread 04/27/14, 06:19 AM  
Thenedus
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 22
Uploads: 3
Version 0.3

I have just uploaded a new version of Junkee that includes a second option to destroy an item. There is no confirmation and no way to undo that. You have been warned!
If you do not want that option, just don't bind a key to it. Actions are now only displayed if they are bound to a key.

I would be grateful if someone could look over the French translation. I have pieced that together from the UI, but it may be grossly inaccurate.
Report comment to moderator  
Reply With Quote
Unread 05/03/14, 10:18 PM  
Tonyleila
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 288
File comments: 763
Uploads: 7
Bug

Hey Thenedus im 99% shure now that the bug is from this addon. I sometimes can't rightklick items in my inventory to use/eat them. There is an lua error but not for a special addon. But since I disabled Junkee I did not get it again yet.
Last edited by Tonyleila : 05/04/14 at 04:16 AM.
Report comment to moderator  
Reply With Quote
Unread 05/14/14, 12:18 PM  
Thenedus
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 22
Uploads: 3
Re: Bug

Originally Posted by Tonyleila
Hey Thenedus im 99% shure now that the bug is from this addon.
From the error message, I don't think that this is related to Junkee. Junkee does nothing with the menu or the InventoryItem itself, it just hooks the tooltip. It could be something strange happening in combination with another addon. If you would give me a list of the addons you are using, I'll look into it.
Report comment to moderator  
Reply With Quote
Unread 05/25/14, 12:05 PM  
Iyanga
AddOn Author - Click to view AddOns

Forum posts: 183
File comments: 48
Uploads: 9
You can hook directly into the OnMouseEnter and OnMouseExit handlers of the individual rows:

ZO_PlayerInventoryBackpack1RowX

This has the neat side effects that the event handler gets the control as parameter, too, so you don't need to verify whether it is an inventory tooltip and can get the bagId and slotId straight from the event.

Lua Code:
  1. function Junkee.OnMouseEnter(control)
  2.     d("BagId: " .. control.dataEntry.data.bagId)
  3.     d("slotId: " .. control.dataEntry.data.slotIndex)
  4. end
  5.  
  6. function Junkee.OnMouseExit(control)
  7.     d("Hide")  
  8. end
  9.  
  10. local function hookFormerlyItemTooltip()
  11.   hookHandler(ZO_PlayerInventoryBackpack1Row1, "OnMouseEnter", Junkee.OnMouseEnter)
  12.   hookHandler(ZO_PlayerInventoryBackpack1Row1, "OnMouseExit", Junkee.OnMouseExit)
  13. end


Example to set the handlers:

Lua Code:
  1. local function hookItemTooltip()   
  2.     local row, i, control
  3.     i = 1
  4.     repeat
  5.         row = "ZO_PlayerInventoryBackpack1Row" .. i
  6.         control = _G[row]
  7.         if control ~= nil then
  8.             hookHandler(control, "OnMouseEnter", Junkee.OnMouseEnter)
  9.             hookHandler(control, "OnMouseExit",  Junkee.OnMouseExit)
  10.             i = i + 1
  11.         end    
  12.     until control == nil
  13. end
Last edited by Iyanga : 05/25/14 at 12:36 PM.
Report comment to moderator  
Reply With Quote
Unread 05/27/14, 02:02 PM  
Iyanga
AddOn Author - Click to view AddOns

Forum posts: 183
File comments: 48
Uploads: 9
Re: Re: Bug

Originally Posted by Thenedus
From the error message, I don't think that this is related to Junkee. Junkee does nothing with the menu or the InventoryItem itself, it just hooks the tooltip. It could be something strange happening in combination with another addon. If you would give me a list of the addons you are using, I'll look into it.
I see this error, too and can pinpoint it to the addon.

I think I even know what happens:

You rewrite the existing handler function like this:
- Call default function.
- Call my function.

But the old handler runs in an environment where it is allowed to call private functions. Now it runs in your environment, the default function is called from the addon, where it is NOT allowed to call private functions. So whenever the old handler requires a secure environment, like putting stuff in the bank, it will fail.
Last edited by Iyanga : 05/27/14 at 02:05 PM.
Report comment to moderator  
Reply With Quote
Unread 05/30/14, 05:16 PM  
Thenedus
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 22
Uploads: 3
Originally Posted by Iyanga
You can hook directly into the OnMouseEnter and OnMouseExit handlers of the individual rows:

ZO_PlayerInventoryBackpack1RowX

This has the neat side effects that the event handler gets the control as parameter, too, so you don't need to verify whether it is an inventory tooltip and can get the bagId and slotId straight from the event.
Thank you very much, Iyanga. That is what I always wanted to do but was too lazy to figure out

This should be the final change to this addon. Pending any new bug reports or API changes, I'm done.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: