public void VisitNodeChangeBackground(NodeChangeBackground ncb)
 {
     if (ncb.Background == null)
     {
         _report.AddMessage(ProjectReportMessage.MessageSeverity.Error, "A change background node has no assigned background.", ncb);
     }
     else if (_poseFiles.Contains(ncb.Background))
     {
         _report.AddMessage(ProjectReportMessage.MessageSeverity.Warning, "A change background node has a background that's also being used as a pose.", ncb);
     }
 }
Пример #2
0
 public void VisitNodeChangeBackground(NodeChangeBackground ncb)
 {
     _writer.WriteStartElement("NodeChangeBackground");
     if (ncb.Background != null)
     {
         _writer.WriteAttributeString("Path", _projectService.GetRelativePath(ncb.Background.Path));
     }
     _writer.WriteAttributeString("TransitionType", ncb.TransitionType.ToString());
     _writer.WriteAttributeString("TransitionSpeed", ncb.TransitionSpeed.ToString());
     _writer.WriteEndElement();
 }
Пример #3
0
        public void VisitNodeChangeBackground(NodeChangeBackground ncb)
        {
            var resourcePath = "resource/" + _projectService.GetRelativePath(ncb.Background.Path).Replace('\\', '/').Replace(".png", ".DDS");

            Backgrounds.Add(resourcePath);

            _writer.WriteStartElement("NodeChangeBackground");
            if (ncb.Background != null)
            {
                _writer.WriteAttributeString("Path", resourcePath);
            }
            _writer.WriteAttributeString("TransitionType", ncb.TransitionType.ToString());
            _writer.WriteAttributeString("TransitionSpeed", ncb.TransitionSpeed.ToString());
            _writer.WriteEndElement();
        }
Пример #4
0
 public void VisitNodeChangeBackground(NodeChangeBackground ncb)
 {
 }
Пример #5
0
 public void VisitNodeChangeBackground(NodeChangeBackground ncb)
 {
     UsedResources.Add(ncb.Background);
 }