private void OnRelayGumpClose(object sender, RelayInfo info) { if (info.ButtonID == 1) // If first button was clicked { int cancelBtnID = info.GetButtonID(1); // Retrieve the ID of the first button //... code to handle the cancel button click } }
private void OnRelayGumpDisplay(object sender, RelayInfo info) { string gumpTitle = info.Title; //... code to handle the Relay Gump display }In both examples, the class being used is Server.Gumps.RelayInfo, which is a part of the DLL library for the Ultima Online Forever game.