SA-MP Forums Archive
Textdraw isn't selectable - 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: Textdraw isn't selectable (/showthread.php?tid=651642)



Textdraw isn't selectable - Kampott - 24.03.2018

I'm creating a skin selection system using textdraws, but the button "Select" isn't selectable, while the left and right navigation arrow are. I'm using PlayerTextDDrawSetSelectable, and it should be working, but it's not.


Re: Textdraw isn't selectable - [WSF]ThA_Devil - 24.03.2018

You need to use PlayerTextDrawTextSize to define the clickable area.


Re: Textdraw isn't selectable - Kampott - 24.03.2018

Quote:
Originally Posted by [WSF]ThA_Devil
Посмотреть сообщение
You need to use PlayerTextDrawTextSize to define the clickable area.
Done already.
PHP код:
PlayerTextDrawTextSize(playeridSkinSelect[playerid][0], 0.000000130.000000); 



Re: Textdraw isn't selectable - Infin1ty - 24.03.2018

Did you do 'PlayerTextDDrawSetSelectable' or 'PlayerTextDrawSetSelectable'?


Re: Textdraw isn't selectable - Kampott - 24.03.2018

Quote:
Originally Posted by Infin1ty
Посмотреть сообщение
Did you do 'PlayerTextDDrawSetSelectable' or 'PlayerTextDrawSetSelectable'?
PHP код:
PlayerTextDrawSetSelectable(playeridSkinSelect[playerid][0], true); 



Re: Textdraw isn't selectable - Kampott - 24.03.2018

Quote:
Originally Posted by Lokii
Посмотреть сообщение
show the code where you create the "select" TD
PHP код:
SkinSelect[playerid][0] = CreatePlayerTextDraw(playerid317.098052392.170257"Selectionner");
PlayerTextDrawLetterSize(playeridSkinSelect[playerid][0], 0.4119981.703703);
PlayerTextDrawTextSize(playeridSkinSelect[playerid][0], 0.000000130.000000);
PlayerTextDrawAlignment(playeridSkinSelect[playerid][0], 2);
PlayerTextDrawColor(playeridSkinSelect[playerid][0], -1);
PlayerTextDrawUseBox(playeridSkinSelect[playerid][0], 1);
PlayerTextDrawBoxColor(playeridSkinSelect[playerid][0], 65535);
PlayerTextDrawSetShadow(playeridSkinSelect[playerid][0], 0);
PlayerTextDrawSetOutline(playeridSkinSelect[playerid][0], 0);
PlayerTextDrawBackgroundColor(playeridSkinSelect[playerid][0], 255);
PlayerTextDrawFont(playeridSkinSelect[playerid][0], 2);
PlayerTextDrawSetProportional(playeridSkinSelect[playerid][0], 1);
PlayerTextDrawSetShadow(playeridSkinSelect[playerid][0], 0);
PlayerTextDrawSetSelectable(playeridSkinSelect[playerid][0], true); 



Re: Textdraw isn't selectable - Lokii - 24.03.2018

Quote:
Originally Posted by Kampott
Посмотреть сообщение
PHP код:
SkinSelect[playerid][0] = CreatePlayerTextDraw(playerid317.098052392.170257"Selectionner");
PlayerTextDrawLetterSize(playeridSkinSelect[playerid][0], 0.4119981.703703);
PlayerTextDrawTextSize(playeridSkinSelect[playerid][0], 0.000000130.000000);
PlayerTextDrawAlignment(playeridSkinSelect[playerid][0], 2);
PlayerTextDrawColor(playeridSkinSelect[playerid][0], -1);
PlayerTextDrawUseBox(playeridSkinSelect[playerid][0], 1);
PlayerTextDrawBoxColor(playeridSkinSelect[playerid][0], 65535);
PlayerTextDrawSetShadow(playeridSkinSelect[playerid][0], 0);
PlayerTextDrawSetOutline(playeridSkinSelect[playerid][0], 0);
PlayerTextDrawBackgroundColor(playeridSkinSelect[playerid][0], 255);
PlayerTextDrawFont(playeridSkinSelect[playerid][0], 2);
PlayerTextDrawSetProportional(playeridSkinSelect[playerid][0], 1);
PlayerTextDrawSetShadow(playeridSkinSelect[playerid][0], 0);
PlayerTextDrawSetSelectable(playeridSkinSelect[playerid][0], true); 
PHP код:
PlayerTextDrawTextSize(playeridSkinSelect[playerid][0], 130.000000130.000000); 



Re: Textdraw isn't selectable - v1k1nG - 24.03.2018

130 is too big, but ok..


Re: Textdraw isn't selectable - Lokii - 24.03.2018

Quote:
Originally Posted by v1k1nG
Посмотреть сообщение
130 is too big, but ok..
that was just an example


Re: Textdraw isn't selectable - v1k1nG - 24.03.2018

A very big one xD