Exemple #1
0
        public override void Load(RSFileReader br)
        {
            byte tag = 0;

            p_words.Clear();
            Sound = null;
            while ((tag = br.ReadByte()) != 0)
            {
                switch (tag)
                {
                case 1:
                    int count = br.ReadInt32();
                    for (int i = 0; i < count; i++)
                    {
                        GOFRunningTextItem gri = new GOFRunningTextItem();
                        gri.Load(br);
                        p_words.Add(gri);
                    }
                    break;

                case 2:
                    Sound = new MNReferencedSound();
                    Sound.Load(br);
                    break;

                case 3:
                    Text = br.ReadString();
                    break;
                }
            }
        }
Exemple #2
0
        public GOFRunningTextItem AddWord(string word)
        {
            GOFRunningTextItem ti = new GOFRunningTextItem();

            ti.Text = word;
            p_words.Add(ti);
            Modified = true;
            return(ti);
        }
Exemple #3
0
 public GOFRunningTextItem AddWord(GOFRunningTextItem word)
 {
     p_words.Add(word);
     Modified = true;
     return(word);
 }