We have detected that cookies are not enabled on your browser. Please enable cookies to ensure the proper experience.
Results 1 to 25 of 59

Threaded View

  1. #18
    Join Date
    Oct 2013

    Question Advice Please

    I created a simple popup context menu, invoked by a chat command, using an example from the Helm's Deep Lua API Documentation.

    menuItems:Add(Turbine.UI.MenuItem("Option 1"));
    menuItems:Add(Turbine.UI.MenuItem("Option 2"));
    local i;
    for i=1,menuItems:GetCount() do
        local menuItem=menuItems:Get(i);
        function menuItem.Click(sender,args)
            Turbine.Shell.WriteLine("You have selected "..sender:GetText()..".");
    What I would like to do is detect when the menu closes without a menu option being selected. I assume this can be achieved with the use of a callback and/or update function, but I just can't figure how to do it.

    Any advice please?

    P.S. "Garan has exceeded their stored private messages quota and cannot accept further messages until they clear some space."
    Last edited by fade2gray; Jul 15 2016 at 09:37 AM.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

This form's session has expired. You need to reload the page.