|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
|
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 ) Code:
public void AddImageTiled( int x, int y, int width, int height, int gumpID ) Code:
public void AddImageTiled( 0, 0, 400, 200, 1 ) 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.
__________________
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|