Download
(2 Kb)
Download
Updated: 04/22/20 09:49 PM
Pictures
File Info
Compatibility:
Harrowstorm (5.3.5)
Updated:04/22/20 09:49 PM
Created:04/21/20 10:23 PM
Monthly downloads:90
Total downloads:7,718
Favorites:7
MD5:
Advanced Filters - Crafted Items  Popular! (More than 5000 hits)
Version: 1.2.0
by: Aldanga [More]
A plugin for Advanced Filters that adds filters for items that are crafted or not crafted.
[1.2.0] - 2020-04-22
----------
Changed
- Filters to be excluded from Craft Bag

[1.1.0] - 2020-04-22
----------
Added
- i18n strings for DE, FR, JP, and RU. Thanks, Baertram!
Changed
- Filters to be excluded from inapplicable groups and subfilters

[1.0.0] - 2020-04-21
----------
Added
- Is crafted/not crafted filter
Optional Files (0)


Archived Files (2)
File Name
Version
Size
Uploader
Date
1.1.0
2kB
Aldanga
04/22/20 09:36 PM
1.0.0
2kB
04/21/20 10:23 PM


Post A Reply Comment Options
Unread 06/17/21, 11:06 AM  
wambo
AddOn Author - Click to view AddOns

Forum posts: 38
File comments: 456
Uploads: 3
I just saw someone ask for a filter for reconstructed items, and I thought - amongst advanced filters plugins - this one would fit the best.
Report comment to moderator  
Reply With Quote
Unread 04/23/20, 05:19 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4912
File comments: 5990
Uploads: 78
No worries, just wanted to tell you your possibilities as there already exist quite a lot plugins and if someone uses many of them the dropbox will be really full (and thus loooong) at the "All" entries.
So hiding not needed ones at some of them would be the best imo.

Originally Posted by Aldanga
Yeah. I'd thought about prepending "Not" to the game-generated strings, but figured that was not quite up to snuff. But translating "Not" to the various languages is probably good enough until someone says otherwise.

To be honest, I threw this together for a friend during a work break and didn't dig into the filter types too much on first pass. I decided to publish it last night, but didn't do a once-over as it was midnight or something ridiculous. Maybe I should've waited until the morning.

I'll incorporate your changes. Thanks for keeping Advanced Filters alive!
Report comment to moderator  
Reply With Quote
Unread 04/22/20, 09:05 PM  
Aldanga
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 304
Uploads: 5
Yeah. I'd thought about prepending "Not" to the game-generated strings, but figured that was not quite up to snuff. But translating "Not" to the various languages is probably good enough until someone says otherwise.

To be honest, I threw this together for a friend during a work break and didn't dig into the filter types too much on first pass. I decided to publish it last night, but didn't do a once-over as it was midnight or something ridiculous. Maybe I should've waited until the morning.

I'll incorporate your changes. Thanks for keeping Advanced Filters alive!
Report comment to moderator  
Reply With Quote
Unread 04/22/20, 08:21 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4912
File comments: 5990
Uploads: 78
Thanks, I've changed the hardcoded "Crafted" string to the ingaem tanslation of it.
This way your plugin will support, de, en, fr, jp, ru languages from the scratch .
Unfortunately there is no "Not crafted" in these languages. So I've just concatenated 2 strings, "not" and "crafted".

See here for the ingame available translations:
https://github.com/esoui/esoui/blob/...tedstrings.lua

Lua Code:
  1. local deStrings = {
  2.     ["Crafted"] = GetString(SI_ITEM_FORMAT_STR_CRAFTED)
  3.     ["NotCrafted"] = "Nicht " .. GetString(SI_ITEM_FORMAT_STR_CRAFTED),
  4. }
  5. local enStrings = {
  6.     ["Crafted"] = GetString(SI_ITEM_FORMAT_STR_CRAFTED)
  7.     ["NotCrafted"] = "Not " .. GetString(SI_ITEM_FORMAT_STR_CRAFTED),
  8. }
  9. local frStrings = {
  10.     ["Crafted"] = GetString(SI_ITEM_FORMAT_STR_CRAFTED)
  11.     ["NotCrafted"] = "Non " .. GetString(SI_ITEM_FORMAT_STR_CRAFTED),
  12. }
  13. local jpStrings = {
  14.     ["Crafted"] = GetString(SI_ITEM_FORMAT_STR_CRAFTED)
  15.     ["NotCrafted"] = "されていません " .. GetString(SI_ITEM_FORMAT_STR_CRAFTED),
  16. }
  17. local ruStrings = {
  18.     ["Crafted"] = GetString(SI_ITEM_FORMAT_STR_CRAFTED)
  19.     ["NotCrafted"] = "Не " .. GetString(SI_ITEM_FORMAT_STR_CRAFTED),
  20. }
  21.  
  22. local filterInformation = {
  23.     callbackTable = CraftedFilters,
  24.     filterType = ITEMFILTERTYPE_ALL,
  25.     subfilters = { "All" },
  26.     deStrings = deStrings,
  27.     enStrings = enStrings,
  28.     frStrings = frStrings,
  29.     jpStrings = jpStrings,
  30.     ruStrings = ruStrings,
  31. }


btw:
You should refrain from using ITEMFILTERTYPE_ALL for items which can only be below other filter subcategories which are, for crafted at least only
weapons
armor
jewelry
furniture
potions
poison
glyphs
.

Else they show up everywhere, even at miscellaneous or materials.
You should instead add the filters for ONLY the wanted itemtypes AND at itemfiltertype_all,
but with the "onlyGroups" tag enabled:

See the description of AF updated for more details:
https://www.esoui.com/downloads/info...s-Updated.html

e.g.
Lua Code:
  1. local filterInformation = {
  2.     filterType = {ITEMFILTERTYPE_ALL},
  3.         subfilters = {"All",},
  4.         onlyGroups = {"Armor", "Weapons", "Jewelry", "Furniture" }
  5.     },

-> The possible filterGroups can be found here: AdvancedFilters/constants.lua -> table "subfilterButtonNames".
-> The table contains subtables with the filtertype as the key (e.g. ITEMFILTERTYPE_WEAPONS) and the possible subfilterGroups as entries in these subtables (e.g.
"HealStaff", "DestructionStaff", "Bow", "TwoHand", "OneHand", AF_CONST_ALL). AF_CONST_ALL is a constant for the "All" entries.
Last edited by Baertram : 04/22/20 at 08:22 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: