Esempio n. 1
0
 public DecoImageTileButtonInfo(DecoParameters deco, int iconID, TextDefinition label, int localizedTooltip) : base(iconID, 0, label, localizedTooltip)                      //TODO: Change ShowID to use something else if there's nothign found in center
 {
     m_DecoParameters = deco;
 }
Esempio n. 2
0
 public DecoImageTileButtonInfo(DecoParameters deco, TextDefinition label) : this(deco, ShowID(deco.Center), label, -1)
 {
 }
Esempio n. 3
0
 public DecoImageTileButtonInfo(DecoParameters deco, int iconID, TextDefinition label) : this(deco, iconID, label, -1)
 {
 }
Esempio n. 4
0
        public static void AddDeco_Callback(Mobile from, Map map, Point3D start, Point3D end, object state)
        {
            DecoParameters decoParams = (DecoParameters)state;

            int height = end.Y - start.Y + 1;
            int width  = end.X - start.X + 1;

            for (int x = 0; x < width; x++)
            {
                int xcord = start.X + x;

                for (int y = 0; y < height; y++)
                {
                    int ycord = start.Y + y;

                    if (xcord == start.X)
                    {
                        if (ycord == start.Y)
                        {
                            AddItems(decoParams.Top, new Point3D(xcord, ycord, start.Z), map);
                        }
                        else if (ycord == end.Y)
                        {
                            AddItems(decoParams.Left, new Point3D(xcord, ycord, start.Z), map);
                        }
                        else
                        {
                            AddItems(decoParams.West, new Point3D(xcord, ycord, start.Z), map);
                        }
                    }
                    else if (ycord == start.Y)
                    {
                        if (xcord == end.X)
                        {
                            AddItems(decoParams.Right, new Point3D(xcord, ycord, start.Z), map);
                        }
                        else
                        {
                            AddItems(decoParams.North, new Point3D(xcord, ycord, start.Z), map);
                        }
                    }
                    else if (xcord == end.X)
                    {
                        if (ycord == end.Y)
                        {
                            AddItems(decoParams.Bottom, new Point3D(xcord, ycord, start.Z), map);
                        }
                        else
                        {
                            AddItems(decoParams.East, new Point3D(xcord, ycord, start.Z), map);
                        }
                    }
                    else if (ycord == end.Y)
                    {
                        AddItems(decoParams.South, new Point3D(xcord, ycord, start.Z), map);
                    }
                    else
                    {
                        AddItems(decoParams.Center, new Point3D(xcord, ycord, start.Z), map);
                    }
                }
            }
        }
Esempio n. 5
0
			public DecoImageTileButtonInfo(DecoParameters deco, int iconID, TextDefinition label, int localizedTooltip)
				: base(iconID, 0, label, localizedTooltip)
			{
				//TODO: Change ShowID to use something else if there's nothing found in center
				DecoParameters = deco;
			}
Esempio n. 6
0
			public DecoImageTileButtonInfo(DecoParameters deco, int iconID, TextDefinition label)
				: this(deco, iconID, label, -1)
			{ }
Esempio n. 7
0
			public DecoImageTileButtonInfo(DecoParameters deco, TextDefinition label)
				: this(deco, ShowID(deco.Center), label, -1)
			{ }
 //TODO: Change ShowID to use something else if there's nothign found in center
 public DecoImageTileButtonInfo( DecoParameters deco, int iconID, TextDefinition label, int localizedTooltip )
     : base(iconID, 0, label, localizedTooltip)
 {
     m_DecoParameters = deco;
 }