public FacingGump(BannerDeed banner, int itemID, Point3D location, BaseHouse house) : base(150, 50) { m_Banner = banner; m_ItemID = itemID; m_Location = location; m_House = house; Closable = true; Disposable = true; Dragable = true; Resizable = false; AddPage(0); AddBackground(0, 0, 300, 150, 0xA28); AddItem(90, 30, itemID + 1); AddItem(180, 30, itemID); AddButton(50, 35, 0x868, 0x869, (int)Buttons.East, GumpButtonType.Reply, 0); AddButton(145, 35, 0x868, 0x869, (int)Buttons.South, GumpButtonType.Reply, 0); }
public InternalGump(BannerDeed banner) : base(100, 200) { m_Banner = banner; Closable = true; Disposable = true; Dragable = true; Resizable = false; AddPage(0); AddBackground(25, 0, 520, 230, 0xA28); AddLabel(70, 12, 0x3E3, "Choose a Banner:"); int itemID = Start; for (int i = 1; i <= 4; i++) { AddPage(i); for (int j = 0; j < 8; j++, itemID += 2) { AddItem(50 + 60 * j, 70, itemID); AddButton(50 + 60 * j, 50, 0x845, 0x846, itemID, GumpButtonType.Reply, 0); } if (i > 1) { AddButton(75, 198, 0x8AF, 0x8AF, 0, GumpButtonType.Page, i - 1); } if (i < 4) { AddButton(475, 198, 0x8B0, 0x8B0, 0, GumpButtonType.Page, i + 1); } } }
public InternalTarget(BannerDeed banner, int itemID) : base(-1, true, TargetFlags.None) { m_Banner = banner; m_ItemID = itemID; }