|
||
|
|
#2 (permalink) |
|
Join Date: Mar 2003
Location: Near a lava pool
Age: 8
Posts: 1,012
|
Yes there is a parameter for hue. This is from my own code:
Code:
internal struct StaticData
{
public ushort Color;
public byte XOffest;
public byte YOffset;
public sbyte Altitude;
public ushort Hue;
}
Edit: I took a quick look at the Ultima.dll in my object browser. The StaticTile class has five fields: m_X, m_Y, m_Z, m_ID and m_Hue.
__________________
Oxygen should be regarded as a drug. |
|
|
|
|
|
#6 (permalink) |
|
Join Date: Mar 2003
Location: Near a lava pool
Age: 8
Posts: 1,012
|
Maybe you're using an older version. I'm using build 1.0.1338.1619 and I have the following methods (besides the ones inherited from object):
ApplyTo( Bitmap, bool ) GetColor( int ) Colors, Index, Name properties 2 constructors
__________________
Oxygen should be regarded as a drug. |
|
|
|
|
|
#11 (permalink) |
|
woah.. It has to do with where I'm writing this line. I just type like "Ultima." and see what i get, then i go to "Ultima.Hue." and see what's there (Inside the paint event) and I do not get that stuff..
So i checked with the object browser and it's right there *blush* But wouldn't a parameter need to be a hue in order to actually pick something? ok, an example would really just explain everything tbh
__________________
Can YOU RunUO? |
|
|
|
|
|
|
#12 (permalink) |
|
Join Date: Mar 2003
Location: Near a lava pool
Age: 8
Posts: 1,012
|
Yep, that's why you weren't seeing it. You need a hue object to call the method. Something like:
Ultima.Hue hue = .... // Get the hue from Ultima.Hues for example hue.ApplyTo( bmp, false );
__________________
Oxygen should be regarded as a drug. |
|
|
|
|
|
#14 (permalink) |
|
ok, I expected some kind of error.. at least its not a compiler error
![]() If the boolean in ApplyTo is set to false the bitmap disappears completely, if it's set to true it either does nothing or makes lots of holes in objects :\ I've tried with different known hues and they really don't want to work for me..
__________________
Can YOU RunUO? |
|
|
|
|
|
|
#16 (permalink) | |
|
Forum Expert
|
Quote:
Code:
Dim TempImage As Bitmap = Ultima.Art.GetStatic(Value) mHue.ApplyTo(TempImage, False) Target.DrawImage(TempImage, Me.Location) TempImage.Dispose() *EDIT* mHue is an instance of the Hue Class that you want to use to color the image.
__________________
----------------------- If your response will contribute nothing to this discussion except to insult me, or someone else in this thread, please do not post. I am refering to specific individuals. You know who you are. |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|