|
||
|
|
#1 (permalink) |
|
Join Date: Jun 2004
Age: 52
Posts: 186
|
Version 1.0.1 for RunUO 1.0 RC0
ObjectGump displays a list of objects like the Distro PropertiesGump. For Items and Mobiles is a Button to call the PropertiesGump of them. The style and the routines are taken from PropertiesGump. The ObjectGump can only be used in your own programs. For example: ArrayList m_MyArray = new ArrayList(); ... m_MyArray.Add ( collectedItemOrMobileOrObject ); ... e.Mobile.SendGump( new ObjectGump( e.Mobile, m_MyArray, "My collected objects", 1 ) ); Change the EntryWidth = 312; for your preferred textwidth If you would like to have another reaction of the Button then change the line from.SendGump( new PropertiesGump( from, m_List[index] ) ); to your convenience. For exampe to teleport you to an item like a spawner. Put the ObjectGump.cs file in your Scripts/Custom directory. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|