To blend in your applet more, you need to give it parameters. A parameter can
be given by putting a parameter tag between the applet tags. The
format for the param tags is:
<PARAM NAME="name" VALUE="value">
For example, if you want your applet to be dutch instead of english, and you
want it to join the channel #irchelp, you need to supply the following code:
<APPLET code=main.class height=450 width=600
archive=gmorkirc40.jar codebase="http://javachat.krey.net">
<PARAM NAME="channel" VALUE="#irchelp">
<PARAM NAME="server" VALUE="javachat.krey.net">
<PARAM NAME="language" VALUE="NL">
</APPLET>
Important: The parameters given here are case-sensitive. So if it says
NL it is NOT nl, it is only NL.
Detailed list of applet parameters
- AllowColor
Values : yes/no
When clicking on the colorgrid (bottom right), no won't give you colors, and yes will ...
Default : yes
- AllowJoin
Values : yes/no
If set to 'no', people can't join more than 1 channel using the /join command
Default : yes
- FontName
Values : a font name e.g. Courier
Sets the font, WARNING, this is not yet supported, you can try it out but if it goes wrong, no support will be given!
Default : Courier (and this one works fine...)
- FontSize
Values : pointsize
As above, you can try this out but it's not yet supported, it should with courier but no support will be given ...
Default : 12
- NumberOfLines
Values : let's say a number between 25 and 150
The number of lines a user can scroll back, WARNING, a big value can realy slow down the applet. I suggest leaving it at the default value.
Default : 50
- NumberOfNames
Values : a number between euhm ... 0 and 1000 ? :)
The number of names the applet will support, if you are running a small server, you could adjust this to 100, if you're running a huge server well ... the value is an integer so don't get too big ;)
Default : 400
- fontbuffer
Values : depends on the FontSize
You should only adjust this if you're experimenting with the font size. This value says how much space there will be between the letters and the bottom line.
Default : 5
- ButtonsPerLine
Values : 1 => ...
If your applet's width is quite big, you can adjust this to 7, 8 or 9, as long as it fits in the window. ( There are 2 button lines, so 9 BPL would give you 18 buttons max )
Default : 6
- Language
Values : ENG/NL (more languages will folllow)
Doesn't this say enough ?
Default : ENG
- Realname
Values : enter anything you want, but keep it short
Just try it out and do a /whois on the user
Default : Just some advertising ...
- channel
Values : all the channels to join, seperated by a comma
e.g. "#test1,#test2,#test9"
- DefaultTopic
Values : a string to set the default topic
This topic will be shown when the user hasn't connected yet and as topic in the Status window
- Ident
Values : a small string
This Ident-ifies the user, on IRC a user's host is something like ~test@myhost.com . The Ident parameter changes this "test" into the value you want.
Detailed list of applet color parameters
- ButtonBackGroundColor
Values : "RRR,GGG,BBB"
The backgroundcolor of the buttonfield
Default : "255,255,255"
- BackGroundColor
Values : "RRR,GGG,BBB"
The main backgroundcolor
Default : "255,255,255"
- ForeGroundColor
Values : "RRR,GGG,BBB"
The foregroundcolor (like the textcolor and namescolor, etc...)
Default : "0,0,0"
The following colors are based on the mIRC color scheme (www.mirc.com)
Available Colors : 0-15
RGB Values :
- 0 = (255,255,255)
- 1 = (0,0,0)
- 2 = (0,0,125)
- 3 = (0,125,0)
- 4 = (255,0,0)
- 5 = (125,0,0)
- 6 = (125,0,125)
- 7 = (255,125,0)
- 8 = (255,255,0)
- 9 = (0,255,0)
- 10 = (0,125,125)
- 11 = (0,255,255)
- 12 = (0,0,255)
- 13 = (255,0,255)
- 14 = (125,125,125)
- 15 = (200,200,200)
Parameters:
- ModeColor
Default : 3
- NickColor
Default : 3
- QuitColor
Default : 2
- JoinColor
Default : 3
- PartColor
Default : 3
- KickColor
Default : 10
- ActionColor
Default : 6
|