Exemple #1
0
            public TransmogrificationPotionGump(TransmogrificationPotion item)
                : base(100, 100)
            {
                _Item = item;

                AddPage(0);

                AddBackground(0, 0, 370, 520, 0x6DB);
                AddHtmlLocalized(85, 10, 200, 20, 1114513, "#1159501", 0x67D5, false, false); // <DIV ALIGN=CENTER>~1_TOKEN~</DIV>
                AddItem(160, 50, 0x9D83);
                AddItem(145, 20, 0x376F);
                AddHtmlLocalized(10, 150, 350, 180, 1114513, "#1159496", 0x43FF, false, false); // <DIV ALIGN=CENTER>~1_TOKEN~</DIV>
                AddButton(10, 339, 0x15E1, 0x15E5, 1, GumpButtonType.Reply, 0);
                AddHtmlLocalized(35, 339, 150, 20, 1159494, 0x7FFF, false, false);              // Set Source Object
                AddButton(185, 339, 0x15E1, 0x15E5, 2, GumpButtonType.Reply, 0);
                AddHtmlLocalized(210, 339, 200, 20, 1159495, 0x7FFF, false, false);             // Set Destination Object

                if (_Item.SourceObject != null)
                {
                    AddItem(50, 375, _Item.SourceObject.ItemID, _Item.SourceObject.Hue);
                    AddItemProperty(_Item.SourceObject.Serial);
                }

                if (_Item.DestinationObject != null)
                {
                    AddItem(250, 375, _Item.DestinationObject.ItemID, _Item.DestinationObject.Hue);
                    AddItemProperty(_Item.DestinationObject.Serial);
                }

                AddButton(150, 465, 0x47B, 0x47C, 3, GumpButtonType.Reply, 0);
                AddHtmlLocalized(137, 445, 100, 18, 1114513, "#1159497", 0x7E00, false, false); // <DIV ALIGN=CENTER>~1_TOKEN~</DIV>
            }
Exemple #2
0
 public InternalTarget(TransmogrificationPotion item, bool source)
     : base(12, true, TargetFlags.None)
 {
     _Item     = item;
     _IsSource = source;
 }