Textdraw isn't selectable
#1

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.
Reply
#2

You need to use PlayerTextDrawTextSize to define the clickable area.
Reply
#3

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); 
Reply
#4

Did you do 'PlayerTextDDrawSetSelectable' or 'PlayerTextDrawSetSelectable'?
Reply
#5

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

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); 
Reply
#7

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); 
Reply
#8

130 is too big, but ok..
Reply
#9

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

A very big one xD
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)