コード例 #1
0
        public virtual object Clone()
        {
            var element = new BaseCompendiumPageElement
            {
                Name        = Name.Clone() as string,
                ElementType = ElementType.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z
            };

            return(element);
        }
コード例 #2
0
ファイル: AlphaAreaElement.cs プロジェクト: uotools/JustUO
        public override object Clone()
        {
            var image = new AlphaAreaElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                Width       = Width,
                Height      = Height
            };

            return(image);
        }
コード例 #3
0
        public override object Clone()
        {
            var item = new ItemElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                ItemId      = ItemId,
                Hue         = Hue
            };

            return(item);
        }
コード例 #4
0
ファイル: LabelElement.cs プロジェクト: uotools/JustUO
        public override object Clone()
        {
            var label = new LabelElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                Text        = (string)Text.Clone(),
                Hue         = Hue
            };

            return(label);
        }
コード例 #5
0
ファイル: ButtonElement.cs プロジェクト: uotools/JustUO
        public override object Clone()
        {
            var link = new ButtonElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                GumpLink    = (string)GumpLink.Clone(),
                NormalId    = NormalId,
                PressedId   = PressedId
            };

            return(link);
        }
コード例 #6
0
ファイル: BackgroundElement.cs プロジェクト: uotools/JustUO
        public override object Clone()
        {
            var image = new BackgroundElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                GumpId      = GumpId,
                Width       = Width,
                Height      = Height
            };

            return(image);
        }
コード例 #7
0
ファイル: ImageElement.cs プロジェクト: uotools/JustUO
        public override object Clone()
        {
            var image = new ImageElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                GumpId      = GumpId,
                Hue         = Hue
            };


            return(image);
        }
コード例 #8
0
ファイル: HtmlElement.cs プロジェクト: uotools/JustUO
        public override object Clone()
        {
            var html = new HtmlElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                Text        = (string)Text.Clone(),
                Width       = Width,
                Height      = Height,
                Scrollbar   = Scrollbar,
                Background  = Background
            };

            return(html);
        }
コード例 #9
0
        public override object Clone()
        {
            var link = new HyperLinkElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                GumpLink    = (string)GumpLink.Clone(),
                WebColor    = (string)WebColor.Clone(),
                Text        = (string)Text.Clone(),
                Underlined  = Underlined,
                Italicized  = Italicized,
                Bold        = Bold,
                FontSize    = FontSize
            };

            return(link);
        }