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; }
public DecoImageTileButtonInfo(DecoParameters deco, TextDefinition label) : this(deco, ShowID(deco.Center), label, -1) { }
public DecoImageTileButtonInfo(DecoParameters deco, int iconID, TextDefinition label) : this(deco, iconID, label, -1) { }
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); } } } }
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; }
//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; }