Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 07-18-2004, 10:40 AM   #1 (permalink)
 
Join Date: Jun 2004
Age: 52
Posts: 186
Post ObjectGump

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.
Attached Files
File Type: zip ObjectGump.zip (2.0 KB, 26 views)
steamin is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5