PenUltima Online

It is currently Thu Aug 28, 2008 9:35 pm

All times are UTC - 8 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Adding colours to gump pics
PostPosted: Wed Nov 22, 2006 6:24 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1118
Location: Southern Central USA
Not even sure if the client will allow this but would it be possible to add to a future release the ability to add colour to pics displayed in gumps?

There must be some way for certain gumps to have/allow colour because when creating a character it's done but knowing OSI that's probably a hardcoded preset gump for char creation.

Adding this ability would allow the creation of custom paperdoll gumps as well as lots of other possibilities.

Thanks.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 23, 2006 3:14 am 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 744
Location: Chicago, IL USA
Well, gumps aren't really handled at all by POL in the sense of building. The arrays that are built for layout and data are literally sent to the client as the exact array untouched by POL. If you're using a gumps.inc or such, you'll see that all it does is append to an array that it eventually sends to the client with SendDialogGump(who, layout, data).

There are a couple color options though for certain things.

GumpPic has a color param. "gumppic x y id hue=#"
For the hue param to work, you have to literally put "hue=10" for example to get hue # 10 on it.

TilePicHue is the same as TilePic but with a hue param also. "tilepichue x y id hue"


These are the only color options I know of other than the text coloring. All of this is hard coded to the client too.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 23, 2006 12:46 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1118
Location: Southern Central USA
CWO you're a lifesaver!

Well, my life wasn't really in danger over coloured gump pics ofcourse
*giggles*
but you have certainly helped me a lot.

I have always been told that there were no colour options with gump pics.

Thanks so much for this info.

*smiles*

You made my week.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 23, 2006 2:56 pm 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 744
Location: Chicago, IL USA
also just for reference for everyone before they tell me I have the wrong info on TilePicHue, 5.x clients are required to see the hue. If you use this on lower clients (tested all the way down to 3.x) you wont get the hue but it also wont crash them.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl