12.09.2014, 16:16
Hello,
I am having two problems with Textdraw Selection.
1. Textdraw Hover works on if I point the mouse on the edge of the textdraw.


(thanks to IgrexolonO - https://sampforum.blast.hk/showthread.php?tid=460549)
--
2. Hover doesn't work at all.
I am having two problems with Textdraw Selection.
1. Textdraw Hover works on if I point the mouse on the edge of the textdraw.


(thanks to IgrexolonO - https://sampforum.blast.hk/showthread.php?tid=460549)
Код:
if(!strcmp(cmdtext, "/test', true)) return SelectTextDraw(playerid, 0xAFAFAF99); BPStroke[playerid][18] = TextDrawCreate(373.000000, 374.000000, "NEXT"); TextDrawBackgroundColor(BPStroke[playerid][18], 255); TextDrawFont(BPStroke[playerid][18], 2); TextDrawLetterSize(BPStroke[playerid][18], 0.310000, 1.500000); TextDrawColor(BPStroke[playerid][18], -1); TextDrawSetOutline(BPStroke[playerid][18], 0); TextDrawSetProportional(BPStroke[playerid][18], 1); TextDrawSetShadow(BPStroke[playerid][18], 1); TextDrawUseBox(BPStroke[playerid][18], 1); TextDrawBoxColor(BPStroke[playerid][18], 85); TextDrawTextSize(BPStroke[playerid][18], 406.000000, 1.000000); TextDrawSetSelectable(BPStroke[playerid][18], 1); if(clickedid == BPStroke[playerid][18]) { CancelSelectTextDraw(playerid); return 1; }
2. Hover doesn't work at all.
Код:
if(!strcmp(cmdtext, "/test', true)) return SelectTextDraw(playerid, 0xAFAFAF99); UseTD[playerid] = TextDrawCreate(222.000000, 259.000000, "USE"); TextDrawBackgroundColor(UseTD[playerid], 255); TextDrawFont(UseTD[playerid], 1); TextDrawLetterSize(UseTD[playerid], 0.590000, 2.299999); TextDrawColor(UseTD[playerid], -1); TextDrawSetOutline(UseTD[playerid], 1); TextDrawSetProportional(UseTD[playerid], 1); TextDrawUseBox(UseTD[playerid], 1); TextDrawBoxColor(UseTD[playerid], -205); TextDrawTextSize(UseTD[playerid], 260.000000, 0.000000); TextDrawSetSelectable(UseTD[playerid], 1); if(clickedid == UseTD[playerid]) { UseItem(playerid, 0); CancelSelectTextDraw(playerid); return 1; }