Selectable TextDraw - Hover color not changing
#1

Код:
	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?
Reply
#2

Probably because inline color codes (~y~, ~w~) override TextDrawColor at all times.
Reply
#3

pawn Код:
SelectTextDraw(playerid, 0xD21313FF);//it is a dark red tell me if this works
if not try placing this line immediately after CreateTextdraw
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)