WoW:API EasyMenu: Difference between revisions

m (→‎Example: Code looks better when it's lined up properly. Also, you missed a variable name, Starlightblunder. :))
Line 20: Line 20:
  local menu = {
  local menu = {
     { text = "Select an Option", isTitle = true},
     { text = "Select an Option", isTitle = true},
     { text = "Option 1", func = function() print("You've chosen option 1"); end },
     { text = "Option 1", func = fuction() print("You've chosen option 1"); end },
     { text = "Option 2", func = function() print("You've chosen option 2"); end },
     { text = "Option 2", func = function() print("You've chosen option 2"); end },
     { text = "More Options", hasArrow = true,
     { text = "More Options", hasArrow = true,
Anonymous user