Hallo,
ich habe aus reiner Langeweile ein kleines Statistik-Textdraw erstellt.
Man soll auf die Hauptreiter (Statistik, Lizenzen, Fahrzeuge, Bank) klicken können, um den "Tab" zu wechseln.
Dabei liegt auch schon das Problem. Der Textdraw wechselt die Farbe beim "Hover" nicht, und lässt sich auch nicht anklicken. Es funktioniert mit keinem Reiter.
Ich weiß nicht ob es Ironie ist, aber das X ganz Rechts lässt sich anklicken usw.
Hier ein kleiner Screen der Reiter:
Hier der Code, wo die Reiter erstellt werden:
Stats[53][playerid] = CreatePlayerTextDraw(playerid, 132.799972, 152.817794, "Statistik");
PlayerTextDrawLetterSize(playerid, Stats[53][playerid], 0.449999, 1.600000);
PlayerTextDrawTextSize(playerid, Stats[53][playerid], 202.799911, -22.897779);
PlayerTextDrawAlignment(playerid, Stats[53][playerid], 1);
PlayerTextDrawColor(playerid, Stats[53][playerid], -1);
PlayerTextDrawSetShadow(playerid, Stats[53][playerid], 0);
PlayerTextDrawSetOutline(playerid, Stats[53][playerid], 0);
PlayerTextDrawBackgroundColor(playerid, Stats[53][playerid], 51);
PlayerTextDrawFont(playerid, Stats[53][playerid], 3);
PlayerTextDrawSetProportional(playerid, Stats[53][playerid], 1);
PlayerTextDrawSetSelectable(playerid, Stats[53][playerid], true);
Stats[54][playerid] = CreatePlayerTextDraw(playerid, 220.400009, 152.817825, "Lizenzen");
PlayerTextDrawLetterSize(playerid, Stats[54][playerid], 0.449999, 1.600000);
PlayerTextDrawTextSize(playerid, Stats[54][playerid], 281.999877, -34.346660);
PlayerTextDrawAlignment(playerid, Stats[54][playerid], 1);
PlayerTextDrawColor(playerid, Stats[54][playerid], -1);
PlayerTextDrawSetShadow(playerid, Stats[54][playerid], 0);
PlayerTextDrawSetOutline(playerid, Stats[54][playerid], 0);
PlayerTextDrawBackgroundColor(playerid, Stats[54][playerid], 51);
PlayerTextDrawFont(playerid, Stats[54][playerid], 3);
PlayerTextDrawSetProportional(playerid, Stats[54][playerid], 1);
PlayerTextDrawSetSelectable(playerid, Stats[54][playerid], true);
Stats[55][playerid] = CreatePlayerTextDraw(playerid, 298.400054, 152.817749, "Fahrzeuge");
PlayerTextDrawLetterSize(playerid, Stats[55][playerid], 0.424798, 1.580088);
PlayerTextDrawTextSize(playerid, Stats[55][playerid], 368.799926, -9.955554);
PlayerTextDrawAlignment(playerid, Stats[55][playerid], 1);
PlayerTextDrawColor(playerid, Stats[55][playerid], -1);
PlayerTextDrawSetShadow(playerid, Stats[55][playerid], 0);
PlayerTextDrawSetOutline(playerid, Stats[55][playerid], 0);
PlayerTextDrawBackgroundColor(playerid, Stats[55][playerid], 51);
PlayerTextDrawFont(playerid, Stats[55][playerid], 3);
PlayerTextDrawSetProportional(playerid, Stats[55][playerid], 1);
PlayerTextDrawSetSelectable(playerid, Stats[55][playerid], true);
Stats[56][playerid] = CreatePlayerTextDraw(playerid, 397.599975, 153.315551, "Bank");
PlayerTextDrawLetterSize(playerid, Stats[56][playerid], 0.449999, 1.600000);
PlayerTextDrawTextSize(playerid, Stats[56][playerid], 431.199920, -7.466667);
PlayerTextDrawAlignment(playerid, Stats[56][playerid], 1);
PlayerTextDrawColor(playerid, Stats[56][playerid], -1);
PlayerTextDrawSetShadow(playerid, Stats[56][playerid], 0);
PlayerTextDrawSetOutline(playerid, Stats[56][playerid], 0);
PlayerTextDrawBackgroundColor(playerid, Stats[56][playerid], 51);
PlayerTextDrawFont(playerid, Stats[56][playerid], 3);
PlayerTextDrawSetProportional(playerid, Stats[56][playerid], 1);
PlayerTextDrawSetSelectable(playerid, Stats[56][playerid], true);
Woran liegt es?
lg
Deagle
/e Jeffry: