示例#1
0
        public SceneInfo CreateScene()
        {
            var si = new SceneInfo(this, FreeDefaultSceneName);

            SceneInfos.Add(si);
            return(si);
        }
示例#2
0
 public TaskInfo(ProjectInfo proj, XmlElement root)
 {
     ParentProjectInfo = proj;
     Name = root.GetAttribute("Name");
     foreach (XmlElement node in root.GetElementsByTagName("Scene"))
     {
         SceneInfos.Add(new SceneInfo(this, node));
     }
 }
示例#3
0
        protected void MakeTitle()
        {
            Info_Scene title = new Info_Scene();

            title.Kind = 1;
            //title.File = "$$WHITE$$";
            title.Queue = currentQueue;
            title.Group = currentGroup;
            SceneInfos.Add(title);
            IncrementGroup();
        }
示例#4
0
 public void AddScenes(List <Info_Scene> list, int startLevel, bool active)
 {
     foreach (var item in list)
     {
         if (item.Kind == 0)
         {
             item.Z = (startLevel++).ToString();
         }
         item.Group  = StoryBase.currentGroup;
         item.Queue  = StoryBase.currentQueue;
         item.Active = active;
         if (!SceneInfos.Contains(item))
         {
             SceneInfos.Add(item);
         }
     }
 }
示例#5
0
        protected void AddText(string story, Teller who, bool slow, bool active, int?fontSize = null)
        {
            string tran = "W..500>O.B.400.100";
            string fs   = null;

            if (fontSize.HasValue)
            {
                fs = $"{fontSize.Value}";
            }
            if (who == Teller.Female)
            {
                if (slow)
                {
                    tran = "W..1500>O.B.400.100";
                }
                SceneInfos.Add(new Info_Scene(1)
                {
                    Active = active, Story = story, Description = story, Group = currentGroup, Queue = currentQueue, S = fs, T = tran, O = "0", R = "2"
                });
            }
            else if (who == Teller.Male)
            {
                SceneInfos.Add(new Info_Scene(1)
                {
                    Active = active, Story = $"{story}", Description = story, Group = currentGroup, Queue = currentQueue, S = fs, T = tran, O = "0", R = "2"
                });
            }
            else if (who == Teller.MaleThoughts)
            {
                SceneInfos.Add(new Info_Scene(1)
                {
                    Active = active, Story = $"[{story}]", Description = story, Group = currentGroup, Queue = currentQueue, S = fs, T = tran, O = "0", R = "3"
                });
            }
            else if (who == Teller.Author)
            {
                SceneInfos.Add(new Info_Scene(1)
                {
                    Active = active, Story = $"[{story}]", Description = story, Group = currentGroup, Queue = currentQueue, S = fs, T = tran, O = "0", R = "3"
                });
            }
        }
示例#6
0
        public void AddScene(SceneInfo si)
        {
            if (si == null || si.ParentTaskInfo == this)
            {
                return;
            }
            si.Remove();
            int    i    = 0;
            string name = si.Name;

            while (GetScene(name) != null)
            {
                name = si.Name + "_" + (++i).ToString();
            }
            if (i > 0)
            {
                si.Name = name;
            }
            si.ParentTaskInfo = this;
            SceneInfos.Add(si);
            ProjectDoc.Instance.OnAppendedSceneInfo(si);
            OperationHistory.Instance.IsDirty = true;
        }