Welcome, Guest
Please Login or Register.    Lost Password?

Shadow4 Skin Edit
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Shadow4 Skin Edit
#15613
Shadow4 Skin Edit 3 Years, 2 Months ago  
Hello

i am using the shadow 4 skin with my rainlendar but i always made some adjustments to the skin so it fits my demands. now i wanted to ask if someone can show me how to make some the bitmapfont images in different colors?

thanks for your help.

S.Tem
Sebuzahn
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#15631
Re: Shadow4 Skin Edit 3 Years, 1 Month ago  
is there no one who might help me with this? please
Sebuzahn
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#15635
Re: Shadow4 Skin Edit 3 Years, 1 Month ago  
This would be a question for Skins folder, not for Support.

To make bitmapfont you need:

1) Add a bitmapfont:
Add a line in the elements.xml file.
Code:

<bitmapfont id="bitmap.numbers.lt.grey" file="images/Numbers-Large-White.png" alphabet="0123456789:AP/-." separation="-12" opacity="65" />
<bitmapfont id="bitmap.numbers.white.small" file="images/Numbers-Small-White.png" alphabet="0=6;1=6;2=6;3=6;4=6;5=6;6=6;7=6;8=6;9=6;.=3;/=6;:=4;A=6;P=6;M=6;U+20=4" />

Here you have 2 different kinds of bitmap fonts.
The first one is the simple one. Only set the characters, the separation between two of them, and the opacity, amongst many others. Each character has a fixed width/height set by the width/height of the bitmap file. (See "skin format/skin format/bitmapfont" in the help for more info).
The second one is just like the other, except that every character has different size.

2) Set colors:
One easy way to make several colors to use is set hue="value" (from -1.0 to 1.0) in the bitmapfont.
Another way is set hue="%variable_name%" in the bitmapfont, using a red font.
Then, add this line in the skin.xml file:
Code:

<variable name="variable_name" default="0.0" values="Red:0.0;Orange:0.1;Yellow:0.2;Green:0.35;Cyan:0.5;Blue:0.65;Magenta:0.85;" description="Defines the color of the font." />


3) Create a bitmapfont:
You need any paint app which support transparencies (like Paint.NET, Gimp, etc) and add a text (try to make the same space between characters). Then change the alphabet value to the bitmapfont. E.g. alphabet="0123456789ABCDEFx" if you're trying to do an hexadecimal text.

Hope this helps you.
Jorge_Luis
Platinum Boarder
Posts: 795
graphgraph
User Online Now Click here to see the profile of this user
Gender: Male My Rainlendar Skins Location: Argentina Birthday: 03/15
Last Edit: 2011/07/22 14:29 By Jorge_Luis.
The administrator has disabled public write access.
 
#15636
Re: Shadow4 Skin Edit 3 Years, 1 Month ago  
hey thanks for your help.

when i set Hue in my skin it doesnt change the color at all.
i donno if i am setting it wrong could you maybe show me?
Sebuzahn
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#15638
Re: Shadow4 Skin Edit 3 Years, 1 Month ago  
Try this:

in xml/elements.xml add:
Code:

<bitmapfont id="bitmap.myfont.numbers" file="images/Numbers-Large-Red.png" alphabet="0123456789" separation="-12" hue="%My_font_color%" />


Then, in skin.xml root file add (in the variables section):
Code:

<variable name="My_font_color" default="0.0" values="Red:0.0;Orange:0.1;Yellow:0.2;Green:0.35;Cyan:0.5;Blue:0.65;Magenta:0.85;" description="Defines the color of my font." />

As we are using the red font, the hue value of 0 means red and 0.5 is cyan (if you use e.g. the Numbers-Large-Cyan file, the value of 0 will means cyan and 0.5 red and so on).

Remember that the Hue value is only valid for red, green and blue and its variations.
en.wikipedia.org/wiki/File:HSV_color_solid_cylinder_alpha_lowgamma.png
You can't change the Hue value of white, gray or black.
Jorge_Luis
Platinum Boarder
Posts: 795
graphgraph
User Online Now Click here to see the profile of this user
Gender: Male My Rainlendar Skins Location: Argentina Birthday: 03/15
Last Edit: 2011/07/23 08:32 By Jorge_Luis.
The administrator has disabled public write access.
 
#15643
Re: Shadow4 Skin Edit 3 Years, 1 Month ago  
i have one category which has this color 0,255,145,255 and now i want to set my bitmapfont to this color. which hue value do i have to use?
Sebuzahn
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
get the latest posts directly to your desktop