Conflict between TextDraws -
RafaelOsio - 13.02.2015
Hello guys, my question now , is still on TextDraws . The thing is, I have two TextDraws where coordinates have the same X and Y different , that is, they are side by side . I configured them to be selectable and so far so good . The problem is that the left TextDraw work, since not right . Why does this happen ? I do not know if it will help , but after 300 million tests I have found that when they occupy the same y-axis , ie , one on top of another , the two TextDraws SELECTABLE work.
TextDraw "A":
Код:
Text[21] = TextDrawCreate(212.200073, 329.533477, "A");
TextDrawLetterSize(Text[21], 0.519598, 2.227200);
TextDrawTextSize(Text[21], 291.999847, 15.680003);
TextDrawAlignment(Text[21], 1);
TextDrawColor(Text[21], -1);
TextDrawUseBox(Text[21], true);
TextDrawBoxColor(Text[21], 0);
TextDrawSetShadow(Text[21], 0);
TextDrawSetOutline(Text[21], 1);
TextDrawBackgroundColor(Text[21], 51);
TextDrawFont(Text[21], 1);
TextDrawSetProportional(Text[21], 1);
TextDraw "B":
Код:
Text[19] = TextDrawCreate(337.999694, 328.293640, "B");
TextDrawLetterSize(Text[19], 0.519598, 2.227200);
TextDrawTextSize(Text[19], 291.999847, 15.680003);
TextDrawAlignment(Text[19], 1);
TextDrawColor(Text[19], -1);
TextDrawUseBox(Text[19], true);
TextDrawBoxColor(Text[19], 0);
TextDrawSetShadow(Text[19], 0);
TextDrawSetOutline(Text[19], 1);
TextDrawBackgroundColor(Text[19], 51);
TextDrawFont(Text[19], 1);
TextDrawSetProportional(Text[19], 1);
TextDrawSetSelectable(Text[19], true);
NOTE: In this code , they are next to each other , ie , ARE NOT WORKING .
Note 2 : When I say work , I am referring to them are selectable. Running = Performs the operation when I click on TextDraw .
FOR FOLKS PLEASE , I'm racking my brain to get put away , but difficult ta ...
Re: Conflict between TextDraws -
vassilis - 13.02.2015
If i understand what you want to say is that when the texdraws are in the same y Float they are both clickable?
I have the same problem too i would like to know the solution of this though
Re: Conflict between TextDraws -
RafaelOsio - 13.02.2015
Quote:
Originally Posted by vassilis
If i understand what you want to say is that when the texdraws are in the same y Float they are both clickable?
I have the same problem too i would like to know the solution of this though
|
It's almost that guy. But in my case, they share the axis y only the left button works, as the right not.
AW: Conflict between TextDraws -
Nero_3D - 13.02.2015
Well if they are both on the same height than the left one overlaps the right one, see TextDrawTextSize
The left is overlapping because it was created after the right one (textdraws are layed after creating date)
212 (A x) + 292 (A text x) = 504 and the second one already starts at 338 (B x), you need to lower the x size to 338 - 212 = 126
Re: Conflict between TextDraws -
RafaelOsio - 13.02.2015
So guys , I managed to solve my problem , thanks help you all. So , thank you. Vassilis , Nero_3D and ****** , thank you.