Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-03-2004, 12:11 AM
Raelyn Raelyn is offline
the Professional.
Raelyn's Avatar
Join Date: Sep 2003
Location: Zormite
Posts: 964
Raelyn will become famous soon enough
text/font

What's the best way to display text at x,y? And can the font/size/color be modified?
__________________
*Don't let the door hit you on the way out.*
Reply With Quote
  #2  
Old 08-03-2004, 01:16 AM
calum calum is offline
Registered User
Join Date: Nov 2003
Location: Scotland
Posts: 182
calum is on a distinguished road
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!
__________________
Reply With Quote
  #3  
Old 08-03-2004, 01:25 AM
Raelyn Raelyn is offline
the Professional.
Raelyn's Avatar
Join Date: Sep 2003
Location: Zormite
Posts: 964
Raelyn will become famous soon enough
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

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

Thank you.
__________________
*Don't let the door hit you on the way out.*
Reply With Quote
  #4  
Old 08-03-2004, 01:29 AM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
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.
__________________
-Kjetil Valen
Reply With Quote
  #5  
Old 08-03-2004, 01:33 AM
Raelyn Raelyn is offline
the Professional.
Raelyn's Avatar
Join Date: Sep 2003
Location: Zormite
Posts: 964
Raelyn will become famous soon enough
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.
__________________
*Don't let the door hit you on the way out.*
Reply With Quote
  #6  
Old 08-03-2004, 02:48 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
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.
As most commands are added, they are listed in the newfeatures.txt

There will be a comprehensive docu whenever the new engine comes out.
Reply With Quote
  #7  
Old 08-03-2004, 03:01 AM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
Yes, so look forward to late 2005.
__________________
-Kjetil Valen
Reply With Quote
Reply


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 +2. The time now is 04:58 PM.


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