|
||
Generic Data Sets
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The generic data sets represent a wide assortment of data that is used in SilverScreen. Each generic set has a corresponding constant that is defined in silver.h . The following is the list:
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PROMPT_GENERIC
The prompt_generic function displays a dialog containing all names in a given data set. The user may then select one of these. This selection is then returned to the calling program. The following is an example:
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PM_GENERIC
The pm_generic function adds a generic item to a panel menu. The button associated with this item gives the user the opportunity to select an item from the set. The following is an example:
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
COLLECT_GENERIC
collect_generic is a function that assembles all items of a generic set into a list. This list may then be accessed through the get_generic function:
The generic data set is specified by a constant and an auxiliary string. In most cases, the auxiliary string is empty (as shown in the examples above). The sets that require a non-empty string are the following:
For GN_PATTERN and GN_LINE_STYLE , only "silver" should be used since this is the only library presently supported.
GN_FILE requires the name of an ASCII text file containing space-delimited tokens. An example of such a file is the following (note that the end-of-line character counts as whitespace):
bill sue mary kjel henry jack jill jim
GN_FILE2 requires the name of an ASCII text file where each line is an element in the data set. Example:
Jean Paul Sartre Plato Bertrand Russell David Hume
GN_MODEL2 requires the name of the model library from which the model names are to be selected. |
|