Ejemplo n.º 1
0
        public ConfirmTeleportGump(VendorSearchMap map, Mobile pm)
            : base(50, 50)
        {
            VendorMap = map;
            User = pm;

            AddBackground(0, 0, 500, 300, 30546);

            if (VendorMap.Vendor != null && VendorMap.SetLocation != Point3D.Zero)
                AddHtmlLocalized(40, 50, 420, 200, 1154637, String.Format("{0}\t{1}", VendorMap.GetCoords(), VendorMap.Vendor.Map.ToString()), 0xFFFF, false, false); // Please select 'Accept' if you would like to return to ~1_loc~ (~2_facet~).  This map will be deleted after use.
            else
                AddHtmlLocalized(40, 50, 420, 200, 1154635, String.Format("{0}\t{1}\t{2}", Cost.ToString(), VendorMap.Vendor.Name, VendorMap.TimeRemaining.ToString()), 0xFFFF, false, false); // Please select 'Accept' if you would like to pay ~1_cost~ gold to teleport to vendor ~2_name~.  For this price you will also be able to teleport back to this location within the next ~3_minutes~ minutes.

            AddButton(40, 260, 30535, 30535, 0, GumpButtonType.Reply, 0);
            AddHtmlLocalized(90, 260, 150, 20, 1153439, 0xFFFF, false, false);

            AddButton(433, 260, 30534, 30534, 1, GumpButtonType.Reply, 0);
            AddHtmlLocalized(300, 260, 120, 20, 1114514, "#1073996", 0xFFFF, false, false);
        }