Order of TextDraws - weird behaviour
#1

Hi.

I've noticed a weird problem on my server with order of my textdraws.
Today I've created a little script to test it on a clean server.

Here is the code of this script: https://pastebin.com/auWGMxeS

In short:
Starting with /run command.
I'm creating 4 Textdraws with some text on each. Then showing these textdraws.
After that, I'm creating a textdraw to fulfill the screen on black.

This is what happens after running /run:
https://prnt.sc/iolb6f

Then I'm running /destroy (function hides and destroys all textdraws that I've created except one):
https://prnt.sc/iolbzr

As you can see - after removing some textdraws that are under my filled screen and that one that is over my blackfilled textdraw - the last one goes over this black textdraw.

Can someone explain me... what is going on?

Regards.
Reply
#2

You could just destroy all of them and show again only those two what you want to remain, if that's your issue?
Reply
#3

It's a dirty workaround.
I do not want to create textdraws everytime when I want to show them.

I think that this is a SA-MP bug (that probably won't be fixed)...
Order of textdraws should be in the same order we show textdraw, not create.

But as you can see - there is no order, they are fckd up

Edit: And no. I do not want to show only two. I want ALL of them to be behind this black screen.
This is nonsense, to hide every textdraw when I want to cover screen with a color (with different alpha or not)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)