Tweaking textdraws. - 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: Tweaking textdraws. (
/showthread.php?tid=358589)
Tweaking textdraws. - Nicholas. - 11.07.2012
I have been tweaking around with my clickable textdraws to get the hovering working properly for quite a while now. I can't seem to get it fixed correctly. I would appreciate it if someone would help me with this. Right now the textdraws are completely unclickable.
pawn Код:
Startup6 = TextDrawCreate(178.000000, 201.000000, "Account");
TextDrawBackgroundColor(Startup6, 255);
TextDrawFont(Startup6, 3);
TextDrawLetterSize(Startup6, 0.879998, 2.499999);
TextDrawColor(Startup6, -1);
TextDrawSetOutline(Startup6, 1);
TextDrawSetProportional(Startup6, 1);
TextDrawTextSize(Startup6, 190.000000, 0.000000); // Needs tweaking
TextDrawSetSelectable(Startup6, 1);
Startup7 = TextDrawCreate(325.000000, 201.000000, "Register");
TextDrawBackgroundColor(Startup7, 255);
TextDrawFont(Startup7, 3);
TextDrawLetterSize(Startup7, 0.879998, 2.499999);
TextDrawColor(Startup7, -1);
TextDrawSetOutline(Startup7, 1);
TextDrawSetProportional(Startup7, 1);
TextDrawTextSize(Startup7, 350.000000, 0.000000); // Needs tweaking
TextDrawSetSelectable(Startup7, 1);
Re: Tweaking textdraws. -
SnG.Scot_MisCuDI - 11.07.2012
pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
TextDrawSetSelectable(Textdraw, true);
Re: Tweaking textdraws. - Nicholas. - 11.07.2012
Did you read what I wrote. I think you misunderstood me.
When you're hovering over a clickable textdraw it doesn't hover properly. Say my cursor is hovering over 'Account' once I'm hovering over 'Account' the color changes to blue for example but it also changes the 'Register' textdraw to blue and I am not even hovering over it.
I saw on a thread you need to tweak with TextSize for this problem but I am still stuck.
Re: Tweaking textdraws. - Nicholas. - 11.07.2012
Anyone?