SelectTextDraw query
#1

Hi guys,

So I've been working on a new system within my server using textdraws. Everything's all working perfectly now script wise except for the SelectTextDraw, basically... The textdraw works as a 'pager' system in a way, which allows the user to click one of 4 buttons on the pager. However when you go to select one of these buttons it selects ALL on the same line as the button that is trying to be clicked.

I've also noticed that moving my mouse to the other side of the screen, as long as the cursor is in line with the button, it also selects it. I can only presume that this is perhaps due to a textdraw that is transparent that I have dragged out too much? I've checked the box etc and everything seems fine.

Any suggestions what this could be? Typically I'd attach code but I think this is less a scripting issue, if it's perhaps something dragged out past where it should be I can look into resolving that.

Here is a screenshot, sadly the screenshot must hide the cursor but I think it covers what I'm trying to do.




Any help would be appreciated.
Reply
#2

Make sure the text sizes of each of those button textdraws don't overlap eavh other.

The TextSize is also used as the rectangular area where the text show hover effect.
Reply
#3

Quote:
Originally Posted by Gammix
Посмотреть сообщение
Make sure the text sizes of each of those button textdraws don't overlap eavh other.

The TextSize is also used as the rectangular area where the text show hover effect.
It's actually the text that is set as the clickable textdraw. I've checked the sizes, none of them overlap one another. Any other suggestions, mate?

I keep thinking perhaps the SAMP client is detecting that they are all on the same Y Axis of the screen and making it think i'm selecting all 3 of them? Same Y but different X completely.
Reply
#4

Bump.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)