Go Back   Winamp Forums > Skinning and Design > Modern Skins

Reply
Thread Tools Search this Thread Display Modes
Old 8th February 2003, 23:11   #1
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,387
Exclamation How to gammagroup TTF and bitmap fonts

Hello skinners, it seems I have come across a way to color theme fonts, both bitmap and TTF. It's not easy though, and Winamp might have this fixed in the next public build, so it's up to you to decide if you want to go through the hassle.

The key element here is the "General" gammagroup. ThePlague pointed out this group to me. This gammagroup will color EVERYTHING, including all fonts, with the values you specify.

To start, create the gammagroup "General" with the value you want for the fonts:
code:

<gammagroup id="General" value="2304, -2176, 3584" gray="0" boost="0" />



Then to get everything else back to it's normal color, you have to cancel out the values in "General" with opposite values:
code:

gammagroup id="player.metal" value="-2304, 2176, -3584" gray="0" boost="0"/>



You have to do this for every gammagroup, including system ones (search for "gammagroup" in *.xml files in the WACS folder to find all of the system gammagroups). You then use the cancelled values as your starting point to get the color you actually want.

Following the example above, let's say you actually wanted the gammagroup "player.metal" to have a value of "1000, -500, 2000", it would come out like this:
code:

gammagroup id="player.metal" value="-1304, 1676, -1584" gray="0" boost="0"/>



The only side effect I've found so far is that this method colors EVERY font throughout the skin. You cannot specify a specific font color for a specific font.

Hope this helps some of you out!
rpeterclark is offline   Reply With Quote
Old 8th February 2003, 23:26   #2
iPlayTheSpoons
Major Dude
 
iPlayTheSpoons's Avatar
 
Join Date: Aug 2001
Location: SJSU
Posts: 1,030
Send a message via AIM to iPlayTheSpoons
heres a pretty good list of the system's gammagroups i just threw together, so i might have missed some:

Titlebar Font
Button Fonts
Display Fonts
Backgrounds
Display Backgrounds
Tree Color
Scrollbar Backgrounds
Scrollbar Buttons
Buttons
Checkboxes and Radio Buttons
Menus
Titlebars
Sliders Backgrounds
Text
iPlayTheSpoons is offline   Reply With Quote
Old 9th February 2003, 00:13   #3
eh?one
Senior Member
 
eh?one's Avatar
 
Join Date: Feb 2003
Location: canada, eh?
Posts: 296
wow! i never even knew such a bug existed i'll keep this tip in mind
eh?one is offline   Reply With Quote
Old 9th February 2003, 06:06   #4
mc^^^^
Forum King
 
mc^^^^'s Avatar
 
Join Date: Aug 2001
Location: Perth, Australia MSN: mcbriar@ii.net Posts: All your posts are belong to me!!!!
Posts: 2,607
maybe this should have been posted in the tips & tricks thread?

mc^^^^ is offline   Reply With Quote
Old 9th February 2003, 13:30   #5
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,387
That would have been the smart thing to do, huh?

I'll go put it there...
rpeterclark is offline   Reply With Quote
Old 9th February 2003, 14:39   #6
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,387
I found 1 additional side effect. The method above will of course color theme elements defined without a gammagroup. If you have maps you use for regioning and they don't have a gammagroup defined, it WILL color it and mess up your MAKI.

It's easy to fix though, just put your map type images in a gammagroup and cancel out the "General" values to get them back to the original colors.
rpeterclark is offline   Reply With Quote
Old 9th February 2003, 16:27   #7
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,960
hehe, cool side effect...

this method is a pain in the ass but atleast it's working and the already created themes (using this method) will still work when Nullsoft finally fixes this most annoying bug.
So no old themes will have to be re-created but new themes can then easilly be created the "normal" way..

It's sorta a win-win situation

-Plague
Plague is offline   Reply With Quote
Old 9th February 2003, 21:09   #8
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,387
Exclamation Automate bitmap and TTF gammagroup calculations

For those interested in the technique I described above to color themes fonts, I've whipped together a tool to help automate the necessary calculations. You can use it here:

http://www.rpeterclark.com/Projects/...eGenerator.asp
rpeterclark is offline   Reply With Quote
Old 9th February 2003, 21:31   #9
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,960
cool!
That's a great tool you have there!
Now it shouldn't be any problem to make those themes.

