As I poke away at the idea of a Fluids extension, I’m needing to construct and display a list of an arbitrary number of objects. (This is a side effect of the concepts in the extension: I want to have an Empty action, which needs a default for non-FluidContainer objects. The question naturally arises, what if the player tries to empty a basket? Answer: Stuff gets dumped on the floor. So we need to fly in a list of the stuff.)
So I create a local, temporary SimpleLister and pass the list of items being moved to its makeSimpleList method. Works like a charm … except that I’m getting the aName string, when I want the theName string:
I’m betting (or hoping) that I can fix this by overriding showListAll and giving it some value in the “options” argument. But I can’t find any documentation on this value. The comments in the source say only this: “‘options’ gives a set of ListXxx option flags.” Unfortunately, “ListXxx” is not to be found in the All Symbols page of the LRM, nor is it mentioned anywhere in the article on “Lists and Listers.” The latter article contains the word “options” only once, and it’s as an argument to showListItem … an argument whose possible values don’t seem to be mentioned. So I’m kinda stumped.
How can I get a SimpleLister to give me a comma-separated string of theNames, rather than aNames? If that’s not possible, what sort of Lister should I use, and are there any tricks to setting it up to produce a string?