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!

Gumps, Pages and Buttons

LuxoR

Sorceror
Gumps, Pages and Buttons

Could someone please post a example of the proper use of AddButton. I keep having problems after many attempts, especially with the GumpButtonType.

Just a question for pages..Is page 0 the default page on gumps, in other words if i set a few images and buttons on page 0, will they appear in page 1 , page 2, etc...Or do I have to recreate those controls on the new page?
 

LuxoR

Sorceror
OK, I figured out the button problem..

For those that need some enlightenment in RunUO Scripting (C#)..Here is a exmple of a AddButton

[code:1]AddButton( 25, 25, 5601, 5605, 0, GumpButtonType.Page, 1 );
AddButton( x, y, UP ButtonID, Down ButtonID, GumpButtonType [Page or Reply], Page)[/code:1]


I still need some help on creating and changing pages..
 

LuxoR

Sorceror
Ok nm, solved the whole situation..

For those who may want to know...

Page 0 is displayed at all times, much like it was in sphere.
page 1 is always the starting page..
Page 2, 3 etc. are additional pages which can be flipped through using a button like the example above...
 
Top