Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   text/font (https://forums.graalonline.com/forums/showthread.php?t=54181)

Raelyn 08-03-2004 12:11 AM

text/font
 
What's the best way to display text at x,y? And can the font/size/color be modified? :whatever:

calum 08-03-2004 01:16 AM

NPC Code:

//to show the text-
showtext index,x,y,font,style,text;

//to change the size-
changeimgvis index,drawingheight;

//to change the colour-
changeimgcolors index,red,green,blue,alpha;



Next time have a look at the newfeatures!

Raelyn 08-03-2004 01:25 AM

Quote:

Originally Posted by calum
NPC Code:

//to show the text-
showtext index,x,y,font,style,text;

//to change the size-
changeimgvis index,drawingheight;

//to change the colour-
changeimgcolors index,red,green,blue,alpha;



Next time have a look at the newfeatures!

Sorry. You know, they should really stop making the new features things and just add them to npcprogramming.txt :whatever:

Btw, it's drawing behind showimg, is there any way to draw it on top, and is it shown differently for each client? x_x

Thank you. :)

VeX_RaT_Boy 08-03-2004 01:29 AM

Quote:

Originally Posted by calum
NPC Code:

//to change the size-
changeimgvis index,drawingheight;



Next time have a look at the newfeatures!

Very wrong. That changes the drawing layer, not the text size.
NPC Code:
changeimgzoom index,zoom;


Changes the text size.

Raelyn 08-03-2004 01:33 AM

Quote:

Originally Posted by VeX_RaT_Boy
Very wrong. That changes the drawing layer, not the text size.
NPC Code:
changeimgzoom index,zoom;


Changes the text size.

Ahh, drawing layer, thanks. ^^

I was unaware that changeimg stuff worked for showtext. As a matter of fact, I coulda swore showtext existed but I couldn't find it in commands. :whatever:

Lance 08-03-2004 02:48 AM

Quote:

Originally Posted by Raelyn
Ahh, drawing layer, thanks. ^^

I was unaware that changeimg stuff worked for showtext. As a matter of fact, I coulda swore showtext existed but I couldn't find it in commands. :whatever:

As most commands are added, they are listed in the newfeatures.txt

There will be a comprehensive docu whenever the new engine comes out.

VeX_RaT_Boy 08-03-2004 03:01 AM

Yes, so look forward to late 2005.


All times are GMT +2. The time now is 03:34 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.