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 12-22-2004, 12:08 AM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
aligning text to left or right with showtext?

I know i can use C for centered on showtext, but what about align left or right? is there a letter or something i can put for them?
Reply With Quote
  #2  
Old 12-22-2004, 01:19 AM
calum calum is offline
Registered User
Join Date: Nov 2003
Location: Scotland
Posts: 182
calum is on a distinguished road
Quote:
Originally Posted by newfeatures2002.txt
- new script commands showtext and showtext2 for
displaying text (instead of doing showimg 1,@@@ things):

showtext index,x,y,font,style,text;
showtext2 index,x,y,z,font,style,text;

It works like showimg, but you are displaying a text
on the specified position. The style is a string with
the letters b (bold),i (italic),r (right-aligned),
u (underscore), s (strikeout), c (centered).

For showtext there exist following modifier commands:
changeimgcolors index,red,green,blue,1;
- changes the colors, red/green/blue must be values between 0 and 1
changeimgzoom index,zoomfactor;
- makes the text bigger/smaller, by default a text is 24 pixels high
changeimgvis index,layer;
- tells graal where to display the text: 0 - under players,
1 - same layer liker players, 2 - over players (default),
4 - on the status bar, specified coordinates will work
as screen coordinates instead of world coordinates
Please check the 'newfeatures' text files before asking a question. These can be located in your Graal2001 folder.

The answer as shown in the 'newfeatures' text files is that 'r' can be used for Right Alignments, and Left align is on by default so I suppose it would be ' '.
__________________
Reply With Quote
  #3  
Old 12-22-2004, 05:18 AM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Don't put anything for left aligned text.
Reply With Quote
  #4  
Old 12-22-2004, 05:41 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Ugh, Because it allready shows it aligned left?
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 02:02 AM.


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