public DeleteByTypeGump(Mobile staff, ArrayList todelete, int count, Item item, string typename, DeleteByTypeGumpPage page, int precount) : base(0, 0) { m_staff = staff; m_todelete = todelete; m_count = count; m_item = item; m_typename = typename; string precountstring = "You will delete [" + precount + "] Items."; m_Page = page; this.Closable = true; this.Disposable = true; this.Dragable = true; this.Resizable = false; this.AddPage(0); this.AddBlackAlpha(150, 130, 270, 143); this.AddBackground(150, 130, 270, 143, 9200); this.AddLabel(216, 135, 0, @"Global Delete By Type"); this.AddLabel(370, 135, 0, @"v1.0"); switch (page) { case DeleteByTypeGumpPage.start: { this.AddButtonLabeled(170, 170, GetButtonID(1, 1), "Target Item of Type to Delete"); this.AddLabel(274, 192, 0, @"or"); this.AddLabel(174, 213, 0, @"Enter TypeName of Item to Delete"); this.AddAlphaRegion(173, 237, 180, 20); this.AddTextEntry(173, 237, 180, 20, 0, 0, @""); this.AddButtonLabeled(360, 237, GetButtonID(1, 2), ""); break; } case DeleteByTypeGumpPage.targeting: { this.AddLabel(170, 160, 0, @"Delete all Items of the Targeted Type?"); this.AddHtml(150, 185, 270, 20, Color(Center(precountstring), White), false, false); this.AddButtonLabeled(225, 210, GetButtonID(1, 3), "Yes, Delete!"); this.AddPageButton(225, 235, GetButtonID(0, 0), "No, Cancel", DeleteByTypeGumpPage.start); break; } case DeleteByTypeGumpPage.textentry: { this.AddLabel(195, 160, 0, @"Delete all Items of this Type?"); this.AddHtml(150, 185, 270, 20, Color(Center(precountstring), White), false, false); this.AddButtonLabeled(225, 210, GetButtonID(1, 4), "Yes, Delete!"); this.AddPageButton(225, 235, GetButtonID(0, 0), "No, Cancel", DeleteByTypeGumpPage.start); break; } } }
public DeleteByTypeGump(Mobile staff, ArrayList todelete, int count, Item item, string typename, DeleteByTypeGumpPage page, int precount) : base( 0, 0 ) { m_staff = staff; m_todelete = todelete; m_count = count; m_item = item; m_typename = typename; string precountstring = "You will delete [" + precount + "] Items."; m_Page = page; this.Closable=true; this.Disposable=true; this.Dragable=true; this.Resizable=false; this.AddPage(0); this.AddBlackAlpha(150, 130, 270, 143 ); this.AddBackground(150, 130, 270, 143, 9200); this.AddLabel(216, 135, 0, @"Global Delete By Type"); this.AddLabel(370, 135, 0, @"v1.0"); switch ( page ) { case DeleteByTypeGumpPage.start: { this.AddButtonLabeled( 170, 170, GetButtonID( 1, 1 ), "Target Item of Type to Delete" ); this.AddLabel(274, 192, 0, @"or"); this.AddLabel(174, 213, 0, @"Enter TypeName of Item to Delete"); this.AddAlphaRegion(173, 237, 180, 20 ); this.AddTextEntry(173, 237, 180, 20, 0, 0, @""); this.AddButtonLabeled( 360, 237, GetButtonID( 1, 2 ), "" ); break; } case DeleteByTypeGumpPage.targeting: { this.AddLabel(170, 160, 0, @"Delete all Items of the Targeted Type?"); this.AddHtml(150, 185, 270, 20, Color(Center(precountstring), White), false, false ); this.AddButtonLabeled( 225, 210, GetButtonID( 1, 3 ), "Yes, Delete!" ); this.AddPageButton( 225, 235, GetButtonID( 0, 0 ), "No, Cancel", DeleteByTypeGumpPage.start); break; } case DeleteByTypeGumpPage.textentry: { this.AddLabel(195, 160, 0, @"Delete all Items of this Type?"); this.AddHtml(150, 185, 270, 20, Color(Center(precountstring), White), false, false ); this.AddButtonLabeled( 225, 210, GetButtonID( 1, 4 ), "Yes, Delete!" ); this.AddPageButton( 225, 235, GetButtonID( 0, 0 ), "No, Cancel", DeleteByTypeGumpPage.start); break; } } }
public void AddPageButton( int x, int y, int buttonID, string text, DeleteByTypeGumpPage page) { AddButton( x, y - 1, 4005, 4006, buttonID, GumpButtonType.Reply, 0 ); AddHtml( x + 35, y, 200, 20, Color( text, White ), false, false ); }
public void AddPageButton(int x, int y, int buttonID, string text, DeleteByTypeGumpPage page) { AddButton(x, y - 1, 4005, 4006, buttonID, GumpButtonType.Reply, 0); AddHtml(x + 35, y, 200, 20, Color(text, White), false, false); }