Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

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

Took a stab in the dark today to try to create something and it actually worked. I will be trying different things along these lines and will be posting them here as I get them finished. Devs, please take from them if you wish to put them in the distro.

Until they go into the distro, I've included a 'GumpEntries.cs' that has calls to add the entries to a gump. I'll give an example call from a gump script with each one. When I have more time, I'm going to look into getting textual Tooltips using 1060658, by looking at how ObjectPropertyList does it.
  1. GumpButtonWTooltip.cs - Put tooltips on individual buttons.
    Code:
    GumpEntries.AddButtonWTooltip( this, 10, 10, 247, 248, 1, GumpButtonType.Reply, 0, 1012006 );
  2. GumpBackgroundWTooltip.cs - Put tooltips on individual backgrounds.
    Code:
    GumpEntries.AddBackgroundWTooltip( this, 0, 0, 100, 100, 9200, 1012006 );
  3. GumpAlphaRegionWTooltip.cs - Put tooltips on individual alpha regions.
    Code:
    GumpEntries.AddAlphaRegionWTooltip( this, 10, 10, 100, 100, 1012006 );
  4. GumpCheckWTooltip.cs - Put tooltips on individual check boxes.
    Code:
    GumpEntries.AddCheckWTooltip( this, 10, 10, 247, 248, false, 1, 1012006 );
Attached Files
File Type: rar GumpEntries.rar (2.5 KB, 26 views)

Last edited by A_Li_N; 06-23-2006 at 11:34 PM.
A_Li_N is offline  
Old 06-23-2006, 10:41 PM   #2 (permalink)
Forum Expert
 
Lucid Nagual's Avatar
 
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
Thumbs up

Thanks Alien
__________________
Leader of the Anti-OSI Movement. Inventing a new game experience in an EA Games-free environment.

Don Juan Matus "The basic difference between an ordinary man and a warrior is that a warrior takes everything as a challenge, while an ordinary man takes everything as a blessing or as a curse."


My Customs:
Lucid Nagual is offline  
Old 06-23-2006, 11:06 PM   #3 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 26
Posts: 2,875
Default Added GumpBackgroundWTooltip.cs

Same concept, allows you to put a tooltip on an individual background.

Caveats:
It seems that Tooltips act the same way as buttons do in the sense that they are an 'area' on the gump, and the first one added will be the one displayed. I'll explain using buttons...

3 buttons; 1, 2, 3
Stack them on top of each other, in that order, and click, the only code that will run is the code for button 1.
3 tooltips; x, y, z
x is on a background, y is on a button that sits on that background, z is on a button that sits beside that background. Hover over z and you will see it. Hover over y and you will see x, since x was added first.

So the tooltip on a background could be good for grouping similar items together with the same tooltip...same buttons, labels, etc that all have to do with location a can be placed on a BackgroundWTooltip with a tooltip 'a'.
A_Li_N is offline  
Old 06-23-2006, 11:21 PM   #4 (permalink)
Forum Expert
 
Join Date: Nov 2004
Location: Southeast Missouri USA
Age: 34
Posts: 283
Default

Thanks for figuring this out A_Li_N!
I was looking at tooltips earlier and didnt get too far with it.

Quick question: Are you planning to update your Gump Tutorial?
I found it really useful. Then again, i guess that is what this is.. *Doh!*
Ashlar is offline  
Old 06-23-2006, 11:25 PM   #5 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 26
Posts: 2,875
Default

Quote:
Originally Posted by Ashlar
Thanks for figuring this out A_Li_N!
I was looking at tooltips earlier and didnt get too far with it.

Quick question: Are you planning to update your Gump Tutorial?
I found it really useful. Then again, i guess that is what this is.. *Doh!*
Someday, I will, yes. This isn't really a tutorial. This is more adding some features and explaining how to use them More coming in a minute...pretty much the base controls, all with tooltips.
A_Li_N is offline  
Old 06-23-2006, 11:35 PM   #6 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 26
Posts: 2,875
Default Added GumpAlphaRegionWTooltip & GumpCheckWTooltip

Added GumpAlphaRegionWTooltip & GumpCheckWTooltip
Yeah, same concept
A_Li_N is offline  
Old 06-24-2006, 09:36 AM   #7 (permalink)
Forum Novice
 
Nam01's Avatar
 
Join Date: Mar 2005
Posts: 126
Default Great work

Thank you A_Li_N Great work
Nam01 is offline  
 

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