apocalyptech / eschalon_utils

Eschalon Books I, II, and III Character and Map Editors
http://apocalyptech.com/eschalon/
GNU General Public License v2.0
8 stars 3 forks source link

Add dropdowns for global map items #64

Open apocalyptech opened 10 years ago

apocalyptech commented 10 years ago

Read from general_items.csv to know what valid item names are, and provide a dropdown for users to select those contents, if they want.

(I forget the name of the control, but I'd assumed it would actually be one of those text entry fields which is also a dropdown, so if you really want to you could still put in whatever text you want.)

I'll be finishing up my savegame/global conversion routines first, and part of that is going to involve item-name checking when converting to global maps, so we'll probably already have the item name information easily available by the time I take a stab at this.

apocalyptech commented 10 years ago

So my original idea about dropdowns wasn't really feasible. There's just too many items for a dropdown to be actually-useful; even multi-column dropdowns really weren't great, and would be problematic on smaller screens.

I've just pushed out a change which adds autocompletion to the entries, which actually seems to work great. I think I will nevertheless augment that with a little "lookup" button next to the textbox which will let you look up the item from the full list. I think I'll end up pulling in the CSV groupings to that dialog as well (so, EschalonData will understand the groupings) so that people would be able to drill down based on stuff like armor, weapon, ring, etc.

Nothing like dumping a bunch of time into a feature nobody asked for, eh? :)

I'd been pondering if I should add this dropdown/lookup to the Item Name entry on the full Item Editing dialog as well, even if the map being edited is a savegame map (or even if we're doing this in the character editor). It might not be a bad idea...