- * Sorted ad items in the bb table (by icon name)
* A toggle button to show only the items that are available (white ads, not greyed out)
toggle off fullscreen
https://docs.google.com/uc?id=0BwErCvBm ... t=download
toggle on fullscreen
https://docs.google.com/uc?id=0BwErCvBm ... t=download
Sort By Icon Name: This groups the ads in bunches and give the listing a reliable order. There is no sub-sort within a type of item. The ads currently show: assassination first, then hyperspace mechanics (breakdown_service), then crew hires, deliveries... and so on.
Available Only Toggle: works as advertised, updates the display so that only the ads you qualify for are shown. Toggle remembers it's setting.
I'm pretty sure I tightend some (very) loose coupling between the ads table and the display and that may help with known "clicking bbs ad responds with wrong item" issues (or not).
TODO's
I have a mind to put in a filter selection pulldown to further limit the display to a type of ad. I was first thinking this would be by icon type as well, but then I started thinking of more general filters like "Job" (ads that offer payment), or "Combat" (ads with high risk), etc. Suggestions most welcome here.
The sort/filter I'm using is terrible. Both as code and as implementation. It's run a lot (esp frame changes and startup) and it's almost always in worst case. It doesn't slow down the game I'm running on, but I don't want introduce a bull into the china shop.
I'm looking into replacing the bbTable with either a SmartTable or something like a SmartTable (to help with the sorting for one thing). I want it to further bind the station's ads to the display, in a less fragile (and prettier) way than it's currently coded.
There was a thought to put in a search widget. The more I think on it the more I would rather have meaningful and thought-out filters than typing. I can't see a search being useful unless we expect 100's of items in the bb.
Other than that, I want to present clean code for pull. I'm embarrassed by the learn/hack stuff in it now.