Semi transparent tds aren't clickable? - 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: Semi transparent tds aren't clickable? (
/showthread.php?tid=603508)
Semi transparent tds aren't clickable? -
vannesenn - 24.03.2016
Hi guys,
I made my tds for signup semi transparent, also I added semi transparent outline to them. Tds look fine but when I click on it(eg. td for password), callback OnPlayerClickPlayerTextDraw won't be called.
Код:
_HRP_TD_RegOOC[_playerid][2] = CreatePlayerTextDraw(_playerid, 188.962738, 223.719711, "Zaporka");
PlayerTextDrawLetterSize(_playerid, _HRP_TD_RegOOC[_playerid][2], 0.258332, 1.293037);
PlayerTextDrawTextSize(_playerid, _HRP_TD_RegOOC[_playerid][2], 239.000000, 0.000000);
PlayerTextDrawAlignment(_playerid, _HRP_TD_RegOOC[_playerid][2], 1);
PlayerTextDrawColor(_playerid, _HRP_TD_RegOOC[_playerid][2], -120);
PlayerTextDrawSetShadow(_playerid, _HRP_TD_RegOOC[_playerid][2], 0);
PlayerTextDrawSetOutline(_playerid, _HRP_TD_RegOOC[_playerid][2], 1);
PlayerTextDrawBackgroundColor(_playerid, _HRP_TD_RegOOC[_playerid][2], 52);
PlayerTextDrawFont(_playerid, _HRP_TD_RegOOC[_playerid][2], 2);
PlayerTextDrawSetProportional(_playerid, _HRP_TD_RegOOC[_playerid][2], 1);
PlayerTextDrawSetSelectable(_playerid, _HRP_TD_RegOOC[_playerid][2], true);
if(playertextid == _HRP_TD_RegOOC[playerid][2]) // UNOS ZAPORKE
{
CancelSelectTextDraw(playerid);
_HRP_Dialog(playerid, _HRP_DIALOG_REG_ZAPORKA, DIALOG_STYLE_INPUT, "Unesite zaporku", ""_HRP_BIJELA"Unesite Vaљu ћeljenu zaporku.\nDuћina zaporke mora biti između "#_HRP_MIN_PW_LEN" i "#_HRP_MAX_PW_LEN" znakova.\nTakođer ne smije sadrћavati dio imena.", "Potvrdi", "Izađi");
return (true);
}
I added print on the top in callback but I don't see that print in log.
Re: Semi transparent tds aren't clickable? -
NaS - 24.03.2016
The Y size is 0 (TextSize), so it's not clickable. It can get a bit tricky adjusting the size to a box, but you have to do that.
Re: Semi transparent tds aren't clickable? -
vannesenn - 24.03.2016
Thanks, I didn't saw Y is zero.