When I hover mouse to Select, it works fine but when i hover mouse to Prev or Next, it selects multi options
PHP Code:
new PlayerText:SkinSelectTD[MAX_PLAYERS][5];
public OnPlayerConnect(playerid){
SkinSelectTD[playerid][0] = CreatePlayerTextDraw(playerid, 121.332351, 129.916671, "box");
PlayerTextDrawLetterSize(playerid, SkinSelectTD[playerid][0], 0.000000, 28.319175);
PlayerTextDrawTextSize(playerid, SkinSelectTD[playerid][0], 262.000000, 0.000000);
PlayerTextDrawAlignment(playerid, SkinSelectTD[playerid][0], 1);
PlayerTextDrawColor(playerid, SkinSelectTD[playerid][0], -1);
PlayerTextDrawUseBox(playerid, SkinSelectTD[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, SkinSelectTD[playerid][0], 130);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, SkinSelectTD[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, SkinSelectTD[playerid][0], 255);
PlayerTextDrawFont(playerid, SkinSelectTD[playerid][0], 1);
PlayerTextDrawSetProportional(playerid, SkinSelectTD[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][0], 0);
SkinSelectTD[playerid][1] = CreatePlayerTextDraw(playerid, 125.849227, 137.500045, "");
PlayerTextDrawLetterSize(playerid, SkinSelectTD[playerid][1], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, SkinSelectTD[playerid][1], 132.000000, 186.000000);
PlayerTextDrawAlignment(playerid, SkinSelectTD[playerid][1], 1);
PlayerTextDrawColor(playerid, SkinSelectTD[playerid][1], -1);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, SkinSelectTD[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, SkinSelectTD[playerid][1], 65);
PlayerTextDrawFont(playerid, SkinSelectTD[playerid][1], 5);
PlayerTextDrawSetProportional(playerid, SkinSelectTD[playerid][1], 0);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][1], 0);
PlayerTextDrawSetPreviewModel(playerid, SkinSelectTD[playerid][1], 0);
PlayerTextDrawSetPreviewRot(playerid, SkinSelectTD[playerid][1], 0.000000, 0.000000, 0.000000, 1.000000);
SkinSelectTD[playerid][2] = CreatePlayerTextDraw(playerid, 167.715972, 366.166717, "<Prev");
PlayerTextDrawLetterSize(playerid, SkinSelectTD[playerid][2], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, SkinSelectTD[playerid][2], 1);
PlayerTextDrawColor(playerid, SkinSelectTD[playerid][2], -2139062017);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][2], 0);
PlayerTextDrawSetOutline(playerid, SkinSelectTD[playerid][2], 0);
PlayerTextDrawBackgroundColor(playerid, SkinSelectTD[playerid][2], 255);
PlayerTextDrawFont(playerid, SkinSelectTD[playerid][2], 1);
PlayerTextDrawSetProportional(playerid, SkinSelectTD[playerid][2], 1);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][2], 0);
PlayerTextDrawSetSelectable(playerid, SkinSelectTD[playerid][2], true);
SkinSelectTD[playerid][3] = CreatePlayerTextDraw(playerid, 173.338195, 348.666870, "Next>");
PlayerTextDrawLetterSize(playerid, SkinSelectTD[playerid][3], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, SkinSelectTD[playerid][3], 1);
PlayerTextDrawColor(playerid, SkinSelectTD[playerid][3], -2139062017);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][3], 0);
PlayerTextDrawSetOutline(playerid, SkinSelectTD[playerid][3], 0);
PlayerTextDrawBackgroundColor(playerid, SkinSelectTD[playerid][3], 226);
PlayerTextDrawFont(playerid, SkinSelectTD[playerid][3], 1);
PlayerTextDrawSetProportional(playerid, SkinSelectTD[playerid][3], 1);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][3], 0);
PlayerTextDrawSetSelectable(playerid, SkinSelectTD[playerid][3], true);
SkinSelectTD[playerid][4] = CreatePlayerTextDraw(playerid, 172.401123, 332.333251, "Select");
PlayerTextDrawLetterSize(playerid, SkinSelectTD[playerid][4], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, SkinSelectTD[playerid][4], 1);
PlayerTextDrawColor(playerid, SkinSelectTD[playerid][4], -2139062017);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][4], 0);
PlayerTextDrawSetOutline(playerid, SkinSelectTD[playerid][4], 0);
PlayerTextDrawBackgroundColor(playerid, SkinSelectTD[playerid][4], 255);
PlayerTextDrawFont(playerid, SkinSelectTD[playerid][4], 1);
PlayerTextDrawSetProportional(playerid, SkinSelectTD[playerid][4], 1);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][4], 0);
PlayerTextDrawSetSelectable(playerid, SkinSelectTD[playerid][4], true);
return 1;
}
I've had these things before. Someone pointed out that adding (if memory serves right)
for the selectable draws takes care of it, if using the right sizes. Your clickable draws don't seem to have this yet, so you could try that. I usually start with small dimensions and work my way up until they're good.