-Plague
Plague is offline   Reply With Quote
Old 9th February 2003, 21:43   #10
eh?one
Senior Member
 
eh?one's Avatar
 
Join Date: Feb 2003
Location: canada, eh?
Posts: 296
wow, that is uber useful. you should add that to your projects section when its finished
eh?one is offline   Reply With Quote
Old 9th February 2003, 21:49   #11
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,960
it's in his Tools section incase you missed it..

-Plague
Plague is offline   Reply With Quote
Old 9th February 2003, 22:16   #12
eh?one
Senior Member
 
eh?one's Avatar
 
Join Date: Feb 2003
Location: canada, eh?
Posts: 296
oh, sorry, my bad
eh?one is offline   Reply With Quote
Old 10th February 2003, 21:08   #13
frisbeemonkey
Major Dude
 
frisbeemonkey's Avatar
 
Join Date: Jun 2002
Posts: 850
Hey cool! This is a crazy workaround, but if it works, I can't knock it. Good find indeed. And thanks for the list iPlay and for the generator rpc.
And careful there eh?one, one more mistake like that and we have to add you to our "tools" section...
~FrisbeeMonkey
frisbeemonkey is offline   Reply With Quote
Old 10th February 2003, 22:50   #14
eh?one
Senior Member
 
eh?one's Avatar
 
Join Date: Feb 2003
Location: canada, eh?
Posts: 296
lmao
eh?one is offline   Reply With Quote
Old 30th March 2003, 00:14   #15
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,960
can't someone make this a sticky..?
Until Nullsoft fix this very very very annoying bug, this is uber useful.

-Plague
Plague is offline   Reply With Quote
Old 30th March 2003, 00:29   #16
iPlayTheSpoons
Major Dude
 
iPlayTheSpoons's Avatar
 
Join Date: Aug 2001
Location: SJSU
Posts: 1,030
Send a message via AIM to iPlayTheSpoons
he put it in the tips and tricks thread...kinda redundant to stickify this, isnt it?
iPlayTheSpoons is offline   Reply With Quote
Old 30th March 2003, 00:49   #17
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,960
oh.. hmm, guess you're right...
my mistake..

-Plague
Plague is offline   Reply With Quote
Old 30th March 2003, 01:28   #18
RLF
Major Dude
 
RLF's Avatar
 
Join Date: Jan 2003
Location: Grapevine TX nukkaaaa
Posts: 683
Send a message via AIM to RLF
Re: Automate bitmap and TTF gammagroup calculations

Quote:
Originally posted by rpeterclark
For those interested in the technique I described above to color themes fonts, I've whipped together a tool to help automate the necessary calculations. You can use it here:

http://www.rpeterclark.com/Projects/...eGenerator.asp
wow... you're awesome at coding AND graphics! I'm so jealous!

http://ryan-gfx.deviantart.com - gallery
RLF is offline   Reply With Quote
Old 30th March 2003, 02:53   #19
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,387
Re: Re: Automate bitmap and TTF gammagroup calculations

Quote:
Originally posted by RLF
wow... you're awesome at coding AND graphics! I'm so jealous!
Thanks! Websites like that generator is more along the lines of my day job. Ahh, the joy of programming.

Yeah, I put this in the T&T thrtead, so hopefully people will be able to find it.
rpeterclark is offline   Reply With Quote
Old 30th March 2003, 05:00   #20
RLF
Major Dude
 
RLF's Avatar
 
Join Date: Jan 2003
Location: Grapevine TX nukkaaaa
Posts: 683
Send a message via AIM to RLF
man I wish I could code. Pfft.. like that's ever gonna happen right?

http://ryan-gfx.deviantart.com - gallery
RLF is offline   Reply With Quote
Old 30th March 2003, 17:04   #21
razmansix
Senior Member
 
razmansix's Avatar
 
Join Date: Jun 2002
Location: Nuuk
Posts: 402
Send a message via AIM to razmansix
Ditto here RLF - the only difference is that YOU should have all the time you need learning that - you're 13 and got all the time in the world

Super cool as always Pete!
razmansix is offline   Reply With Quote
Old 30th March 2003, 18:26   #22
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
Thats very true.
hammerhead is offline   Reply With Quote
Old 30th March 2003, 19:01   #23
J_Bloggs
Major Dude
 
J_Bloggs's Avatar
 
