Exemple #1
0
        public ConfirmTentPlacementGump(Mobile owner, TentAddon tent, TentFlap flap, TentBedroll roll, SecureTentChest chest, Rectangle2D bounds)
            : base(10, 10)
        {
            m_Owner        = owner;
            m_Tent         = tent;
            m_Flap         = flap;
            m_Bedroll      = roll;
            m_Chest        = chest;
            m_RegionBounds = bounds;

            Closable   = false;
            Disposable = false;
            Resizable  = false;
            Dragable   = true;

            AddPage(1);
            AddBackground(10, 10, 325, 305, 9250);
            AddImageTiled(25, 25, 295, 11, 50);
            AddLabel(90, 35, 0, "Confirm Tent Placement");

            AddButton(35, 275, 4020, 4022, 0, GumpButtonType.Reply, 1);               //Cancel
            AddButton(280, 275, 4023, 4025, 1, GumpButtonType.Reply, 1);              //Ok

            AddHtml(27, 75, 290, 200, String.Format("<center>You are about to place a travel tent.</center><br> Within, you will find a bedroll "
                                                    + "and a secure wooden chest.<br> To repack your tent, or to logout safely, double-click "
                                                    + "your bedroll. When doing so, please make sure that all items are removed from the chest."
                                                    + "<br> Please press okay to continue, or press cancel to stop tent placement."), false, false);
        }
Exemple #2
0
        public TravelTentRegion(Mobile owner, SecureTentChest chest, Map map, Rectangle2D bounds, int height)
            : base(String.Format("travel tent of {0}", (owner == null ? "null" : owner.RawName)), map, 100, bounds)
        {
            m_Owner  = owner;
            m_Chest  = chest;
            m_Bounds = bounds;
            m_Height = height;

            Register();
        }