Forum rules - please read before posting.

ActionContainerOpen and other menus & elements

Hi Chris

As you know, I'm mad and want to code all my actionlists. Any chance you can add the ability to specify a menu name and element name to the ActionContainerOpen.CreateNew method? Or a new method that takes those parameters.

I want to open a custom container menu using my coded actionlists.

Thanks

Olly

Comments

  • Yep, can do. Add this to the bottom, I'll do the same in the next release:

    public static ActionContainerOpen CreateNew (Container containerToOpen, string menuName, string elementName)
    {
        ActionContainerOpen newAction = CreateNew<ActionContainerOpen> ();
        newAction.container = containerToOpen;
        if (newAction.container)
        {
            newAction.TryAssignConstantID (newAction.container, ref newAction.constantID);
        }
        newAction.setElement = true;
        newAction.useActive = false;
        newAction.menuName = menuName;
        newAction.containerElementName = elementName;
        return newAction;
    }
    
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.