public GameConfigButtonDescriptor AddNewSequenceCommand(GameConfigButtonDescriptor.Etype type, string tittle, List <KeyValuePair <string, string> > commandList, int sectionIndex)
    {
        GameConfigButtonDescriptor newCommand = new GameConfigButtonDescriptor();

        newCommand._tittle = tittle;
        newCommand._type   = type;
        newCommand.AddSequenceCommand(commandList);
        _sections[sectionIndex]._buttons.Add(newCommand);

        return(newCommand);
    }
Ejemplo n.º 2
0
        public void OnEditSequenceCommandButtonPress
            (UICommandElement uiCommandElement
            , GameConfigButtonDescriptor buttonDescriptor
            , string tittle
            , List <KeyValuePair <string, string> > commandList)
        {
            UIUtils.ShutDownWindow(ref _windowAddSequenceCommand);
            buttonDescriptor._tittle = tittle;
            buttonDescriptor.AddSequenceCommand(commandList);

            uiCommandElement.Refresh();
        }