Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   TShowImg with layer 3 (https://forums.graalonline.com/forums/showthread.php?t=87554)

FireHunter 08-22-2009 01:55 PM

TShowImg with layer 3
 
Well im stuck at a script:
I've made 2 TShowImg in the Tile-Light-Layer ( 3 ) on the same position
(Background Img + Text)
Well both stay in at least the Layer 3 or a few other npcs with drawoverplayer(); will hide the background image
now my problem is that the Background image is always on the top hiding the Text under it - is there a posibility to bring the text into the front ?
(Both must stay on the Tile Layer + on top of every other Image)

screen_name 08-22-2009 02:07 PM

Try; reversing the indexes of the two or the order in which they are hidden.

FireHunter 08-22-2009 03:16 PM

well doesnt work :-/

[email protected] 08-22-2009 04:30 PM

Would you mind posting the script? Thank you

Or, try adding the text after you've added the background. That could help

Crow 08-22-2009 04:33 PM

Quote:

Originally Posted by [email protected] (Post 1517530)
Or, try adding the text after you've added the background. That could help

It won't. It doesn't matter in which order you are showing the images, Graal will mess up at some point. If it really has to be layer 3, try using a gani. Not sure if that will do, but I'd give it a shot.

[email protected] 08-22-2009 04:40 PM

Quote:

Originally Posted by Crow (Post 1517533)
It won't. It doesn't matter in which order you are showing the images, Graal will mess up at some point. If it really has to be layer 3, try using a gani. Not sure if that will do, but I'd give it a shot.

Ahh- damn

Gambet 08-22-2009 06:40 PM

Why does it have to be in layer 3? Normally for stuff like this I would put the text in a layer above that of the background image to prevent the image from hiding it.

FireHunter 08-22-2009 10:51 PM

Well currently Im altering the players chat
The result: http://img30.imageshack.us/img30/3594/playerchatb.png

The Background Image is layer 2 atm until there is a solution for the problem :-/
- So when Im walking under drawoverplayer() npcs then the text is shown over the npcs image and the background is hidden under the npcs image >.<

TShowImg Layers should really be sorted by id that the lowest one is on the bottom :-/

zokemon 09-01-2009 07:49 AM

Use showimg2 or specify a z value with the findimg. Just set your z to 1 and add 1 to the y. This would make the text appear in the same position but float over the image.

FireHunter 09-01-2009 08:42 PM

Oh nice its working big big thx :o


All times are GMT +2. The time now is 07:18 PM.

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