Beispiel #1
0
        private void NextSnippit()
        {
            _autoEndTimer = 0;
            if (_responces.Count > 0) //if we have responces
            {
                Responce r = _responces[_responceSelected];
                if (r.Next >= 0)
                {
                    _activeSnippit = r.Next;
                }
                else
                {
                    _activeSnippit = -1;
                }

                if (r._CallBack != null) //if there is a call back
                {
                    r._CallBack(r);
                }
            }
            else
            {
                _activeSnippit++;
            }

            if (_activeSnippit < 0 || _activeSnippit >= _snippits.Count) //if there is no snippits left
            {
                EndConversation();
            }
            else
            {
                _textProgress = 0;
                WrapActiveSnippit();
            }
        }
Beispiel #2
0
        public void AddSnippit(string who, string text, Responce responce, bool autoEnd = false)
        {
            //     text.InsertSpacing(_chat._FontSmall);
            Responces r = new Chat.Responces();

            r.Add(responce);
            Snippit sn = new Chat.Snippit(who, text, r);

            sn.AutoEndSnippit = true;
            AddSnippit(sn);
        }
Beispiel #3
0
 public void Add(Responce responce)
 {
     _responces.Add(responce);
 }