ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Feature Request: itemlink return on GetLastCraftingResultItemInfo (resultIndex) (https://www.esoui.com/forums/showthread.php?t=6800)

ArtOfShred 02/08/17 11:17 PM

Feature Request: itemlink return on GetLastCraftingResultItemInfo (resultIndex)
 
Currently I've managed to make item gain/loss except through that of crafting, banking or destroying items in LUI. These are all complete with working item links, and in relevant cases player links as well.

I've moved on to attempting to add something for crafting and found this function:

Code:

GetLastCraftingResultItemInfo(number resultIndex)
    Returns: string name, textureName icon, number stack, number sellPrice, boolean meetsUsageRequirement, number equipType, number ItemType itemType, number itemStyle, number quality, number ItemUISoundCategory soundCategory, number itemInstanceId

It's extremely useful because I can interate through resultIndex numbers to find all the items that were produced as a result of the last construct/deconstruct, but there's no way I'm aware of to generate an itemlink with any of this information provided. The best I could do is use zo_stringformat and put some brackets and colorize items based off their quality to make them look like an item tooltip at least. There's also no way to differentiate between constructing and deconstructing, but that's not as much of an issue since we can fudge around that by checking the itemType.

I also tried to look into adding the same functionality for Banking and couldn't find anything at all I thought would work, doesn't seem to be any event we can use for adding or removing items from the bank. Any chance it would be possible to add these events for bank item withdraw/deposits and expand the Guild Bank ones?

Thanks!

EDIT: Just realized it doesn't seem like there's a way to get an item you deconstructed either, just the resulting items. Might be something nice to have as well.

Rhyono 02/09/17 12:06 AM

Wouldn't this go better in the Wishlist forum?

ArtOfShred 02/09/17 04:30 AM

Quote:

Originally Posted by Rhyono (Post 29725)
Wouldn't this go better in the Wishlist forum?

Didn't even realize it was a thing, thanks! I'll repost over there.


All times are GMT -6. The time now is 08:42 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI