SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 27/04/2014, 02:59 PM   #1
Campbell-
Big Clucker
 
Join Date: Jan 2012
Location: Germany
Posts: 140
Reputation: 12
Default Textdraw-Selectable-Color Issue

Quick question I didn't find a solution for yet: I have three textdraws which are all selectable. But I only want one of these textdraws to change its color when I slide with my mouse over it. Is it possible?

Issue is here because I can only set one color for all textdraws:

pawn Code:
SelectTextDraw(playerid, color);
Campbell- is offline   Reply With Quote
Old 27/04/2014, 03:16 PM   #2
Vince
Spam Machine
 
Vince's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 10,071
Reputation: 2655
Default Re: Textdraw-Selectable-Color Issue

Only indirectly. For the ones you don't want the color to change you'll have to create an invisible overlay (box only, no text). It is this overlay which then needs to be made selectable, rather than the actual text.
__________________
Vince is offline   Reply With Quote
Old 27/04/2014, 04:45 PM   #3
Campbell-
Big Clucker
 
Join Date: Jan 2012
Location: Germany
Posts: 140
Reputation: 12
Default Re: Textdraw-Selectable-Color Issue

Worked out fine, thanks.
Campbell- is offline   Reply With Quote
Old 29/04/2014, 03:04 PM   #4
Campbell-
Big Clucker
 
Join Date: Jan 2012
Location: Germany
Posts: 140
Reputation: 12
Default Re: Textdraw-Selectable-Color Issue

I seem to have a follow-up question: I have a box, on this box I have a text. Now I want to have a box as a hover behind the text as soon as I move with my mouse over the area of the box. Is this possible?
Campbell- is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Selectable textdraw color changes when passing through it or passing on right/bottom Private200 Scripting Help 6 16/04/2014 07:54 PM
Selectable TextDraw - Hover color not changing WooTFTW Scripting Help 2 21/08/2013 11:45 AM
Problem with selectable textdraw verlaj Scripting Help 4 29/07/2013 05:03 AM
Issue with Selectable Textdraws WiredGuyX Scripting Help 7 15/06/2012 10:06 AM


All times are GMT. The time now is 12:12 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.