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!

WarningGump error in Coding ?

mumba.hasa

Wanderer
WarningGump error in Coding ?

Hi,

when using the WarningGump with a cancel button, the cancel
button won't be there. Debugging showed, that the execution order of the constructors is different than expected...

The constructor with the additional parameter for the cancel button sets the
member variable m_CancelButton, after the other constructor with the real coding has been called. Resulting in that the cancel button is not shown, regardless of the given parameter "cancelButton".

So I corrected the original coding in order to work correct. Because having no
submit rights :) would you mind checking in the corrected file?

10x, Mumba
 

Attachments

  • WarningGump.cs
    2.4 KB · Views: 15
Top