We can do this to display in the inspector a dropdown list of string values for the exported variable ITEMS
:
export (String,"Salt","Sugar","Mayo","Pepper") var ITEMS = "Salt" # As default value.
However, I have some data imported in singletons like a list of IDs from a data text file, I import them as an array to the singleton for global access, how can I make this singleton array be exported as a dropdown list for a node?