PlayerTextDrawSetSelectable -
Jochemd - 21.04.2012
Hello
pawn Код:
PlayerTextDrawShow(playerid,PlayerTextDraws[playerid][Register_Message]);
PlayerTextDrawShow(playerid,PlayerTextDraws[playerid][Register_EpicLine]);
PlayerTextDrawShow(playerid,PlayerTextDraws[playerid][Register_Box1]);
PlayerTextDrawShow(playerid,PlayerTextDraws[playerid][Register_Box2]);
PlayerTextDrawSetSelectable(playerid,PlayerTextDraws[playerid][Register_Box1],1);
PlayerTextDrawSetSelectable(playerid,PlayerTextDraws[playerid][Register_Box2],1);
SelectTextDraw(playerid,0x00FF00FF);
I don't know why, but when I hover with my mouse over these boxes the color does not change. Nothing happens when I press them either. What is the problem?
Jochem
Re: PlayerTextDrawSetSelectable -
Hiddos - 21.04.2012
I'm not sure about the colour change, are you using PlayerTextDrawTextSize right (and having a different color, obv)? Don't forget OnPlayerClickPlayerTextDraw gets called when you click a player textdraw.
Re: PlayerTextDrawSetSelectable -
Jochemd - 21.04.2012
Color is different - PlayerTextDrawTextSize is used right - Box is on - Has a different color - Tried OnPlayerClickPlayerTextDraw (and wasn't called)
Re: PlayerTextDrawSetSelectable -
SDraw - 21.04.2012
Same problem...I can click only on textdraws with font №4 (textures)....
Re: PlayerTextDrawSetSelectable -
Jochemd - 21.04.2012
Hey, I fixed it (big thanks to Hiddos). The TextSize wasn't big enough, indeed.
Re: PlayerTextDrawSetSelectable -
martanius - 17.05.2012
Hi, I have same problem and I changed TextSize too but nothing changed
Код:
userpanel = TextDrawCreate(0,428,"User panel");
TextDrawLetterSize(userpanel,1.000000,2.000000);
TextDrawAlignment(userpanel,0);
TextDrawBackgroundColor(userpanel,0x000000FF);
TextDrawFont(userpanel,0);
TextDrawUseBox(userpanel,1);
TextDrawBoxColor(userpanel,0x000000FF);
TextDrawTextSize(userpanel,700.000000,438.000000);
TextDrawSetOutline(userpanel,0);
TextDrawSetProportional(userpanel,1);
TextDrawSetShadow(userpanel,1);
Sorry if is this non-active topic but why create new topic with same problem as this.
Re: PlayerTextDrawSetSelectable -
Jochemd - 18.05.2012
Your text size is extremely big - you're sure that's OK?
Re: PlayerTextDrawSetSelectable -
martanius - 18.05.2012
Ok I set it to TextDrawTextSize(userpanel[playerid],100.000000,438.000000); but problem was not resolved
Re: PlayerTextDrawSetSelectable -
Jochemd - 18.05.2012
No shit, make it some smaller... Like 20x20?
Re: PlayerTextDrawSetSelectable -
Ricop522 - 10.06.2012
Same problem here. shitness