Пример #1
0
                public FacingGump(DecorativeShardShieldDeed shield, int itemID, Point3D location, BaseHouse house)
                    : base(150, 50)
                {
                    this.m_Shield   = shield;
                    this.m_ItemID   = itemID;
                    this.m_Location = location;
                    this.m_House    = house;

                    this.AddBackground(0, 0, 300, 150, 0xA28);

                    this.AddItem(90, 30, itemID);
                    this.AddItem(180, 30, GetSouthItemID(itemID));

                    this.AddButton(50, 35, 0x867, 0x869, (int)Buttons.East, GumpButtonType.Reply, 0);
                    this.AddButton(145, 35, 0x867, 0x869, (int)Buttons.South, GumpButtonType.Reply, 0);
                }
Пример #2
0
            public InternalGump(DecorativeShardShieldDeed shield, int page)
                : base(150, 50)
            {
                this.m_Shield = shield;
                this.m_Page   = page;

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

                this.AddPage(0);

                this.AddBackground(50, 89, 647, 505, 2600);
                this.AddLabel(103, 114, 0, @"Choose from the following:");

                int itemID = Start;


                for (int i = 0; i < 27; i++)
                {
                    if (8 >= i)
                    {
                        this.AddItem(82 + i * 65, 180, itemID);
                        this.AddTooltip(1104344 + i);
                        this.AddButton(92 + i * 65, 155, 0x845, 0x846, itemID, GumpButtonType.Reply, 0);
                        this.AddTooltip(1104344 + i);
                    }
                    else if (i > 8 && i < 18)
                    {
                        this.AddItem(82 + ((i - 9) * 65), 330, itemID);
                        this.AddTooltip(1104344 + i);
                        this.AddButton(92 + ((i - 9) * 65), 305, 0x845, 0x846, itemID, GumpButtonType.Reply, 0);
                        this.AddTooltip(1104344 + i);
                    }
                    else if (i >= 18 && 26 >= i)
                    {
                        this.AddItem(82 + ((i - 18) * 65), 480, itemID);
                        this.AddTooltip(1104344 + i);
                        this.AddButton(92 + ((i - 18) * 65), 455, 0x845, 0x846, itemID, GumpButtonType.Reply, 0);
                        this.AddTooltip(1104344 + i);
                    }

                    itemID++;
                }
            }
Пример #3
0
 public InternalTarget(DecorativeShardShieldDeed shield, int itemID)
     : base(-1, true, TargetFlags.None)
 {
     this.m_Shield = shield;
     this.m_ItemID = itemID;
 }
Пример #4
0
 public InternalGump(DecorativeShardShieldDeed shield)
     : this(shield, 1)
 {
 }
Пример #5
0
                public FacingGump(DecorativeShardShieldDeed shield, int itemID, Point3D location, BaseHouse house)
                    : base(150, 50)
                {
                    this.m_Shield = shield;
                    this.m_ItemID = itemID;
                    this.m_Location = location;
                    this.m_House = house;

                    this.AddBackground(0, 0, 300, 150, 0xA28);

                    this.AddItem(90, 30, itemID);
                    this.AddItem(180, 30, GetSouthItemID(itemID));

                    this.AddButton(50, 35, 0x867, 0x869, (int)Buttons.East, GumpButtonType.Reply, 0);
                    this.AddButton(145, 35, 0x867, 0x869, (int)Buttons.South, GumpButtonType.Reply, 0);
                }
Пример #6
0
 public InternalTarget(DecorativeShardShieldDeed shield, int itemID)
     : base(-1, true, TargetFlags.None)
 {
     this.m_Shield = shield;
     this.m_ItemID = itemID;
 }
Пример #7
0
            public InternalGump(DecorativeShardShieldDeed shield, int page)
                : base(150, 50)
            {
                this.m_Shield = shield;
                this.m_Page = page;

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

                this.AddPage(0);

                this.AddBackground(50, 89, 647, 505, 2600);
                this.AddLabel(103, 114, 0, @"Choose from the following:");

                int itemID = Start;


                for (int i = 0; i < 27; i++)
                {
                    if (8 >= i)
                    {
                        this.AddItem(82 + i * 65, 180, itemID);
                        this.AddTooltip(1104344 + i);
                        this.AddButton(92 + i * 65, 155, 0x845, 0x846, itemID, GumpButtonType.Reply, 0);
                        this.AddTooltip(1104344 + i);
                    }
                    else if (i > 8 && i < 18)
                    {

                        this.AddItem(82 + ((i - 9) * 65), 330, itemID);
                        this.AddTooltip(1104344 + i);
                        this.AddButton(92 + ((i - 9) * 65), 305, 0x845, 0x846, itemID, GumpButtonType.Reply, 0);
                        this.AddTooltip(1104344 + i);
                    }
                    else if (i >= 18 && 26 >= i)
                    {
                        this.AddItem(82 + ((i - 18) * 65), 480, itemID);
                        this.AddTooltip(1104344 + i);
                        this.AddButton(92 + ((i - 18) * 65), 455, 0x845, 0x846, itemID, GumpButtonType.Reply, 0);
                        this.AddTooltip(1104344 + i);
                    }

                    itemID++;
                }
            }
Пример #8
0
 public InternalGump(DecorativeShardShieldDeed shield)
     : this(shield, 1)
 {
 }