예제 #1
0
        public void AddGoBackItem(string text)
        {
            NavigatingGossipAction navigatingGossipAction =
                new NavigatingGossipAction((GossipActionHandler)(convo =>
                                                                 convo.Character.GossipConversation.GoBack()));

            this.AddItem((GossipMenuItemBase) new GossipMenuItem(text, (IGossipAction)navigatingGossipAction));
        }
예제 #2
0
        public void AddGoBackItem(string text)
        {
            NavigatingGossipAction navigatingGossipAction =
                new NavigatingGossipAction(convo =>
                                           convo.Character.GossipConversation.GoBack());

            AddItem(new GossipMenuItem(text, navigatingGossipAction));
        }
예제 #3
0
        public void AddGoBackItem(string text, GossipActionHandler callback)
        {
            var action = new NavigatingGossipAction(convo =>
            {
                callback(convo);
                convo.Character.GossipConversation.GoBack();
            });

            AddItem(new GossipMenuItem(text, action));
        }
예제 #4
0
		public void AddGoBackItem(string text, GossipActionHandler callback)
		{
			var action = new NavigatingGossipAction(convo =>
			{
				callback(convo);
				convo.Character.GossipConversation.GoBack();
			});
			AddItem(new GossipMenuItem(text, action));
		}