Thread: Field Filters for All Libraries
-
November 6th, 2017, 22:33 #11
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,702
I think Minty is talking about auto-generating the list of potential filters, having a way to dynamically add/remove filters, and allowing each filter to specify which field it is filtering on. It's an interesting idea, but there's a lot of detail to flesh out.
The hard part of that is handling custom filter fields (i.e. search by spellcasting class in Pathfinder, when multiple classes embedded in Source field); deciding whether a filter should be a dropdown or a free text filter; and building the UI to support addition/removal of filters dynamically.
It's quite a task, but Minty seems to like those.
Cheers,
JPG
-
November 6th, 2017, 22:47 #12
@Minty I was just exporting a mod and noticed this.
I am using Pathfinder ruleset, with the ext off it goes away.
Sample.jpg
Madman..
-
November 6th, 2017, 23:19 #13
Sorry to be so nebulous about it. Sometimes I don't explain myself well. A picture might help. Here is a quick mock up in Paint so please keep that in mind, it's bound to have inconsistencies.
In the mockup there are three panels. The one to the far left shows the NPC library editor (one of those not yet finished). The NPC editor has some 25 fields in it. If I had 25 comboboxes, the dialog would not fit on screen, I'd have to have some way for the user to drop ones he/she isn't interested in or I'd have to add a scroll bar. All 25 of those fields would need their own custom filter options hardcoded into the extension.
What I think my next step should be is to provide "smart" filters that the user can set up. As in the middle panel, there would be the ubiquitous iEdit/iAdd buttons (oops I forgot the iDelete to complete the trio! ). The user would select the field or fields he/she wanted to filter in the combobox and then choose options (the little blue state buttons), like use combobox choices, or use text input boxes, split apart csv lists like tools and skills, alphabetizing CR "numbers", stuff like that. Programming would prepopulate the combobox with available fields and preset the options based on a prescan of the field values. (e.g. a csv list would be easy to recognize, so would dice, like 3d10, and CRs, if the field is Boolean, a combobox is the obvious choice.) In the picture the user is going to set up two filters. The third panel shows what it might look like after the user has finished setting up their custom filters, five of them.
FFAL_0.1.0B.png
The real advantage here as I see it is support in the other rulesets. I know nothing of 3.5E and 4E, as well as PathFinder. Those rulesets based on the CoreRPG could possibly be automatically supported with little to no additionaly effort on my part.
-
November 6th, 2017, 23:24 #14
-
November 6th, 2017, 23:40 #15
Precisely. Moon Wizard is much more eloquent that I.
A little less so... User input required.
Again, spot on.
Thank you kindly, sir.
I haven't a clue where that's coming from!
-
November 7th, 2017, 02:02 #16
Archangel
- Join Date
- Apr 2008
- Location
- Virginia Beach
- Posts
- 3,096
Minty, maybe you could have a drop-box and let the user drag the fields he wants to search/filter on into the drop box. That would lessen the chore somewhat?
-
November 7th, 2017, 15:12 #17
- Join Date
- Aug 2016
- Posts
- 9
This has me excited, especially for NPC filtering based on fields like description or resistances.
-
November 7th, 2017, 15:50 #18
Just released version v0.1.1 which I believe takes care of the "double vision" as reported by madman in post 12 of this thread.
Current Projects:
Always...
Community Contributions:
Extensions: Bardic Inspiration, Druid Wild Shapes, Local Dice Tower, Library Field Filters
Tutorial Blog Series: "A Neophyte Tackles (coding) the FG Extension".
-
November 7th, 2017, 15:59 #19
I'll work on NPCs today or tomorrow. I'll be sure to include those fields since you've mentioned them. I won't be able to include all NPC fields because of space considerations as mentioned in post #13 of this thread. Once I get that methodology going, you'll be able to pick and choose. Thanks for the feedback.
-
November 10th, 2017, 12:38 #20
Archangel
- Join Date
- Apr 2008
- Location
- Virginia Beach
- Posts
- 3,096
Why not use the drag and drop approach, Minty? You could have the more common fields and a place to drag less common fieldss
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks