SA-MP Forums Archive
Small question. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Small question. (/showthread.php?tid=616847)



Small question. - Sjn - 11.09.2016

I was redesigning my textdraw menu and thought about making the background color changing upon hover but I found out the wikipedia says the following;

Quote:

It is the TEXT which will be highlighted when hovered over, NOT the box (if one is shown).

But the thing is, I saw that the mSelection menu include by d0 has the background color of the tab changing upon hovering the item and I'm looking for something similar. I tried checking the include to get the idea from there but wasn't able to find it out. Can anyone explain how it's made?


Re: Small question. - Type-R - 11.09.2016

Don't know if this helps, but i found this:
https://sampforum.blast.hk/showthread.php?tid=436730

Seems like you would have to create your own function.


Re: Small question. - PrO.GameR - 11.09.2016

Those "backgrounds" are a separate textdraw themselves, which are selectable instead of the text itself.


Re: Small question. - Sjn - 11.09.2016

Quote:
Originally Posted by PrO.GameR
Посмотреть сообщение
Those "backgrounds" are a separate textdraw themselves, which are selectable instead of the text itself.
Can you explain a little further?

I just however want the background color to be changed, the text color does not really matter to me. If there's a need for a separate textdraw, that's not a problem. I'm just out of idea on how to do it.


Re: Small question. - SickAttack - 11.09.2016

Previewing models is like that. What you can do is create a sprite and use that instead.

https://sampwiki.blast.hk/wiki/TextDraw_Sprites