Go to Page... |
Compatibility: | Gold Road (10.0.0) Scions of Ithelia (9.3.0) Endless Archive (9.2.5) base-game patch (9.1.5) Necrom (9.0.0) Scribes of Fate (8.3.5) |
Updated: | 04/28/24 10:47 AM |
Created: | 09/24/23 11:22 AM |
Monthly downloads: | 935 |
Total downloads: | 5,786 |
Favorites: | 10 |
MD5: | |
Categories: | Bags, Bank, Inventory, Auction House & Vendors |
File Name |
Version |
Size |
Uploader |
Date |
1.3.3 |
15kB |
drLemis |
03/18/24 02:56 AM |
|
1.2.4 |
15kB |
drLemis |
01/19/24 03:07 PM |
|
1.1.2 |
13kB |
drLemis |
11/01/23 01:08 PM |
Comment Options |
drLemis |
View Public Profile |
Send a private message to drLemis |
Find More Posts by drLemis |
Add drLemis to Your Buddy List |
04/13/24, 05:41 PM | |
|
Hi there,
thanks for your addon, comes in very handy! Are you interetsed in an integration with "FCO ItemSaver" addon -> to automatically set "self defined" marker icons on any item, based on e.g. your addon's detected price threshold? My usecase/idea was to define a few marker icons in FCOIS that say "Worthy" (or use the already available "Sell in guildstore" icon, "Think about it" and we already got the "Sell" icon for junky items -> plus a keybind to move all those sell marked to junk at once. That way users can even filter the items in the invenories based on that marker icons. And worthy items are auto protected too (no accident destroy, deconstruct or sell). If you are interested in to add some LAM settings so user could select those 3 icons from their defined FCOIS marker icons, and let them auto mark the items (based on e.g. new looted items) I can help you with that. But it's up to you, I do not want to push you into any ideas that may not be something you'd like to support.
Last edited by Baertram : 04/13/24 at 06:37 PM.
|
|
Baertram |
View Public Profile |
Send a private message to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
04/14/24, 11:18 AM | ||
I was in fact planning something like that (filter items that would be better sold via guild) for the next major version, so your idea sound really nice! I will definitely look into that when the time for next version will come, and get in touch for advice. My addon will need some better API's, I suppose, but it would definitely be no problem. |
||
|
drLemis |
View Public Profile |
Send a private message to drLemis |
Find More Posts by drLemis |
Add drLemis to Your Buddy List |
04/14/24, 03:23 PM | |||
|
FCOIS provides the API you need already. See live/AddOns/FCOItemSaver/FCOIS_API.lua For the FCOIS marker controls -> as LAM dropdown tables (for "dropdown" type, choices, choicesValues and choicesTooltips) already: Code:
--Function to build a LAM dropdown choices and choicesValues table for the available FCOIS marker icons --> Type: String - can be one of the following one: ---> standard: A list with the marker icons, using the name from the settings, including the icon as texture (if "withIcons" = true) and disabled icons are marked red. ---> standardNonDisabled: A list with the marker icons, using the name from the settings, including the icon as texture (if "withIcons" = true) and disabled icons are not marked in any other way then enabled ones. ---> keybinds: A list with the marker icons, using the fixed name from the translations, including the icon as texture (if "withIcons" = true) and disabled icons are marked red. ---> gearSets: A list with only the gear set marker icons, using the name from the settings, including the icon as texture (if "withIcons" = true) and disabled icons are marked red. ---In all cases the icons added to the dropdown and dropdown values will only include the dynamic icons which are currently enabled via the settings slider ---"Max. dynamic icons" --> withIcons: Boolean - Add the textures of the marker icons to the list entries --> withNoneEntry: Boolean - Add a "- No icon selected -" entry to the dropdown box, as first entry, returning the value of FCOIS_CON_ICON_NONE (-100) -->returns: --->table iconsDropdownList: A table with key = non-gap number and value = the FCOIS gear icon text, including the icon and the "none" entry depending on the parameters of the function) --->table iconsDropdownValuesList: A table with key = non-gap number and value = the FCOIS gear icon ID (e.g. FCOIS_CON_ICON_LOCK, etc.), including the icon and the "none" entry depending on the parameters of the function) --->table iconsDropdownValuesTooltipsList: A table with key = non-gap number and value = the FCOIS gear icon tooltip text, including the icon and the "none" entry depending on the parameters of the function) function FCOIS.GetLAMMarkerIconsDropdown(type, withIcons, withNoneEntry) Code:
--=========== FCOIS mark an item API functions ================================= --Global function to mark an item with one (or several, by help of a table or iconId = -1) FCOIS marker icon(s). --The other marking functions like "automatic de-mark" or "automatic mark" will be applied too. -->Parameters: ---bag (number): The bagId of the item to mark ---slot (number): The slotId of the item to mark ---iconId (number|table): Number: The iconId to change. Can be a value between 1 and FCOIS.numVars.gFCONumFilterIcons, or -1 for all. --- Table: A table containing the icons to change. Table key must be a number (without gaps!) and the value must be the marker icon Id --- e.g. local myTableOfFCOISMarkerIcons = { [1] = FCOIS_CON_ICON_RSEARCH, [2] = FCOIS_CON_ICON_SELL } ---showIcon (boolean): Flag to set if the item should be marked with the icon(s), or not ---updateInventories (boolean): Flag to set if the inventory lists should be updated, or not. Use this only "after updating the last marker icon", if you (de)mark many at once! function FCOIS.MarkItem(bag, slot, iconId, showIcon, updateInventories) -> The constants fr the marker icons can be found in FCOIS_Constants.lua -> Search for FCOIS_CON_ICON Those are the "fixed" marker icons with a predefiend purpose. Other ones could be the up to 20 dynamic marker icons where the user defines themselves what the marker icon does (name, look, protection at panels like sell, sell at guildstore, deconstruct, etc.) per dynamic marker icon. -> The FCOIS LAM dropdown should show you the most up2date marker icon values. But you might have to rebuild it if you reopen your LAM panel! Else it will be only build once as you first build the LAM panel of your addon, and if anyone changes marker icons after that at FCOIS LAM menu, it won't reflect the changes in your menu's dropdown! For that you canuse the LAM callback for "LAM-PanelOpened" like described here: https://github.com/sirinsidiator/ESO-LibAddonMenu/wiki/LAM2-callbacks -> Make sure to check the if panel ~= myPanel then return end where myPanel == the panel that LibAddonMenu2.RegisterAddonPanel returned for your addon! Basically give your LAM dropdown for the FCOIS marker icons a reference = "MyAddonName_LAM_FCOIS_ICON_DROPDOWN_1" and then you can use that to access it after your LAM panel controls have been created. So in the callback func of LAM-PanelOpened do something like this: Lua Code:
Everything else like filtering and proteciton is done automatically via FCOIS API and UI buttons then. If you got problems or questions, ask me. -> At best here: https://app.gitter.im/#/room/#esoui_esoui:gitter.im Easier to share code and view stuff
Last edited by Baertram : 04/14/24 at 03:33 PM.
|
||
|
Baertram |
View Public Profile |
Send a private message to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
04/15/24, 12:52 PM | |
Hi!
This addon is very helpful, thank you for your work! Not sure if you'd find it useful/a good addition, but I didn't want the decimals on the prices so I changed the TamrielTrashCentre.FormPriceData function to use math.floor(price + 0.5). This could be a checkbox on the LAM panel. Note that I have only tested it with TTC provided prices, I guess it should work for all of them tho. This is how I have it: Lua Code:
Last edited by notnear : 04/15/24 at 01:17 PM.
|
|
|
notnear |
View Public Profile |
Send a private message to notnear |
Find More Posts by notnear |
Add notnear to Your Buddy List |
04/15/24, 01:32 PM | ||
I'll add something like this into settings as choice between "2 decimals", "No decimals (round up)" and "2 decimals unless it's a big number (then round up)". In the last pick we will see "43.21", "543.21", "6543" and "76543", so it will be decimalized for items that are usually sold by stacks, like hides and herbs, and just a short number for something like 12k priced sword. Thx for your suggestion for QoL, it's a great one! |
||
|
drLemis |
View Public Profile |
Send a private message to drLemis |
Find More Posts by drLemis |
Add drLemis to Your Buddy List |