Arrange huds under each other
Hello, I have this.
It's a hud message who appears left or right depends of the players team. I put the up-down possition random but ocasionally they overwrite, I don't know how to explain it so I'll attach a screenshot. The first image - 1 is what happend when two or more huds are displayed - look at the left side, up. [ http://steamcommunity.com/id/eliara/...74420292407965 ] The second image is how I want them to be, when two or more messages are generated I want them under each other to look nice. [ http://steamcommunity.com/id/eliara/...74420292407965 ] Screens are on steam cloud images gallery because I can't upload them, they are too large. Code: PHP Code:
I hope there's the right section to ask help. |
Re: Arrange huds under each other
You can use sync huds and clear it before you show
PHP Code:
|
Re: Arrange huds under each other
Hello.
Thanks for reply. Is there a way to make them all show but one after each other instead of making them disappear? I want all of the to show but in order, I don't want to erase them when another is pop up. |
Re: Arrange huds under each other
If you want them all there but not overwriting each other, change the X/Y coordinates in set_hudmessage().
|
Re: Arrange huds under each other
How can I put the conditions to not overwrite but in the same time the up-down possition to be random? Or manually set it to be under each other?
|
Re: Arrange huds under each other
If you want random without one overlapping another you will need to do work to make sure one is not over another, whether partially or totaly.
Instead of random, I would define an array of 5-10 origins and loop through it. Make this set ones that you know will be ok if used one after the other. |
Re: Arrange huds under each other
Can you show me an example of this array please? I'm gonna try it.
|
Re: Arrange huds under each other
You can make them go down in a line, a circle, random, or anything you want. You just need to fill the array with the X,Y coords.
PHP Code:
|
Re: Arrange huds under each other
Thanks for you time. That really helps me and I managed to make it work.
|
| All times are GMT -4. The time now is 09:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.