Gumps: Tooltips and Item Properties
Summary of the tutorialI decided to cover these two things since they seem to be least talked about or documented.
1) Tooltip - A popup message when you hover over something. Such as a spell icon in a spellbook.
View attachment 5740
To use it you'll need to add the line AddTooltip( int Cliloc ); after the button or image that you want the popup message to work for
- AddButton(10, 50, 4029, 4030, 0, GumpButtonType.Reply, 0);
2) Item Properties and how to display them - Often seen in the gump when buying from a vendor.
View attachment 5741
To use it add the line AddItemProperty( item.Serial ); after the item or image that you want it to work for.
Note: it does require a Serial id of an existing item in the world. How you handle that is up to you.
- // OR
- AddImage( 30, 10, 50434);