Ejemplo n.º 1
0
        public ContainerGump(AEntity containerItem, int gumpID)
            : base(containerItem.Serial, 0)
        {
            m_data    = IO.ContainerData.GetData(gumpID);
            m_item    = (Container)containerItem;
            IsMovable = true;

            AddControl(new GumpPicContainer(this, 0, 0, 0, m_data.GumpID, 0, m_item));
            LastControl.MakeDragger(this);
            LastControl.MakeCloseTarget(this);

            m_tickerText = (HtmlGump)AddControl(new HtmlGump(this, 0, 50, 50, 0, 0, 0, 0, string.Empty));
        }
Ejemplo n.º 2
0
        public StatusGump()
            : base(0, 0)
        {
            IsMovable = true;
            AddControl(new GumpPic(this, 0, 0, 0, 0x2A6C, 0));
            LastControl.MakeDragger(this);
            LastControl.MakeCloseTarget(this);


            AddControl(new TextLabelAscii(this, 0, 54, 44, 1, 6, "" + m.Name.ToString()));
            ControlsToUpdate.Add(LastControl);
            AddControl(new TextLabelAscii(this, 0, 88, 71, 1, 6, "" + m.Strength));
            ControlsToUpdate.Add(LastControl);
            AddControl(new TextLabelAscii(this, 0, 88, 99, 1, 6, "" + m.Dexterity));
            ControlsToUpdate.Add(LastControl);
            AddControl(new TextLabelAscii(this, 0, 87, 127, 1, 6, "" + m.Intelligence));
            ControlsToUpdate.Add(LastControl);

            AddControl(new TextLabelAscii(this, 0, 147, 67, 1, 6, "" + m.Health.Current));
            ControlsToUpdate.Add(LastControl);
            AddControl(new TextLabelAscii(this, 0, 147, 77, 1, 6, "" + m.Health.Max));
            ControlsToUpdate.Add(LastControl);


            AddControl(new TextLabelAscii(this, 0, 147, 94, 1, 6, "" + m.Stamina.Current));
            ControlsToUpdate.Add(LastControl);
            AddControl(new TextLabelAscii(this, 0, 147, 105, 1, 6, "" + m.Stamina.Max));
            ControlsToUpdate.Add(LastControl);

            AddControl(new TextLabelAscii(this, 0, 148, 122, 1, 6, "" + m.Mana.Current));
            ControlsToUpdate.Add(LastControl);
            AddControl(new TextLabelAscii(this, 0, 148, 133, 1, 6, "" + m.Mana.Max));
            ControlsToUpdate.Add(LastControl);

            AddControl(new TextLabelAscii(this, 0, 289, 127, 1, 6, "" + m.Followers.Current + "/" + m.Followers.Max));
            ControlsToUpdate.Add(LastControl);

            AddControl(new TextLabelAscii(this, 0, 212, 121, 1, 6, "" + m.Weight.Current));
            ControlsToUpdate.Add(LastControl);
            AddControl(new TextLabelAscii(this, 0, 212, 132, 1, 6, "" + m.Weight.Max));
            ControlsToUpdate.Add(LastControl);

            AddControl(new TextLabelAscii(this, 0, 219, 71, 1, 6, "" + m.StatCap));
            ControlsToUpdate.Add(LastControl);
            AddControl(new TextLabelAscii(this, 0, 218, 99, 1, 6, "" + m.Luck));
            ControlsToUpdate.Add(LastControl);
            AddControl(new TextLabelAscii(this, 0, 282, 99, 1, 6, "" + m.Gold));
            ControlsToUpdate.Add(LastControl);

            AddControl(new TextLabelAscii(this, 0, 352, 70, 1, 6, "" + m.ArmorRating));
            ControlsToUpdate.Add(LastControl);
            AddControl(new TextLabelAscii(this, 0, 352, 85, 1, 6, "" + m.ResistFire));
            ControlsToUpdate.Add(LastControl);
            AddControl(new TextLabelAscii(this, 0, 352, 100, 1, 6, "" + m.ResistCold));
            ControlsToUpdate.Add(LastControl);
            AddControl(new TextLabelAscii(this, 0, 352, 114, 1, 6, "" + m.ResistPoison));
            ControlsToUpdate.Add(LastControl);
            AddControl(new TextLabelAscii(this, 0, 352, 129, 1, 6, "" + m.ResistEnergy));
            ControlsToUpdate.Add(LastControl);

            AddControl(new TextLabelAscii(this, 0, 277, 70, 1, 6, "" + m.DamageMin + "/" + m.DamageMax));
            ControlsToUpdate.Add(LastControl);
        }
