ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Wish List (https://www.esoui.com/forums/forumdisplay.php?f=177)
-   -   [outdated] Feature Request Add craft/upgrade/decon to EVENT_CRAFT_STARTED/COMPLETED (https://www.esoui.com/forums/showthread.php?t=6821)

ArtOfShred 02/12/17 11:15 PM

[outdated] Feature Request Add craft/upgrade/decon to EVENT_CRAFT_STARTED/COMPLETED
 
So currently EVENT_CRAFT_STARTED and EVENT_CRAFT_COMPLETED return (integer craftSkill), which will be one of these values:
CRAFTING_TYPE_INVALID = 0
CRAFTING_TYPE_BLACKSMITHING = 1
CRAFTING_TYPE_CLOTHIER = 2
CRAFTING_TYPE_ENCHANTING = 3
CRAFTING_TYPE_ALCHEMY = 4
CRAFTING_TYPE_PROVISIONING = 5
CRAFTING_TYPE_WOODWORKING = 6

I'd like to see if it would be possible to add the type of crafting you are doing in each subcategory for Blacksmithing, Clothing and Woodworking.
- Refine
- Creation
- Deconstruct
- Improvement
- Research

I'm currently making a component for LUI that prints crafting changes to the chatlog, and it is context sensitive:


While I can use the itemtype of the item and whether we gained or lost an item to fudge alot of it, that still leaves me with any items lost from failed upgrades or research with the same [Deconstructed] syntax that I have for deconstructing the item, since its not possible to differentiate between the method used that caused loss of the item.

Thanks!

Ayantir 02/12/17 11:18 PM

Lua Code:
  1. TABLE:GetMode()

replace TABLE with SMITHING, ALCHEMY, ENCHANTING (I guess) or COOKING.

ArtOfShred 02/13/17 06:03 AM

Quote:

Originally Posted by Ayantir (Post 29845)
Lua Code:
  1. TABLE:GetMode()

replace TABLE with SMITHING, ALCHEMY, ENCHANTING (I guess) or COOKING.

What will that return?

Rhyono 02/13/17 10:06 AM

"Mode" is the crafting tab it is on. So it should return an integer in correlation with their left to right order.


All times are GMT -6. The time now is 01:34 AM.

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