Clickable Textdraws
#1

Hi, I'm creating this thread for the second time, just because the old one didn't get any replies so I didn't want to bump the old one and decided to create a new one.
So the question is: which textdraw editor is the best for creating clickable textdraws? I tried making them with iPLOEMAX's textdraw editor, but I can click a textdraw even when my mouse is not on it and two textdraws sometimes get highlighted even if I don't have the mouse on any of them.
Reply
#2

you've to adjust textdraw size to fix clicking bugs, you can use this function to do it.
PHP код:
TextDrawTextSize 
Function wiki page: https://sampwiki.blast.hk/wiki/TextDrawTextSize
Reply
#3

Text size or the textdraw size? I don't want to make the text smaller.
Reply
#4

Quote:
Originally Posted by GoldenLion
Посмотреть сообщение
Text size or the textdraw size? I don't want to make the text smaller.
TextDrawSize not TextDrawLetterSize, it won't effect on letters size, Idk if it has to be same with TextDrawLetterSize just put random numbers and increase / decrease after testing :- d
Reply
#5

Quote:
Originally Posted by jlalt
Посмотреть сообщение
TextDrawSize not TextDrawLetterSize, it won't effect on letters size, Idk if it has to be same with TextDrawLetterSize just put random numbers and increase / decrease after testing :- d
Alright, thanks.
Reply
#6

Nevermind, anything I make the text size, it stops working at all.
Does anybody know what should be the text size for these textdraws?:

Код:
	Textdraw0 = CreatePlayerTextDraw(playerid, 228.000000, 201.040039, "BLUE");
	PlayerTextDrawLetterSize(playerid, Textdraw0, 0.589500, 2.843200);
	PlayerTextDrawAlignment(playerid, Textdraw0, 1);
	PlayerTextDrawColor(playerid, Textdraw0, 65535);
	PlayerTextDrawSetShadow(playerid, Textdraw0, 0);
	PlayerTextDrawSetOutline(playerid, Textdraw0, 1);
	PlayerTextDrawBackgroundColor(playerid, Textdraw0, 51);
	PlayerTextDrawFont(playerid, Textdraw0, 2);
	PlayerTextDrawSetProportional(playerid, Textdraw0, 1);
	PlayerTextDrawSetSelectable(playerid, Textdraw0, true);

	Textdraw1 = CreatePlayerTextDraw(playerid, 360.000000, 199.920074, "RED");
	PlayerTextDrawLetterSize(playerid, Textdraw1, 0.622500, 2.960796);
	PlayerTextDrawAlignment(playerid, Textdraw1, 1);
	PlayerTextDrawColor(playerid, Textdraw1, -16776961);
	PlayerTextDrawSetShadow(playerid, Textdraw1, 0);
	PlayerTextDrawSetOutline(playerid, Textdraw1, 1);
	PlayerTextDrawBackgroundColor(playerid, Textdraw1, 51);
	PlayerTextDrawFont(playerid, Textdraw1, 2);
	PlayerTextDrawSetProportional(playerid, Textdraw1, 1);
	PlayerTextDrawSetSelectable(playerid, Textdraw1, true);
Reply
#7

Just for sure you've never used
PHP код:
PlayerTextDrawTextSize 
You've only used
PHP код:
PlayerTextDrawLetterSize 
so try this:
PHP код:
    Textdraw0 CreatePlayerTextDraw(playerid228.000000201.040039"BLUE");
    
PlayerTextDrawLetterSize(playeridTextdraw00.5895002.843200);
    
PlayerTextDrawSize(playeridTextdraw00.5895002.843200);
    
PlayerTextDrawAlignment(playeridTextdraw01);
    
PlayerTextDrawColor(playeridTextdraw065535);
    
PlayerTextDrawSetShadow(playeridTextdraw00);
    
PlayerTextDrawSetOutline(playeridTextdraw01);
    
PlayerTextDrawBackgroundColor(playeridTextdraw051);
    
PlayerTextDrawFont(playeridTextdraw02);
    
PlayerTextDrawSetProportional(playeridTextdraw01);
    
PlayerTextDrawSetSelectable(playeridTextdraw0true);
    
Textdraw1 CreatePlayerTextDraw(playerid360.000000199.920074"RED");
    
PlayerTextDrawLetterSize(playeridTextdraw10.6225002.960796);
    
PlayerTextDrawSize(playeridTextdraw10.6225002.960796);
    
PlayerTextDrawAlignment(playeridTextdraw11);
    
PlayerTextDrawColor(playeridTextdraw1, -16776961);
    
PlayerTextDrawSetShadow(playeridTextdraw10);
    
PlayerTextDrawSetOutline(playeridTextdraw11);
    
PlayerTextDrawBackgroundColor(playeridTextdraw151);
    
PlayerTextDrawFont(playeridTextdraw12);
    
PlayerTextDrawSetProportional(playeridTextdraw11);
    
PlayerTextDrawSetSelectable(playeridTextdraw1true); 
Reply
#8

I know, I just removed these two lines of PlayerTextDrawTextSize before posting here lol.
Reply
#9

Quote:
Originally Posted by GoldenLion
Посмотреть сообщение
I know, I just removed these two lines of PlayerTextDrawTextSize before posting here lol.
so try this lol I think we put too small X / Y value(s).
PHP код:
    Textdraw0 CreatePlayerTextDraw(playerid228.000000201.040039"BLUE");
    
PlayerTextDrawLetterSize(playeridTextdraw00.5895002.843200);
    
PlayerTextDrawSize(playeridTextdraw027520);
    
PlayerTextDrawAlignment(playeridTextdraw01);
    
PlayerTextDrawColor(playeridTextdraw065535);
    
PlayerTextDrawSetShadow(playeridTextdraw00);
    
PlayerTextDrawSetOutline(playeridTextdraw01);
    
PlayerTextDrawBackgroundColor(playeridTextdraw051);
    
PlayerTextDrawFont(playeridTextdraw02);
    
PlayerTextDrawSetProportional(playeridTextdraw01);
    
PlayerTextDrawSetSelectable(playeridTextdraw0true);
    
Textdraw1 CreatePlayerTextDraw(playerid360.000000199.920074"RED");
    
PlayerTextDrawLetterSize(playeridTextdraw10.6225002.960796);
    
PlayerTextDrawSize(playeridTextdraw127520);
    
PlayerTextDrawAlignment(playeridTextdraw11);
    
PlayerTextDrawColor(playeridTextdraw1, -16776961);
    
PlayerTextDrawSetShadow(playeridTextdraw10);
    
PlayerTextDrawSetOutline(playeridTextdraw11);
    
PlayerTextDrawBackgroundColor(playeridTextdraw151);
    
PlayerTextDrawFont(playeridTextdraw12);
    
PlayerTextDrawSetProportional(playeridTextdraw11);
    
PlayerTextDrawSetSelectable(playeridTextdraw1true); 
Reply
#10

I tried putting high values, but I can't even click them lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)