Join Date: Jan 2002
Posts: 1,778
Quote:
Originally posted by RLF
man I wish I could code. Pfft.. like that's ever gonna happen right?
You should start learning. When I came to winamp 3, I only had a basic knowledge of HTML and the logic behind a few other languages. Since I've been here (a bit after WA3 went to public builds), I've learnt enough about XML and MAKI to be fairly confident with it.

If your serious about learning coding, I would suggest going down to your library and getting out some books on the basics of HTML and a few things like javascript. A basic understanding of these should give you more than you need to start looking at XML and MAKI.

A good place to start on XML, I fond anyway, is here, it's in the nsdn devlopers section.

Frisbeemonkey's tutorials should be useful, although I've only skim read them.


If you become serious about HTML, javascript and java, there may be a course you you can do though your school.


At your age I thought I'd never be able to code ether.

I'm not that good at coding myself, but thats cos I'm lazy.



Anyway, enough de-railing of this thread.

¯¯¯¯Joe Bloggs____
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
J_Bloggs is offline   Reply With Quote
Old 30th March 2003, 19:07   #24
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
Quote:
Originally posted by J_Bloggs
You should start learning. When I came to winamp 3, I only had a basic knowledge of HTML and the logic behind a few other languages. Since I've been here (a bit after WA3 went to public builds), I've learnt enough about XML and MAKI to be fairly confident with it.

If your serious about learning coding, I would suggest going down to your library and getting out some books on the basics of HTML and a few things like javascript. A basic understanding of these should give you more than you need to start looking at XML and MAKI.

A good place to start on XML, I fond anyway, is here, it's in the nsdn devlopers section.

Frisbeemonkey's tutorials should be useful, although I've only skim read them.


If you become serious about HTML, javascript and java, there may be a course you you can do though your school.


At your age I thought I'd never be able to code ether.

I'm not that good at coding myself, but thats cos I'm lazy.



Anyway, enough de-railing of this thread.
When I wanted to skin for wa3 I had no knowledge of scripting whatsoever. It took me about 3 months to get XML down, and another 3 to get most of maki learnt (which is now).
hammerhead is offline   Reply With Quote
Old 30th March 2003, 19:16   #25
RLF
Major Dude
 
RLF's Avatar
 
Join Date: Jan 2003
Location: Grapevine TX nukkaaaa
Posts: 683
Send a message via AIM to RLF
Oh I understand the basics of HTML fully (ie- tables, images, text, and misc. tags, etc.) through a nice little site www.lissaexplains.com . This site is a great reference to learning HTML, java, and building a web site.

XML seems easy enough to learn, I may try to learn hwo to make a skin from scratch some day

http://ryan-gfx.deviantart.com - gallery
RLF is offline   Reply With Quote
Old 30th March 2003, 20:26   #26
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,960
XML is easy as hell to learn, especially if you know HTML already..
They are very similar..

If you know C/C++/VB/Delphi/Java/etc... Maki should be no match either..

-Plague
Plague is offline   Reply With Quote
Old 30th March 2003, 20:28   #27
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
I am thinking of learning C++.. and I have a fairly solid understanding of MAKI. Do you think it would be hard?
hammerhead is offline   Reply With Quote
Old 30th March 2003, 20:30   #28
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,960
hard, maybe, it depends..
A lot of work, yep.. C++ is HUGE, it's not something you learn in one day..
But on the other hand, when you know a little C++, it get's easier and easier to learn more...

-Plague
Plague is offline   Reply With Quote
Old 30th March 2003, 20:40   #29
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
So what programming languages do you recommend me tackle before C++ (note: I can't have anything that is interactive online, like PHP- in PHP's case MySql would be out of the question).
hammerhead is offline   Reply With Quote
Old 30th March 2003, 21:03   #30
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,960
no, there's no language I recommend before C++..
If you want to learn C++, just go right on it..
Read a book about it, that's probably the easiest way..

I learned it through Trial & Error though, but that takes alot longer time, I'm just too lazy to read a book..
I'm gonna have to sooner or later though, in order to learn the more advanced stuff

-Plague
Plague is offline   Reply With Quote
Old 31st March 2003, 00:00   #31
thepyr0x
Major Dude
 
thepyr0x's Avatar
 
Join Date: Oct 2001
Location: At my house in a city in Canada
Posts: 1,336
Quote:
Originally posted by Plague


I learned it through Trial & Error though, but that takes alot longer time, I'm just too lazy to read a book..
-Plague
I love the irony there. I did it the long way cuz I was too lazy to go the shorter route

