Ejemplo n.º 1
0
 public override object Clone()
 {
     ButtonElement link = new ButtonElement();
     link.ElementType = this.ElementType.Clone() as string;
     link.Name = this.Name.Clone() as string;
     link.X = this.X;
     link.Y = this.Y;
     link.Z = this.Z;
     link.GumpLink = (string)this.GumpLink.Clone();
     link.NormalId = this.NormalId;
     link.PressedId = this.PressedId;
     return link;
 }
Ejemplo n.º 2
0
        public override object Clone()
        {
            ButtonElement link = new ButtonElement();

            link.ElementType = this.ElementType.Clone() as string;
            link.Name        = this.Name.Clone() as string;
            link.X           = this.X;
            link.Y           = this.Y;
            link.Z           = this.Z;
            link.GumpLink    = (string)this.GumpLink.Clone();
            link.NormalId    = this.NormalId;
            link.PressedId   = this.PressedId;
            return(link);
        }
Ejemplo n.º 3
0
		//factory method
		public static BaseCompendiumPageElement CreateLabelElement(XElement elementXml)
		{
			var elementToReturn = new ButtonElement();

			try
			{
				elementToReturn.Deserialize(elementXml);
			}
			catch
			{
				elementToReturn = null;
			}

			return elementToReturn;
		}
Ejemplo n.º 4
0
        //factory method
        public static BaseCompendiumPageElement CreateLabelElement(XElement elementXml)
        {
            var elementToReturn = new ButtonElement();

            try
            {
                elementToReturn.Deserialize(elementXml);
            }
            catch
            {
                elementToReturn = null;
            }

            return(elementToReturn);
        }
Ejemplo n.º 5
0
        public static BaseCompendiumPageElement CreateInstance()
        {
            var link = new ButtonElement
            {
                X           = 0,
                Y           = 0,
                Name        = "new Button",
                ElementType = "ButtonElement",
                GumpLink    = "",
                NormalId    = 247,
                PressedId   = 248
            };

            return(link);
        }
Ejemplo n.º 6
0
        public static BaseCompendiumPageElement CreateInstance()
        {
            ButtonElement link = new ButtonElement();

            link.X           = 0;
            link.Y           = 0;
            link.Name        = "new Button";
            link.ElementType = "ButtonElement";

            link.GumpLink  = "";
            link.NormalId  = 247;
            link.PressedId = 248;

            return(link);
        }
Ejemplo n.º 7
0
		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;
		}
Ejemplo n.º 8
0
        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);
        }
Ejemplo n.º 9
0
		public static BaseCompendiumPageElement CreateInstance()
		{
			var link = new ButtonElement
			{
				X = 0,
				Y = 0,
				Name = "new Button",
				ElementType = "ButtonElement",
				GumpLink = "",
				NormalId = 247,
				PressedId = 248
			};

			return link;
		}
Ejemplo n.º 10
0
        public static BaseCompendiumPageElement CreateInstance()
        {
            ButtonElement link = new ButtonElement();
            link.X = 0;
            link.Y = 0;
            link.Name = "new Button";
            link.ElementType = "ButtonElement";

            link.GumpLink = "";
            link.NormalId = 247;
            link.PressedId = 248;

            return link;
        }