PlayerTextDrawSetSelectable
#1

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

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

Color is different - PlayerTextDrawTextSize is used right - Box is on - Has a different color - Tried OnPlayerClickPlayerTextDraw (and wasn't called)
Reply
#4

Same problem...I can click only on textdraws with font №4 (textures)....
Reply
#5

Hey, I fixed it (big thanks to Hiddos). The TextSize wasn't big enough, indeed.
Reply
#6

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

Your text size is extremely big - you're sure that's OK?
Reply
#8

Ok I set it to TextDrawTextSize(userpanel[playerid],100.000000,438.000000); but problem was not resolved
Reply
#9

No shit, make it some smaller... Like 20x20?
Reply
#10

Same problem here. shitness
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)