I wish my school taught C/C++ instead of Turing/Java.....Java sucks.

thepyr0x is offline   Reply With Quote
Old 31st March 2003, 05:37   #32
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,960
heh yea, don't you think I know about that irony? And I still can't pick up the book and read..

My previous school taught Delphi instead of C/C++, cos they believed, believe it or not, that C/C++ is a dying language and that Delphi will be the king of the hill soon!
Stupid morons

My current school knows better though

-Plague
Plague is offline   Reply With Quote
Old 31st March 2003, 15:09   #33
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
Ok, I'll try and start learning C++
Then I can write stuff like wacs, right?
hammerhead is offline   Reply With Quote
Old 31st March 2003, 16:02   #34
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,960
there's a learning process in everything.. if you know c++ it helps, but you still gotta learn the wasabi sdk...

-Plague
Plague is offline   Reply With Quote
Old 4th March 2004, 21:30   #35
dodger758
Senior Member
 
dodger758's Avatar
 
Join Date: Apr 2003
Posts: 402
Send a message via AIM to dodger758
yea, didn't want to start a new thread so i hope it's aright here...

with winamp5 it's obvious that you can now use color themes for fonts...would anyone like to explain how?
dodger758 is offline   Reply With Quote
Old 4th March 2004, 23:26   #36
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,960
sure.

althought this works fine in winamp3 aswell, it's just not been known..

for bitmap fonts:
PHP Code:
  <bitmap id="bitmapfont.player.BIGNUM" file="player/numfont.png" gammagroup="Timer Font"/>
  <
bitmapfont id="player.BIGNUM" file="bitmapfont.player.BIGNUM" charwidth="11" charheight="13"/> 
for truetype fonts:
PHP Code:
  <color id="font.color.songticker" value="255,255,255" gammagroup="Songticker Font"/>

  <
text
    id
="songticker"
    
ticker="1"
    
display="songname" default=""
    
showlen="1"
    
x="34" y="110"
    
w="180" h="14"
    
fontsize="12"
    
color="font.color.songticker"
    
font="Arial"
  
/> 
simple!

-Plague
Plague is offline   Reply With Quote
Old 4th March 2004, 23:37   #37
dodger758
Senior Member
 
dodger758's Avatar
 
Join Date: Apr 2003
Posts: 402
Send a message via AIM to dodger758
cool, thanks. just checkin ahead right now, probably won't get to coding the skin i'm workin on right now for a few more weeks, so I'll mess with it then and tell ya how it goes. thanks again.
dodger758 is offline   Reply With Quote
Old 11th March 2004, 00:28   #38
dodger758
Senior Member
 
dodger758's Avatar
 
Join Date: Apr 2003
Posts: 402
Send a message via AIM to dodger758
pl Plague, so would this work...

<bitmap id="bitmapfont.player.charfont" file="player/charfont.png" gammagroup="Fonts"/>
<bitmapfont id="player.charfont" file="bitmapfont.player.charfont" charwidth="9" charheight="8" hspacing="0" vspacing="1"/>
dodger758 is offline   Reply With Quote
Old 11th March 2004, 02:22   #39
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,960
yes
Plague is offline   Reply With Quote
Old 7th August 2004, 19:26   #40
ziege
Senior Member
 
ziege's Avatar
 
Join Date: Oct 2002
Location: UK
Posts: 363
Quote:
Originally posted by Plague
for bitmap fonts:

<bitmap id="bitmapfont.player.BIGNUM" file="player/numfont.png" gammagroup="Timer Font"/>
<bitmapfont id="player.BIGNUM" file="bitmapfont.player.BIGNUM" charwidth="11" charheight="13"/>
Doesn't seem to work for me...

Here's my elements:
PHP Code:
<bitmapfont id="bitmapfont.player.nsx-999" file="player/NSX-999BitmapFont.png" gammagroup="DisplayItem"/>
<
bitmapfont id="player.nsx-999" file="bitmapfont.player.nsx-999" charwidth="11" charheight="13"/> 
and in the group:
PHP Code:
<text
    id
="SongTicker" ticker="1"
    
display="songname" showlen="1"
    
w="190" h="20"
    
x="177" y="178"
    
font="player.nsx-999"
/> 
The songticker just disappears completely

WIP: NSX-999
ziege is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump


All times are GMT. The time now is 14:21.