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(playerid, SkinSelect[playerid][0], 0.000000, 130.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(playerid, SkinSelect[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(playerid, 317.098052, 392.170257, "Selectionner");
PlayerTextDrawLetterSize(playerid, SkinSelect[playerid][0], 0.411998, 1.703703);
PlayerTextDrawTextSize(playerid, SkinSelect[playerid][0], 0.000000, 130.000000);
PlayerTextDrawAlignment(playerid, SkinSelect[playerid][0], 2);
PlayerTextDrawColor(playerid, SkinSelect[playerid][0], -1);
PlayerTextDrawUseBox(playerid, SkinSelect[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, SkinSelect[playerid][0], 65535);
PlayerTextDrawSetShadow(playerid, SkinSelect[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, SkinSelect[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, SkinSelect[playerid][0], 255);
PlayerTextDrawFont(playerid, SkinSelect[playerid][0], 2);
PlayerTextDrawSetProportional(playerid, SkinSelect[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, SkinSelect[playerid][0], 0);
PlayerTextDrawSetSelectable(playerid, SkinSelect[playerid][0], true);
Re: Textdraw isn't selectable -
Lokii - 24.03.2018
Quote:
Originally Posted by Kampott
PHP код:
SkinSelect[playerid][0] = CreatePlayerTextDraw(playerid, 317.098052, 392.170257, "Selectionner");
PlayerTextDrawLetterSize(playerid, SkinSelect[playerid][0], 0.411998, 1.703703);
PlayerTextDrawTextSize(playerid, SkinSelect[playerid][0], 0.000000, 130.000000);
PlayerTextDrawAlignment(playerid, SkinSelect[playerid][0], 2);
PlayerTextDrawColor(playerid, SkinSelect[playerid][0], -1);
PlayerTextDrawUseBox(playerid, SkinSelect[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, SkinSelect[playerid][0], 65535);
PlayerTextDrawSetShadow(playerid, SkinSelect[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, SkinSelect[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, SkinSelect[playerid][0], 255);
PlayerTextDrawFont(playerid, SkinSelect[playerid][0], 2);
PlayerTextDrawSetProportional(playerid, SkinSelect[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, SkinSelect[playerid][0], 0);
PlayerTextDrawSetSelectable(playerid, SkinSelect[playerid][0], true);
|
PHP код:
PlayerTextDrawTextSize(playerid, SkinSelect[playerid][0], 130.000000, 130.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