SelectTextDraw color problem
#1

Hello, it's the same textdraw when choosing the colors of the writings, what is the problem. I'm sorry for my bad English.

Reply
#2

What?..
Do u want to change the color?
If so use: ~r~ / ~p~ / ~b~ / ~g~ / ~y~
Reply
#3

Quote:
Originally Posted by WhiteGhost
Посмотреть сообщение
What?..
Do u want to change the color?
If so use: ~r~ / ~p~ / ~b~ / ~g~ / ~y~
No, SelectTextDraw(playerid, 0xFF3B3BFF); all textdraw appears.

Here is the process I tried but it didn't work: https://www.youtube.com/watch?v=bVaPoQoXZck
Reply
#4

Change the text size to an appropriate value for each clickable item.

https://sampwiki.blast.hk/wiki/TextDrawTextSize
Reply
#5

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
Change the text size to an appropriate value for each clickable item.

https://sampwiki.blast.hk/wiki/TextDrawTextSize
Can you give the sample size for this textdraw ?

Код:
MeslekEkraniBaba[4] = TextDrawCreate(325.500000, 169.444458, "Dolandirici");
	TextDrawLetterSize(MeslekEkraniBaba[4], 0.295000, 1.338666);
	TextDrawAlignment(MeslekEkraniBaba[4], 2);
	TextDrawColor(MeslekEkraniBaba[4], -1);
	TextDrawBoxColor(MeslekEkraniBaba[4], 255);
	TextDrawSetShadow(MeslekEkraniBaba[4], 0);
	TextDrawSetOutline(MeslekEkraniBaba[4], 1);
	TextDrawBackgroundColor(MeslekEkraniBaba[4], 255);
	TextDrawFont(MeslekEkraniBaba[4], 1);
	TextDrawSetProportional(MeslekEkraniBaba[4], 1);
	TextDrawSetShadow(MeslekEkraniBaba[4], 0);
Reply
#6

Quote:
Originally Posted by sampkinq
Посмотреть сообщение
Can you give the sample size for this textdraw ?

Код:
MeslekEkraniBaba[4] = TextDrawCreate(325.500000, 169.444458, "Dolandirici");
	TextDrawLetterSize(MeslekEkraniBaba[4], 0.295000, 1.338666);
	TextDrawAlignment(MeslekEkraniBaba[4], 2);
	TextDrawColor(MeslekEkraniBaba[4], -1);
	TextDrawBoxColor(MeslekEkraniBaba[4], 255);
	TextDrawSetShadow(MeslekEkraniBaba[4], 0);
	TextDrawSetOutline(MeslekEkraniBaba[4], 1);
	TextDrawBackgroundColor(MeslekEkraniBaba[4], 255);
	TextDrawFont(MeslekEkraniBaba[4], 1);
	TextDrawSetProportional(MeslekEkraniBaba[4], 1);
	TextDrawSetShadow(MeslekEkraniBaba[4], 0);
Not for that TextDraw, but there's an example on the wiki.

pawn Код:
new Text:MyTextdraw;
 
public OnGameModeInit()
{
    MyTextDraw = TextDrawCreate(100.0, 33.0,"Example TextDraw");
    TextDrawTextSize(MyTextDraw, 2.0, 3.6);
    return 1;
}
You will have to play around with the values a bit, until they are how you want them.
Reply
#7

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
Not for that TextDraw, but there's an example on the wiki.

pawn Код:
new Text:MyTextdraw;
 
public OnGameModeInit()
{
    MyTextDraw = TextDrawCreate(100.0, 33.0,"Example TextDraw");
    TextDrawTextSize(MyTextDraw, 2.0, 3.6);
    return 1;
}
You will have to play around with the values a bit, until they are how you want them.
The click operation is not performed
Reply
#8

Try:
PHP код:
TextDrawLetterSize(MeslekEkraniBaba[4], 1.338666,0.295000,); 
Reply
#9

Quote:
Originally Posted by WhiteGhost
Посмотреть сообщение
Try:
PHP код:
TextDrawLetterSize(MeslekEkraniBaba[4], 1.338666,0.295000,); 
The problem continues.
Reply
#10

Quote:
Originally Posted by WhiteGhost
Посмотреть сообщение
Try:
PHP код:
TextDrawLetterSize(MeslekEkraniBaba[4], 1.338666,0.295000,); 
Please stop posting "guesses".

TextDrawTextSize:
Change the size of a textdraw (box if TextDrawUseBox is enabled and/or clickable area for use with TextDrawSetSelectable).

The TextDraw box starts 10.0 units up and 5.0 to the left as the origin (TextDrawCreate coordinate).

Please read the wiki: https://sampwiki.blast.hk/wiki/TextDrawTextSize
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)