ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Wish List (https://www.esoui.com/forums/forumdisplay.php?f=177)
-   -   [implemented] GetWeaponType() (https://www.esoui.com/forums/showthread.php?t=684)

ingeniousclown 04/07/14 10:08 PM

[implemented] GetWeaponType()
 
If this exists, I have no clue where to find it. My asking around has gotten nowhere as well.

GetEquipType() covers armor well enough, but I wish there was a GetWeaponType() to return this set of globals about weapons: http://wiki.esoui.com/Globals#WeaponType

*edit: I figured that while I'm here, I'll extend this quest to GetArmorType() too; we need a way to get heavy, medium or light without having to resort to fallible icon parsing.

LilBudyWizer 04/28/14 06:04 AM

The only place I've seen those used is in crafting, i.e. patterns in smithing. The tooltip displays it so it seems it must be there somewhere, but like the crafter I have no idea where.

Seerah 04/28/14 03:15 PM

I had to resort to pulling this data out of the icon file name. I hope ZOS doesn't stray from this "standard" they've set up.

ingeniousclown 04/28/14 04:01 PM

Quote:

Originally Posted by Seerah (Post 6279)
I had to resort to pulling this data out of the icon file name. I hope ZOS doesn't stray from this "standard" they've set up.

Unfortunately this isn't infallible. A few users have reported the occasional armor piece missing from their appropriate subfilters in my Advanced Filters add-on. It's rare, but it happens and there isn't really anything I can do about it :/.

Also, there is no way to differentiate between the four types of staves using this method.

Iyanga 05/01/14 04:36 AM

Quote:

Originally Posted by ingeniousclown (Post 6288)
Unfortunately this isn't infallible. A few users have reported the occasional armor piece missing from their appropriate subfilters in my Advanced Filters add-on. It's rare, but it happens and there isn't really anything I can do about it :/.

We don't know, do we? I mean, do you know the icon names of the items that failed?
It might be something silly, like a typo like _ligth, so there could be a way to include them.

Seerah 05/02/14 01:20 PM

I found a better way! :)
GetItemSoundCategory(bagId, slotIndex)

Garkin 05/02/14 03:10 PM

Quote:

Originally Posted by Seerah (Post 6733)
I found a better way! :)
GetItemSoundCategory(bagId, slotIndex)

But there is still no way to differentiate between healing staff and destro staff. :(
http://wiki.esoui.com/Globals#ItemUISoundCategory

Seerah 05/02/14 03:21 PM

No. There isn't. Anywhere.

ingeniousclown 05/02/14 03:59 PM

Quote:

Originally Posted by Seerah (Post 6733)
I found a better way! :)
GetItemSoundCategory(bagId, slotIndex)

Neat!

Still dumb, but neat! This *should* be infallible for armor types now...

ingeniousclown 05/07/14 11:24 PM

Quote:

Originally Posted by Seerah (Post 6733)
I found a better way! :)
GetItemSoundCategory(bagId, slotIndex)

This still isn't infallible... some items have a sound category of 0. Doing an "or" against the icon parse and the sound may fill in the gaps, however...

thifi 05/23/14 10:06 AM

New API functions with 100004!
  • weaponType GetItemWeaponType(itemLink)
  • armorType GetItemArmorType(itemLink)

Read more here: http://www.esoui.com/forums/showthread.php?p=8263

:D:banana::D

ingeniousclown 05/23/14 10:10 AM

Quote:

Originally Posted by thifi (Post 8348)
New API functions with 100004!
  • weaponType GetItemWeaponType(itemLink)
  • armorType GetItemArmorType(itemLink)

Read more here: http://www.esoui.com/forums/showthread.php?p=8263

:D:banana::D

Yeah, I cried for it on reddit and they said they'd add it. :D


All times are GMT -6. The time now is 05:28 AM.

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