Ejemplo n.º 1
0
        private void LoadOverlayBlocks(XmlNode node)
        {
            foreach (XmlNode overlayBlockNode in node.ChildNodes)
            {
                if (SkipNode(overlayBlockNode))
                {
                    continue;
                }
                LinkDefinition.LinkWrapper wrapper = new LinkDefinition.LinkWrapper();
                if (overlayBlockNode.Name == "link")
                {
                    LinkDefinition link = LinkDefinition.LoadLink(overlayBlockNode);
                    wrapper.Link = link;
                }
                if (overlayBlockNode.Name == "conditional")
                {
                    ConditionalDefinition conditional = ConditionalDefinition.LoadConditional(overlayBlockNode);
                    wrapper.Conditional = conditional;
                }
                if (overlayBlockNode.Name == "artoverlay")
                {
                    BlockDefinition b = SpecialBlockDefinition.LoadSectionDefinition(null, overlayBlockNode);
                    wrapper.CardArtCrop = b;
                }

                OverlayBlocks.Add(wrapper);
            }
        }
Ejemplo n.º 2
0
        private void LoadOverlayBlocks(XmlNode node)
        {
            foreach (XmlNode overlayBlockNode in node.ChildNodes)
            {
                if (SkipNode(overlayBlockNode))
                {
                    continue;
                }
                LinkDefinition.LinkWrapper wrapper = new LinkDefinition.LinkWrapper();
                if (overlayBlockNode.Name == "link")
                {
                    LinkDefinition link = LinkDefinition.LoadLink(overlayBlockNode);
                    wrapper.Link = link;
                }
                if (overlayBlockNode.Name == "conditional")
                {
                    ConditionalDefinition conditional = ConditionalDefinition.LoadConditional(overlayBlockNode);
                    wrapper.Conditional = conditional;
                }
                if (overlayBlockNode.Name == "artoverlay")
                {
                    BlockDefinition b = SpecialBlockDefinition.LoadSectionDefinition(null, overlayBlockNode);
                    wrapper.CardArtCrop = b;
                }

                OverlayBlocks.Add(wrapper);
            }
        }
Ejemplo n.º 3
0
        private void LoadTextBlocks(XmlNode node)
        {
            foreach (XmlNode textBlocksNode in node.ChildNodes)
            {
                if (SkipNode(textBlocksNode))
                {
                    continue;
                }
                LinkDefinition.LinkWrapper wrapper = new LinkDefinition.LinkWrapper();
                if (textBlocksNode.Name == "link")
                {
                    LinkDefinition link = LinkDefinition.LoadLink(textBlocksNode);
                    wrapper.Link = link;
                }
                if (textBlocksNode.Name == "conditional")
                {
                    ConditionalDefinition conditional = ConditionalDefinition.LoadConditional(textBlocksNode);
                    wrapper.Conditional = conditional;
                }

                TextBlocks.Add(wrapper);
            }
        }
Ejemplo n.º 4
0
        private void LoadTextBlocks(XmlNode node)
        {
            foreach (XmlNode textBlocksNode in node.ChildNodes)
            {
                if (SkipNode(textBlocksNode))
                {
                    continue;
                }
                LinkDefinition.LinkWrapper wrapper = new LinkDefinition.LinkWrapper();
                if (textBlocksNode.Name == "link")
                {
                    LinkDefinition link = LinkDefinition.LoadLink(textBlocksNode);
                    wrapper.Link = link;
                }
                if (textBlocksNode.Name == "conditional")
                {
                    ConditionalDefinition conditional = ConditionalDefinition.LoadConditional(textBlocksNode);
                    wrapper.Conditional = conditional;
                }

                TextBlocks.Add(wrapper);
            }
        }