Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 06-23-2006, 10:20 PM   #1 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
Default AddImageTiledButton

I have a question or two about this new feature...

Code:
public void AddImageTiledButton( int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, int itemID, int hue, int width, int height )
That's the call to make such a button. Here's a similar call:
Code:
public void AddImageTiled( int x, int y, int width, int height, int gumpID )
Now, the second one is old...we use it to add a tiled gumpID, tiled. So, if I wanted a tile of 5 status boxes (gumpID of 1), I'd do:
Code:
public void AddImageTiled( 0, 0, 400, 200, 1 )
(Demensions of the gumpID is 80x40)

Now, with the naming scheme, we would think that 'AddImageTiledButton' would allow us to make those 5 status boxes into one big button. However, from my testing, it does not do that. What it does is simply place an ItemID over a single GumpID, similar to the Treasures of Tokuno redeem gump.
int x = x coord of the GumpID (button)
int y = y coord of the GumpID (button)
int normalID = GumpID
int pressedID = GumpID pressed
int buttonID = duh
GumpButtonType type = duh
int param = duh
int itemID = ItemID of the item to display
int hue = hue of item displayed
int width = x coord of the Item
int height = y coord of the Item


Now, I only did a quick test of this new feature, so it is completely possible that I missed something. I'm just wondering why they would use that name for such a button, if that's all it does. I'd think maybe 'ItemImageButton' or something similar would be better descriptive, as 'Tiled' implies the same as it does in the ImageTiled.

Also, on a sort of side note, is there any way to get a 'BackgroundButton' or a true 'ImageTiledButton' where you make a background or tiled image act as a button? I'm asking if there's any way to do it like the other buttons, where it's one button. I already have methods to make the 'look' of both of these things, but it sends multiple buttons to do so.
A_Li_N 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