public LayeredSpellbookTicketHueGump(Mobile owner, LayeredSpellbookTicket deed) : base(200, 100) { m_deed = deed; int lineCount = ms_entryCount + 1; int i = 0; Closable = true; Disposable = true; Dragable = true; Resizable = false; AddPage(0); AddBackground(15, 15, 298 - 25, 30 + 50 * lineCount, 9250); AddAlphaRegion(25, 25, 276 - 25, 30 + 50 * lineCount - 22); AddLabel(40, 30, 1149, @"Please select hue of your spellbook:"); AddButton(80, 60 + 50 * i, 0xFA5, 0xFA7, i + 1, GumpButtonType.Reply, 0); //i+1 because 0 = exit AddItem(120, 60 + 50 * i, 0xEFA, 0x479); AddButton(80, 60 + 50 * ++i, 0xFA5, 0xFA7, i + 1, GumpButtonType.Reply, 0); //i+1 because 0 = exit AddItem(120, 60 + 50 * i, 0xEFA, 0x555); AddButton(80, 60 + 50 * ++i, 0xFA5, 0xFA7, i + 1, GumpButtonType.Reply, 0); //i+1 because 0 = exit AddItem(120, 60 + 50 * i, 0xEFA, 0x455); AddButton(80, 60 + 50 * ++i, 0xFA5, 0xFA7, i + 1, GumpButtonType.Reply, 0); //i+1 because 0 = exit AddItem(120, 60 + 50 * i, 0xEFA, 0x4E2); AddButton(80, 60 + 50 * ++i, 0xFA5, 0xFA7, i + 1, GumpButtonType.Reply, 0); //i+1 because 0 = exit AddItem(120, 60 + 50 * i, 0xEFA, 0x54E); AddButton(80, 60 + 50 * ++i, 0xFA5, 0xFA7, 0, GumpButtonType.Reply, 0); //0 = exit AddLabel(120, 60 + 50 * i, 1149, @"CANCEL"); }
public LayeredSpellbookTicketNameGump(Mobile owner, LayeredSpellbookTicket deed, int selectedHue) : base(200, 100) { m_deed = deed; m_selectedHue = selectedHue; int lineCount = ms_entryCount + 3; int i = 0; Closable = true; Disposable = true; Dragable = true; Resizable = false; AddPage(0); AddBackground(15, 15, 298 - 15, 40 + 20 * lineCount, 9250); AddAlphaRegion(25, 25, 276 - 15, 40 + 20 * lineCount - 22); AddLabel(40, 30, 1149, @"Please select name of your spellbook:"); AddButton(40, 40 + 20 * ++i, 0xFA5, 0xFA7, i, GumpButtonType.Reply, 0); //0 = exit AddLabel(80, 40 + 20 * i, 1149, @"Britain's Book of Compassion"); AddButton(40, 40 + 20 * ++i, 0xFA5, 0xFA7, i, GumpButtonType.Reply, 0); //0 = exit AddLabel(80, 40 + 20 * i, 1149, @"Buccaneer's Den's Book of Chaos"); AddButton(40, 40 + 20 * ++i, 0xFA5, 0xFA7, i, GumpButtonType.Reply, 0); //0 = exit AddLabel(80, 40 + 20 * i, 1149, @"Cove's Book of Love"); AddButton(40, 40 + 20 * ++i, 0xFA5, 0xFA7, i, GumpButtonType.Reply, 0); //0 = exit AddLabel(80, 40 + 20 * i, 1149, @"Jhelom's Book of Valor"); AddButton(40, 40 + 20 * ++i, 0xFA5, 0xFA7, i, GumpButtonType.Reply, 0); //0 = exit AddLabel(80, 40 + 20 * i, 1149, @"Magincia's Book of Pride"); AddButton(40, 40 + 20 * ++i, 0xFA5, 0xFA7, i, GumpButtonType.Reply, 0); //0 = exit AddLabel(80, 40 + 20 * i, 1149, @"Minoc's Book of Sacrifice"); AddButton(40, 40 + 20 * ++i, 0xFA5, 0xFA7, i, GumpButtonType.Reply, 0); //0 = exit AddLabel(80, 40 + 20 * i, 1149, @"Moonglow's Book of Honesty"); AddButton(40, 40 + 20 * ++i, 0xFA5, 0xFA7, i, GumpButtonType.Reply, 0); //0 = exit AddLabel(80, 40 + 20 * i, 1149, @"Nujel'm's Book of Pleasure"); AddButton(40, 40 + 20 * ++i, 0xFA5, 0xFA7, i, GumpButtonType.Reply, 0); //0 = exit AddLabel(80, 40 + 20 * i, 1149, @"Occlo's Book of the Mountain"); AddButton(40, 40 + 20 * ++i, 0xFA5, 0xFA7, i, GumpButtonType.Reply, 0); //0 = exit AddLabel(80, 40 + 20 * i, 1149, @"Serpents Hold's Book of Order"); AddButton(40, 40 + 20 * ++i, 0xFA5, 0xFA7, i, GumpButtonType.Reply, 0); //0 = exit AddLabel(80, 40 + 20 * i, 1149, @"Skara Brae's Book of Spirituality"); AddButton(40, 40 + 20 * ++i, 0xFA5, 0xFA7, i, GumpButtonType.Reply, 0); //0 = exit AddLabel(80, 40 + 20 * i, 1149, @"Trinsic's Book of Honor"); AddButton(40, 40 + 20 * ++i, 0xFA5, 0xFA7, i, GumpButtonType.Reply, 0); //0 = exit AddLabel(80, 40 + 20 * i, 1149, @"Vesper's Book of Industry"); AddButton(40, 40 + 20 * ++i, 0xFA5, 0xFA7, i, GumpButtonType.Reply, 0); //0 = exit AddLabel(80, 40 + 20 * i, 1149, @"Wind's Book of Magicka"); AddButton(40, 40 + 20 * ++i, 0xFA5, 0xFA7, i, GumpButtonType.Reply, 0); //0 = exit AddLabel(80, 40 + 20 * i, 1149, @"Yew's Book of Justice"); AddButton(40, 40 + 20 * ++i, 0xFA5, 0xFA7, i, GumpButtonType.Reply, 0); //0 = exit AddLabel(80, 40 + 20 * i, 1149, @"Delucia's Book of the Lost Lands"); AddButton(40, 40 + 20 * ++i, 0xFA5, 0xFA7, i, GumpButtonType.Reply, 0); //0 = exit AddLabel(80, 40 + 20 * i, 1149, @"Papua's Book of the Swamp"); AddButton(40, 40 + 20 * ++i, 0xFA5, 0xFA7, 0, GumpButtonType.Reply, 0); //0 = exit AddLabel(80, 40 + 20 * i, 1149, @"CANCEL"); AddLabel(40, 40 + 20 * ++i, 38, @"This selection cannot be undone!"); }