textdraw border clickable
#1

Hello guys, I'm sorry for my english. I have a problem with clickable textdraw.

I need to when you roll over previw(id 2999) light up this circle (ID 2999).
The problem is that when the cursor is next to the circle (ID 2999), he begins to sunbathe. And you need to, when only brought upon the circle.
Briefly tell you: you have to circle not sunbathe beyond its borders.
Once again I apologize for my English.
my code:
Код:
iEquip_slot[playerid][7] = CreatePlayerTextDraw(playerid, 545.000000, 125.000000, "");//экипировка артефакт
	PlayerTextDrawFont(playerid, iEquip_slot[playerid][7], TEXT_DRAW_FONT_MODEL_PREVIEW);
	PlayerTextDrawBackgroundColor(playerid, iEquip_slot[playerid][7], 0x00000000);
	PlayerTextDrawTextSize(playerid, iEquip_slot[playerid][7], 60.0, 60.0);
	PlayerTextDrawSetPreviewModel(playerid, iEquip_slot[playerid][7], 2999);//3002
	PlayerTextDrawSetPreviewRot(playerid, iEquip_slot[playerid][7], 40, -15, 10, 1);
	PlayerTextDrawColor(playerid, iEquip_slot[playerid][7], 0x0D0D0D20);
	PlayerTextDrawSetSelectable(playerid, iEquip_slot[playerid][7], 1);
	PlayerTextDrawShow(playerid, iEquip_slot[playerid][7]);
Reply
#2

The problem are your coordinates. Create the box around the picture and that way you will have safe Coords that will script corespond to.
Reply
#3

I did use box 1
Please show me an example
Reply
#4

Up(, help please
Reply
#5

Edit the coordinates of this till it suits your likings:
pawn Код:
PlayerTextDrawTextSize(playerid, iEquip_slot[playerid][7], 60.0, 60.0);
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)