public void AddGoBackItem(string text) { NavigatingGossipAction navigatingGossipAction = new NavigatingGossipAction((GossipActionHandler)(convo => convo.Character.GossipConversation.GoBack())); this.AddItem((GossipMenuItemBase) new GossipMenuItem(text, (IGossipAction)navigatingGossipAction)); }
public void AddGoBackItem(string text) { NavigatingGossipAction navigatingGossipAction = new NavigatingGossipAction(convo => convo.Character.GossipConversation.GoBack()); AddItem(new GossipMenuItem(text, navigatingGossipAction)); }
public void AddGoBackItem(string text, GossipActionHandler callback) { var action = new NavigatingGossipAction(convo => { callback(convo); convo.Character.GossipConversation.GoBack(); }); AddItem(new GossipMenuItem(text, action)); }