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); }
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(); }