[request] size font |
Author: |
Message: |
duck!
Senior Member
Posts: 546 Reputation: 27
– / /
Joined: Sep 2006
|
O.P. [request] size font
On these forums you can do the code [ size=1 ]hi[ /size ] and it goes small and big whatever you want, and MP!L doesnt have that feature, but im pretty sure it can be done via script by doing /size1 /size2 /size3 etc
Would anyone have a go and script this script
So you could have
Hi
you suck
with out going to font changing the size then back again
This post was edited on 12-16-2006 at 07:55 PM by duck!.
|
|
12-16-2006 07:49 PM |
|
|
duck!
Senior Member
Posts: 546 Reputation: 27
– / /
Joined: Sep 2006
|
O.P. RE: [request] size font
*bump
|
|
12-17-2006 01:18 PM |
|
|
Jimbo
Veteran Member
Posts: 1650 Reputation: 18
32 / /
Joined: Jul 2006
|
RE: [request] size font
quote: Originally posted by noodle!
*bump
I'm trying to do this but atm i cant find any way of changing the font size .
Ive worked out how to do colour, lol
This post was edited on 12-17-2006 at 01:22 PM by Jimbo.
|
|
12-17-2006 01:21 PM |
|
|
NanaFreak
Scripting Contest Winner
Posts: 1476 Reputation: 53
32 / /
Joined: Jul 2006
|
RE: [request] size font
ok im am quite sure that this is impossible due to how WLM deals with the size of your text...
i could be using lets say size 10 and you could be using size 20 but when you send a message to me i get it in size 10
can you see what im saying here?
|
|
12-17-2006 01:24 PM |
|
|
Jimbo
Veteran Member
Posts: 1650 Reputation: 18
32 / /
Joined: Jul 2006
|
RE: [request] size font
quote: Originally posted by NanaFreak
ok im am quite sure that this is impossible due to how WLM deals with the size of your text...
i could be using lets say size 10 and you could be using size 20 but when you send a message to me i get it in size 10
can you see what im saying here?
Yes, very true as when you change the font size to say 14, the whole conversation's font size changes to 14, not just your font size
|
|
12-17-2006 01:37 PM |
|
|
duck!
Senior Member
Posts: 546 Reputation: 27
– / /
Joined: Sep 2006
|
O.P. RE: [request] size font
quote: Originally posted by Jimbodude
quote: Originally posted by NanaFreak
ok im am quite sure that this is impossible due to how WLM deals with the size of your text...
i could be using lets say size 10 and you could be using size 20 but when you send a message to me i get it in size 10
can you see what im saying here?
Yes, very true as when you change the font size to say 14, the whole conversation's font size changes to 14, not just your font size
Well that sucks
I was looking foward to the script
In a way you could still do this but with colors like:
Hi
Like this
But theres no point as you just have to use the code or use nanafreaks gradiant script
[off-topic]Cant wait for your new gradiant script, nanafreak[/off-topic]
|
|
12-17-2006 01:42 PM |
|
|
NanaFreak
Scripting Contest Winner
Posts: 1476 Reputation: 53
32 / /
Joined: Jul 2006
|
RE: [request] size font
quote: Originally posted by noodle!
quote: Originally posted by Jimbodude
quote: Originally posted by NanaFreak
ok im am quite sure that this is impossible due to how WLM deals with the size of your text...
i could be using lets say size 10 and you could be using size 20 but when you send a message to me i get it in size 10
can you see what im saying here?
Yes, very true as when you change the font size to say 14, the whole conversation's font size changes to 14, not just your font size
Well that sucks
I was looking foward to the script
In a way you could still do this but with colors like:
Hi
Like this
But theres no point as you just have to use the code or use nanafreaks gradiant script
[off-topic]Cant wait for your new gradiant script, nanafreak[/off-topic]
yea you can use the colours and use like a light gray but that its still kinda dodgy
[off-topic]
almost time to release it too noodle!
[/off-topic]
|
|
12-17-2006 01:44 PM |
|
|
Jimbo
Veteran Member
Posts: 1650 Reputation: 18
32 / /
Joined: Jul 2006
|
RE: [request] size font
quote: Originally posted by noodle!
quote: Originally posted by Jimbodude
quote: Originally posted by NanaFreak
ok im am quite sure that this is impossible due to how WLM deals with the size of your text...
i could be using lets say size 10 and you could be using size 20 but when you send a message to me i get it in size 10
can you see what im saying here?
Yes, very true as when you change the font size to say 14, the whole conversation's font size changes to 14, not just your font size
Well that sucks
I was looking foward to the script
In a way you could still do this but with colors like:
Hi
Like this
But theres no point as you just have to use the code or use nanafreaks gradiant script
[off-topic]Cant wait for your new gradiant script, nanafreak[/off-topic]
Markee made me this script for font colours if you want.
Use like /colour=blue then your text
code:
function OnEvent_ChatWndSendMessage(ChatWnd, sMessage) {
if(sMessage.charAt(0) == "/"){
return parseCommands(sMessage,ChatWnd);
}
}
function parseCommands(sMessage,iOriginWnd){
if (sMessage.charAt(0) == '/'){
if(sMessage.charAt(1) == '/'){
return sMessage;
} else {
var firstSpace = sMessage.search(' ');
if(firstSpace == -1){
var command = sMessage.toLowerCase().substr(1);
var params = '';
} else {
var command = sMessage.toLowerCase().substr(1, firstSpace-1);
var params = sMessage.substr(firstSpace+1);
}
if(params != "") { Debug.Trace("The command \"" + command + "\" with the parameters \"" + params + "\" has been parsed."); }
else { Debug.Trace("The command \"" + command + "\" has been parsed."); }
switch(command) {
case 'colour=red':
iOriginWnd.SendMessage("4"+params);
sMessage = '';
break;
case 'colour=blue':
iOriginWnd.SendMessage("12"+params);
sMessage = '';
break;
case 'colour=green':
iOriginWnd.SendMessage("50"+params);
sMessage = '';
break;
case 'colour=yellow':
iOriginWnd.SendMessage("8"+params);
sMessage = '';
break;
case 'colour=purple':
iOriginWnd.SendMessage("6"+params);
sMessage = '';
break;
case 'colour=pink':
iOriginWnd.SendMessage("13"+params);
sMessage = '';
break;
case 'colour=orange':
iOriginWnd.SendMessage("36"+params);
sMessage = '';
break;
case 'colour=lilac':
iOriginWnd.SendMessage("21"+params);
sMessage = '';
break;
default:
}
}
}
return sMessage;
}
function OnGetScriptCommands()
{
var commands = '<ScriptCommands>';
commands+='<Command>';
commands+='<Name>colour=red</Name>';
commands+='<Description>'+"Change colour of text to red"+'</Description>';
commands+='<Parameters>Message</Parameters>';
commands+='</Command>';
commands+='<Command>';
commands+='<Name>colour=blue</Name>';
commands+='<Description>'+"Change colour of text to blue"+'</Description>';
commands+='<Parameters>Message</Parameters>';
commands+='</Command>';
commands+='<Command>';
commands+='<Name>colour=green</Name>';
commands+='<Description>'+"Change colour of text to green"+'</Description>';
commands+='<Parameters>Message</Parameters>';
commands+='</Command>';
commands+='<Command>';
commands+='<Name>colour=yellow</Name>';
commands+='<Description>'+"Change colour of text to yellow"+'</Description>';
commands+='<Parameters>Message</Parameters>';
commands+='</Command>';
commands+='<Command>';
commands+='<Name>colour=orange</Name>';
commands+='<Description>'+"Change colour of text to orange"+'</Description>';
commands+='<Parameters>Message</Parameters>';
commands+='</Command>';
commands+='<Command>';
commands+='<Name>colour=pink</Name>';
commands+='<Description>'+"Change colour of text to pink"+'</Description>';
commands+='<Parameters>Message</Parameters>';
commands+='</Command>';
commands+='<Command>';
commands+='<Name>colour=purple</Name>';
commands+='<Description>'+"Change colour of text to purple"+'</Description>';
commands+='<Parameters>Message</Parameters>';
commands+='</Command>';
commands+='<Command>';
commands+='<Name>colour=lilac</Name>';
commands+='<Description>'+"Change colour of text to lilac"+'</Description>';
commands+='<Parameters>Message</Parameters>';
commands+='</Command>';
commands+='</ScriptCommands>';
return commands;
}
|
|
12-17-2006 01:49 PM |
|
|
Oxy
Veteran Member
Posts: 1368 Reputation: 24
30 / /
Joined: Jul 2006
|
RE: [request] size font
Shame. Would have been a nice idea.
quote: Originally posted by noodle!
*bump
only bump after more than 24hrs please kthx.
|
|
12-17-2006 02:45 PM |
|
|
|