Download
(12 Kb)
Download
Updated: 03/18/17 06:02 AM
Pictures
File Info
Compatibility:
Homestead (2.7)
Updated:03/18/17 06:02 AM
Created:03/11/17 08:38 PM
Monthly downloads:51
Total downloads:7,330
Favorites:18
MD5:
FurnitureShoppingList  Popular! (More than 5000 hits)
Version: 1.3.0
by: Noobanidus [More]
This requires Furniture Catalogue by Manavortex to function.

This is a very simple add-on written for a friend. Typing /sl (can be bound) brings up the shopping list window. Right clicking on a furnishing object allows you to add 1 of that to the list, or remove 1 of that from the list. It then adds or removes the relevant materials required to make that item to the list. A summay of all items needed is displayed in the window.

You can press "Subtract owned" to remove any materials on you, in your bank or in your craft bags from the list. This step is irreversible.

You can press "Print" to output a shopping list to the chat box, allowing you to send it to someone. If the list is too long for a single message, and you have a blank outgoing mail open, it will instead output to that.

While in the crafting interfact, keybinds/keybind strip buttons are included for "add 1" and "remove 1" (represented as +SL and -SL respectively). Pressing these is the equivalent to right clicking on an item, but it can be done from within the crafting interface.

Right-click menu should function for items linked in chat as well as in your inventory.

When MasterMerchant is installed, it will display the total price for the number of each item required in the "Price" column, as well as a total for all of the items in the lower left corner.

Current issues:
- It's still not possible to sort either of the columns.

Potential future changes:
- Track purchases made and subtract these from the need column.
- Localisation.
(1.2.1) Fix stuff.

(1.2.0) Break stuff.

(March 13, 1.1.0) Now the keybindings actually work because I can't type. Added a keybinding for opening the shopping list window and made it give a more straightforward error message when Furniture Catalogue isn't installed.
Optional Files (1)
File Name
Version
Size
Author
Date
Type
1.4.11
7kB
08/09/20 04:15 AM
Patch


Archived Files (4)
File Name
Version
Size
Uploader
Date
1.2.1
12kB
Noobanidus
03/14/17 06:27 PM
1.2.0
12kB
Noobanidus
03/14/17 01:15 AM
1.1.0
12kB
Noobanidus
03/13/17 05:28 AM
1.0.0
11kB
Noobanidus
03/11/17 08:38 PM


Post A Reply Comment Options
Unread 03/12/17, 06:44 PM  
Noobanidus
 
Noobanidus's Avatar
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 53
Uploads: 23
Originally Posted by manavortex
I love it!
Will add it to the Furniture Catalogue rightclick menu! However, that would require you to make
Lua Code:
  1. local function FurnitureShoppingListAdd (link)
  2.     ...
  3. end
global.

BTW; concerning key binds: I'm missing a keybind to toggle the window, and the key binds don't show up in my settings list. I fixed that for now with the following changes:

Strings.lua: Registered the strings for the menu entries
Lua Code:
  1. ZO_CreateStringId("SI_BINDING_NAME_SL_ADD", "Add to furniture shopping list")
  2. ZO_CreateStringId("SI_BINDING_NAME_SL_DEL", "Remove from furniture shopping list")
  3. ZO_CreateStringId("SI_BINDING_NAME_SL_TOGGLE", "Toggle furniture shopping list")

FurnitureShoppingList.txt: Made sure that Strings.lua is loaded before Bindings, changed bindings.txt to bindings.xml
Lua Code:
  1. Strings.lua
  2. Bindings.xml

FurnitureShoppingList.lua: Hooked up dummy functions for you to fill in - the XML would complain otherwise.
Lua Code:
  1. function FurnitureShoppingListAddButton()
  2.    
  3. end
  4. function FurnitureShoppingListDelButton()
  5.    
  6. end

Great work, great addition to FurnitureCatalogue!
This also needs a "print to chat" function, by the way. Feel free to check out FurCDataParser.lua, especially GetMats(...) and the functions below for inspiration.

o/
I am caught out, uploading what is really only a partially-finished addon. Other requests that have been made include MM prices and an MM total. Definitely changes that I can do some time this week, including modifying the scope of the functions for other addons to hook into.

The most important thing is probably checking to see if Furniture Catalogue is actually installed, given I think the addon currently just assumes FurC exists... and I'm not sure if I noted anywhere in the addon when I uploaded it that it requires Furniture Catalogue to run... oops!
Report comment to moderator  
Reply With Quote
Unread 03/12/17, 03:43 AM  
manavortex
 
manavortex's Avatar
AddOn Author - Click to view AddOns

Forum posts: 138
File comments: 511
Uploads: 46
I love it!
Will add it to the Furniture Catalogue rightclick menu! However, that would require you to make
Lua Code:
  1. local function FurnitureShoppingListAdd (link)
  2.     ...
  3. end
global.


BTW; concerning key binds: I'm missing a keybind to toggle the window, and the key binds don't show up in my settings list. I fixed that for now with the following changes:

Strings.lua: Registered the strings for the menu entries
Lua Code:
  1. ZO_CreateStringId("SI_BINDING_NAME_SL_ADD", "Add to furniture shopping list")
  2. ZO_CreateStringId("SI_BINDING_NAME_SL_DEL", "Remove from furniture shopping list")
  3. ZO_CreateStringId("SI_BINDING_NAME_SL_TOGGLE", "Toggle furniture shopping list")

FurnitureShoppingList.txt: Made sure that Strings.lua is loaded before Bindings, changed bindings.txt to bindings.xml
Lua Code:
  1. Strings.lua
  2. Bindings.xml

FurnitureShoppingList.lua: Hooked up dummy functions for you to fill in - the XML would complain otherwise.
Lua Code:
  1. function FurnitureShoppingListAddButton()
  2.    
  3. end
  4. function FurnitureShoppingListDelButton()
  5.    
  6. end

Great work, great addition to FurnitureCatalogue!
This also needs a "print to chat" function, by the way. Feel free to check out FurCDataParser.lua, especially GetMats(...) and the functions below for inspiration.

o/
Last edited by manavortex : 03/12/17 at 06:00 AM.
Report comment to moderator  
Reply With Quote
Unread 03/12/17, 12:12 AM  
SaucyJack

Forum posts: 3
File comments: 30
Uploads: 0
YOU ARE A CHAMPION.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: