Files
abysmal-isle/Scripts/SubSystem/MiniToolbar.cs
Unstable Kitsune b918192e4e Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
2023-11-28 23:20:26 -05:00

41 lines
920 B
C#

using System;
using System.Collections;
using Server;
using Server.Gumps;
using Server.Mobiles;
using Server.Network;
namespace Server.Gumps
{
public class MiniToolbar : Gump
{
private Mobile m_From;
public MiniToolbar( Mobile from ) : this( from, 5, 33 )
{
}
public MiniToolbar( Mobile from, int x, int y ) : base( 0, 0 )
{
m_From = from;
m_From.CloseGump( typeof( MiniToolbar ) );
Closable=true;
Disposable=true;
Dragable=true;
Resizable=false;
AddPage( 0 );
AddBackground( x, y, 62, 22, 9200 );
AddImageTiledButton( x + 4, y + 5, 1210, 1209, 1, GumpButtonType.Reply, 0, 1352, 0, 140, 20, 3002086 ); // Maximize
AddLabel( x + 20, y, 0, @"Show" );
}
public override void OnResponse( NetState state, RelayInfo info )
{
if ( info.ButtonID == 1 )
m_From.SendGump( new FullToolbar( m_From ) );
m_From.CloseGump( typeof( MiniToolbar ) );
}
}
}