The aim is to be able to create a shortened list of items containing the desired item which can then be created without having to scroll down really long lists.
eg, typing 'ore' into the text box would bring up everything with 'ore' in its name. Which would include explorer autons and tailored silk suits as well as all ores but is sufficiently reduced to make it quick to scroll down. This list could further be limited by item criteria.
GodMod had a filter action using a text input screen which was excellent, see attached image (note: GodMod is really suffering in 1.8a3). That's the sort of thing I'm looking for but dsf, etc is gibberish to me. Trading Post Menu does the same sort of thing but by using custom functions elsewhere, like GodMod does, becomes too confusing for me.
I've found that itmCreateByName works with partial names. Do any other functions do the same, possibly lookup or match?
The mod currently uses a virtual station stocked with one of every item with a reduced list available according to criteria or attributes but I don't know how to reduce the list with a partial name.
Code for the virtual station which contains one of every item.
Code: Select all
<StationType UNID="&stD789GodItemsVirtualStation;"
virtual= "true"
>
<Events>
<OnCreate>
(block Nil
(setq allList (itmEnumTypes "*" list (objAddItem gSource list 1)))
)
</OnCreate>
</Events>
</StationType>
I would think another screen would be required because the partial name search can't be represented by normal item criteria or attribute data.
Code: Select all
<Dockscreen UNID= "&dsD789GodGetItemsDockscreen;"
name= "=(if (@ gData 'descName) (@ gData 'descName))"
type= "itemPicker"
nestedScreen= "true"
>
<ListOptions
dataFrom= "=(setq nonStation (sysCreateStation &stD789GodItemsVirtualStation; Nil))"
list= "*"
>
(scrSetListFilter gScreen (@ gData 'criteria))
</ListOptions>
..........