m
I found out that the original way to use .func was correct, but, mine is also valid and may help someone else looking for the answer.
No edit summary |
m (I found out that the original way to use .func was correct, but, mine is also valid and may help someone else looking for the answer.) |
||
| Line 64: | Line 64: | ||
info.text = "This is an option in the menu."; | info.text = "This is an option in the menu."; | ||
info.value = "OptionVariable"; | info.value = "OptionVariable"; | ||
info.func = FunctionCalledWhenOptionIsClicked; | info.func = FunctionCalledWhenOptionIsClicked | ||
-- can also be done as function() FunctionCalledWhenOptionIsClicked() end; | |||
-- Add the above information to the options menu as a button. | -- Add the above information to the options menu as a button. | ||