Selectable TextDraw - Hover color not changing - 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: Selectable TextDraw - Hover color not changing (
/showthread.php?tid=459161)
Selectable TextDraw - Hover color not changing -
WooTFTW - 21.08.2013
Код:
TutorialSelect1[playerid] = CreatePlayerTextDraw(playerid, 527.000000, 97.000000, "~y~1.~w~ Serveris");
PlayerTextDrawAlignment(playerid, TutorialSelect1[playerid], 2);
PlayerTextDrawBackgroundColor(playerid, TutorialSelect1[playerid], 255);
PlayerTextDrawFont(playerid, TutorialSelect1[playerid], 2);
PlayerTextDrawLetterSize(playerid, TutorialSelect1[playerid], 0.250000, 1.199999);
PlayerTextDrawColor(playerid, TutorialSelect1[playerid], -1);
PlayerTextDrawSetOutline(playerid, TutorialSelect1[playerid], 0);
PlayerTextDrawSetProportional(playerid, TutorialSelect1[playerid], 1);
PlayerTextDrawSetShadow(playerid, TutorialSelect1[playerid], 1);
PlayerTextDrawUseBox(playerid, TutorialSelect1[playerid], 1);
PlayerTextDrawBoxColor(playerid, TutorialSelect1[playerid], 100);
PlayerTextDrawTextSize(playerid, TutorialSelect1[playerid], 70.000000, 70.000000);
PlayerTextDrawSetSelectable(playerid, TutorialSelect1[playerid], 1);
PlayerTextDrawShow(playerid, TutorialSelect1[playerid]);
SelectTextDraw(playerid, 0x00FFAAFF);
It calls OnPlayerClickPlayerTextDraw() callback, but it doesn't change the hover color, why?
Re: Selectable TextDraw - Hover color not changing -
Vince - 21.08.2013
Probably because inline color codes (~y~, ~w~) override TextDrawColor at all times.
Re: Selectable TextDraw - Hover color not changing -
kingofdemons - 21.08.2013
pawn Код:
SelectTextDraw(playerid, 0xD21313FF);//it is a dark red tell me if this works
if not try placing this line immediately after CreateTextdraw