RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Gump opens Gump ?

Nova

Wanderer
Gump opens Gump ?

Hi,
I have a problem with a gump that should open a second gump.

The Button where you have to click to open the other gump is
[code:1]AddButton( 110, 120, 0xFAE, 0xFB0, 3, GumpButtonType.Reply, 1);[/code:1]
The response code
[code:1]
public override void OnResponse( NetState state, RelayInfo info )
{
Mobile from = state.Mobile;

switch ( info.ButtonID )
{
case 3:
{
from.SendGump( new HairDyeGump( from ) );
break;
}
}
}
[/code:1]

But this doesn't work
Anyone knows how it works ?

-Nova
 

Redleer

Wanderer
[code:1] {
Add( new GumpPage( 1 ) );
Add( new GumpButton( 130, 330, 5540, 5541, 1, GumpButtonType.Page, 2 ) );

Add( new GumpPage( 2 ) );
Add( new GumpButton( 130, 330, 5540, 5541, 1, GumpButtonType.Page, 1 ) );

}[/code:1]

something like that :?
 
Top