Example #1
0
            public BaseTransmogrificationPotionGump(BaseTransmogrificationPotion potion)
                : base(100, 100)
            {
                Potion = potion;

                bool isrobe = potion is RobeTransmogrificationPotion;

                AddPage(0);

                AddBackground(0, 0, 370, isrobe ? 520 : 570, 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, isrobe ? 180 : 252, 1114513, string.Format("#{0}", Potion.GumpDesciption), 0x43FF, false, false); // <DIV ALIGN=CENTER>~1_TOKEN~</DIV>
                AddButton(10, isrobe ? 339 : 411, 0x15E1, 0x15E5, 1, GumpButtonType.Reply, 0);
                AddHtmlLocalized(35, isrobe ? 339 : 411, 150, 20, 1159494, 0x7FFF, false, false);                                                // Set Source Object
                AddButton(185, isrobe ? 339 : 411, 0x15E1, 0x15E5, 2, GumpButtonType.Reply, 0);
                AddHtmlLocalized(210, isrobe ? 339 : 411, 200, 20, 1159495, 0x7FFF, false, false);                                               // Set Destination Object

                if (Potion.Source != null && Potion.Source.Item != null && !Potion.Source.Item.Deleted)
                {
                    AddItem(50, isrobe ? 375 : 450, Potion.Source.Item.ItemID, Potion.Source.Item.Hue);
                    AddItemProperty(Potion.Source.Item.Serial);
                }

                if (Potion.Destination != null && Potion.Destination.Item != null && !Potion.Destination.Item.Deleted)
                {
                    AddItem(250, isrobe ? 375 : 450, Potion.Destination.Item.ItemID, Potion.Destination.Item.Hue);
                    AddItemProperty(Potion.Destination.Item.Serial);
                }

                AddButton(150, isrobe ? 465 : 515, 0x47B, 0x47C, 3, GumpButtonType.Reply, 0);
                AddHtmlLocalized(137, isrobe ? 445 : 495, 100, 18, 1114513, "#1159497", 0x7E00, false, false); // <DIV ALIGN=CENTER>~1_TOKEN~</DIV>
            }
Example #2
0
            public BaseTransmogrificationPotionConfirmGump(BaseTransmogrificationPotion potion)
                : base(100, 100)
            {
                Potion = potion;

                AddPage(0);

                AddBackground(0, 0, 320, 245, 0x6DB);
                AddHtmlLocalized(65, 10, 200, 20, 1114513, "#1159501", 0x67D5, false, false); // <DIV ALIGN=CENTER>~1_TOKEN~</DIV>
                AddHtmlLocalized(15, 50, 295, 140, 1159502, 0x72ED, false, false);            // You are about to transmogrify the items you have selected. The source object will be destroyed and the destination object will take on the properties of the source object.  Blessed status will be retained.  Are you sure you wish to proceed?  This process is final and cannot be undone.
                AddButton(30, 200, 0x867, 0x869, 1, GumpButtonType.Reply, 0);
                AddButton(265, 200, 0x867, 0x869, 0, GumpButtonType.Reply, 0);
                AddHtmlLocalized(33, 180, 100, 50, 1046362, 0x7FFF, false, false);  // Yes
                AddHtmlLocalized(273, 180, 100, 50, 1046363, 0x7FFF, false, false); // No
            }
Example #3
0
 public InternalTarget(BaseTransmogrificationPotion potion, bool source)
     : base(12, true, TargetFlags.None)
 {
     Potion   = potion;
     IsSource = source;
 }