Ejemplo n.º 3
0
        public PaperDollGump(Mobile parent)
            : base(0, 0)
        {
            Parent = parent;

            m_UserInterface = UltimaServices.GetService <UserInterfaceService>();
            m_World         = UltimaServices.GetService <WorldModel>();
            m_Client        = UltimaServices.GetService <INetworkClient>();

            IsMovable = true;

            if (parent == (Mobile)EntityManager.GetPlayerObject())
            {
                AddControl(new GumpPic(this, 0, 0, 0, 0x07d0, 0));
                LastControl.MakeDragger(this);
                LastControl.MakeCloseTarget(this);

                // HELP
                AddControl(new Button(this, 0, 185, 44 + 27 * 0, 0x07ef, 0x07f0, ButtonTypes.Activate, 0,
                                      (int)Buttons.Help));
                ((Button)LastControl).GumpOverID = 0x07f1;
                // OPTIONS
                AddControl(new Button(this, 0, 185, 44 + 27 * 1, 0x07d6, 0x07d7, ButtonTypes.Activate, 0,
                                      (int)Buttons.Options));
                ((Button)LastControl).GumpOverID = 0x07d8;
                // LOG OUT
                AddControl(new Button(this, 0, 185, 44 + 27 * 2, 0x07d9, 0x07da, ButtonTypes.Activate, 0,
                                      (int)Buttons.LogOut));
                ((Button)LastControl).GumpOverID = 0x07db;
                // QUESTS
                AddControl(new Button(this, 0, 185, 44 + 27 * 3, 0x57b5, 0x57b7, ButtonTypes.Activate, 0,
                                      (int)Buttons.Quests));
                ((Button)LastControl).GumpOverID = 0x57b6;
                // SKILLS
                AddControl(new Button(this, 0, 185, 44 + 27 * 4, 0x07df, 0x07e0, ButtonTypes.Activate, 0,
                                      (int)Buttons.Skills));
                ((Button)LastControl).GumpOverID = 0x07e1;
                // GUILD
                AddControl(new Button(this, 0, 185, 44 + 27 * 5, 0x57b2, 0x57b4, ButtonTypes.Activate, 0,
                                      (int)Buttons.Guild));
                ((Button)LastControl).GumpOverID = 0x57b3;
                // PEACE / WAR
                AddControl(new Button(this, 0, 185, 44 + 27 * 6, 0x07e5, 0x07e6, ButtonTypes.Activate, 0,
                                      (int)Buttons.PeaceWarToggle));
                ((Button)LastControl).GumpOverID = 0x07e7;
                // STATUS
                AddControl(new Button(this, 0, 185, 44 + 27 * 7, 0x07eb, 0x07ec, ButtonTypes.Activate, 0,
                                      (int)Buttons.Status));
                ((Button)LastControl).GumpOverID = 0x07ed;

                // Paperdoll
                AddControl(new PaperDollInteractable(this, 0, 8, 21)
                {
                    SourceEntity = Parent
                });
            }
            else
            {
                AddControl(new GumpPic(this, 0, 0, 0, 0x07d1, 0));
                LastControl.MakeDragger(this);
                LastControl.MakeCloseTarget(this);

                // Paperdoll
                AddControl(new PaperDollInteractable(this, 0, 8, 21)
                {
                    SourceEntity = Parent
                });
            }
        }