Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Text transparency (https://forums.graalonline.com/forums/showthread.php?t=40916)

HoudiniMan 12-04-2002 05:21 AM

Text transparency
 
With both showtext and the showimg older way of showing text on screen transparency seems to be unsupported...

the script i used was this:
NPC Code:

// NPC made by Citizen Houdini Fontaine (Zormite)
if (created||playerenters) {
showtext 0,x,y,Arial,,Test Text;
changeimgzoom 0,5;
}

if (playerchats && strequals(#c,fade)) {
changeimgcolors 0,0,0,1,0.5;
}



It turns blue if you try it when you say "fade" to show that the command is executed but the alpha doesn't affect the text...

Is there a way to make text fade to transparent?

(I will use a for () loop to make it fade at a given incriment but i can't affect the alpha of the text at all right now other than fading to black on a black background... I need it to be transparent.)

Python523 12-04-2002 06:09 AM

you didnt add changeimgmode, and Im not sure if transparency works on text

Loriel 12-04-2002 08:15 AM

Quote:

Originally posted by Python523
Im not sure if transparency works on text
I am sure. It does not work.

HoudiniMan 12-04-2002 08:21 AM

Quote:

Originally posted by Python523
you didnt add changeimgmode, and Im not sure if transparency works on text
We tried that too but got the same results.

HoudiniMan 12-04-2002 08:22 AM

Quote:

Originally posted by Loriel
I am sure. It does not work.
Thats really very nice, but my question is does anybody know if there is a relatively convienient way to do what i'm trying to do here.

Loriel 12-04-2002 08:31 AM

Quote:

Originally posted by HoudiniMan
Thats really very nice, but my question is does anybody know if there is a relatively convienient way to do what i'm trying to do here.
That's really very interesting, but I was not attempting to answer your question :)

To answer it, the only way to get transparent text is to save it as png or so, and display it as normal image.

CheeToS2 12-04-2002 10:04 AM

Quote:

Originally posted by Loriel
That's really very interesting, but I was not attempting to answer your question :)

To answer it, the only way to get transparent text is to save it as png or so, and display it as normal image.

hehe.. now where have I heard that before? *looks at houdini*
*snicker*

HoudiniMan 12-10-2002 04:32 PM

I had a counter thought up however to continue would be utterly pointless. I'm not concerned anymore with the thread and there seems to be nobody with a decent solution...

So mr. mod guy, close away, or whatever it is you do :)

Googi 12-11-2002 12:00 PM

Umm...maybe use showimg instead of showtext?

Python523 12-11-2002 12:24 PM

Quote:

Originally posted by Googi
Umm...maybe use showimg instead of showtext?
graal makes showtext lines showimg lines, showtext is just a more organized way of doing it

billybob53 12-14-2002 05:06 AM

do you mean like half transparent?

If you want that just use:
NPC Code:

changeimgcolors index,r,g,b,alpha;


CheeToS2 12-14-2002 05:33 AM

Quote:

Originally posted by billybob53
do you mean like half transparent?

If you want that just use:
NPC Code:

changeimgcolors index,r,g,b,alpha;


you can't do it with text.

billybob53 12-14-2002 06:34 AM

u can, but u gotta use 'showimg' instead of 'showtext'

Python523 12-14-2002 07:59 AM

Quote:

Originally posted by billybob53
u can, but u gotta use 'showimg' instead of 'showtext'
...showtext translates into showimg, showtext is just a more organized version of doing it

HoudiniMan 12-17-2002 02:10 AM

the four posts predating this one were just a summary of the whole thread... did you even read the entries before yours billybob? :(


All times are GMT +2. The time now is 09:26 PM.

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