Skip to content

Instantly share code, notes, and snippets.

@callumbrieske
Last active November 6, 2020 00:48
Show Gist options
  • Save callumbrieske/87b80bf837fe8335f202239125fc202a to your computer and use it in GitHub Desktop.
Save callumbrieske/87b80bf837fe8335f202239125fc202a to your computer and use it in GitHub Desktop.
local items = {
"Bacon",
"Lettuce",
"Tomato"
}
Controls.list.Choices = items
Controls.list.EventHandler = function(ctl)
print(ctl.String .. " has been selected!")
ctl.String = ctl.String .. "\xEF\xBB\xBF" -- Add an invisible character.
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment