TD Clickable doesn't work -
ZmaXy - 24.02.2016
PHP код:
WelcomeRegLog[playerid][5] = CreatePlayerTextDraw(playerid, 286.133270, 170.646728, "Register");
PlayerTextDrawLetterSize(playerid, WelcomeRegLog[playerid][5], 0.400000, 1.600000);
PlayerTextDrawColor(playerid, WelcomeRegLog[playerid][5], -1);
PlayerTextDrawSetShadow(playerid, WelcomeRegLog[playerid][5], 0);
PlayerTextDrawSetOutline(playerid, WelcomeRegLog[playerid][5], 0);
PlayerTextDrawBackgroundColor(playerid, WelcomeRegLog[playerid][5], 255);
PlayerTextDrawFont(playerid, WelcomeRegLog[playerid][5], 3);
PlayerTextDrawSetProportional(playerid, WelcomeRegLog[playerid][5], 1);
PlayerTextDrawSetShadow(playerid, WelcomeRegLog[playerid][5], 0);
PlayerTextDrawTextSize(playerid, WelcomeRegLog[playerid][5], 85.0, 40.0);
PlayerTextDrawSetSelectable(playerid, WelcomeRegLog[playerid][5], true);
PHP код:
WelcomeRegLog[playerid][8] = CreatePlayerTextDraw(playerid, 296.233886, 202.348663, "Login");
PlayerTextDrawLetterSize(playerid, WelcomeRegLog[playerid][8], 0.400000, 1.600000);
PlayerTextDrawColor(playerid, WelcomeRegLog[playerid][8], -1);
PlayerTextDrawSetShadow(playerid, WelcomeRegLog[playerid][8], 0);
PlayerTextDrawSetOutline(playerid, WelcomeRegLog[playerid][8], 0);
PlayerTextDrawBackgroundColor(playerid, WelcomeRegLog[playerid][8], 255);
PlayerTextDrawFont(playerid, WelcomeRegLog[playerid][8], 3);
PlayerTextDrawSetProportional(playerid, WelcomeRegLog[playerid][8], 1);
PlayerTextDrawSetShadow(playerid, WelcomeRegLog[playerid][8], 0);
PlayerTextDrawTextSize(playerid, WelcomeRegLog[playerid][8], 85.0, 40.0);
PlayerTextDrawSetSelectable(playerid, WelcomeRegLog[playerid][8], true);
Clickable area doesn't work. I set textsize to different sizes, but no help
Re: TD Clickable doesn't work -
Sawalha - 24.02.2016
have you used this somewhere?
https://sampwiki.blast.hk/wiki/SelectTextdraw
like at OnPlayerConnect or OnPlayerRequestClass? this function will enable the text-selecting for each textdraw you have set it select-able
Re: TD Clickable doesn't work -
ZmaXy - 24.02.2016
No, no. SelectTexrDraw works good but clickable area is "empty". I drag the mouse over TD, but nothing happen, doesn't change color.
Re: TD Clickable doesn't work -
Sawalha - 24.02.2016
could be something with textsizes, i recommend you to do these with a textdraw editor:
- make the text box visible ( i mean set it's color to something a bit transparent )
- make sure that the box of the text is over it all (if not, change it's size until it be comes over the whole text)
still you need to make it transparent so that you can see the text.
- save the box size which be came over all the text, and copy it's new size only without the rest of code (which will be generated in a "TextDrawTextSize" code, if you use a textdraw editor, i assume that's common between textdraw editors so...
or, try something higher than 85 and 40