29.08.2013, 00:00
Hello. I've got little problem with TextDraws. When one TextDraw is after another, there's a select bug. I'm selecting 2 textdraws, while I have selected just one (second is after first), something like this:
+
OnGameModeInit:
+ of course Select TextDraw:
Is there any way to repair it?
Regards.
Code:
new Text:_TextD_skinCTRN = Text:INVALID_TEXT_DRAW, Text:_TextD_skinCTLN = Text:INVALID_TEXT_DRAW;
OnGameModeInit:
Code:
_TextD_skinCTRN = TextDrawCreate(369.0, 274.0, ">"); TextDrawBackgroundColor(_TextD_skinCTRN, 255); TextDrawFont(_TextD_skinCTRN, 1); TextDrawLetterSize(_TextD_skinCTRN, 0.500000, 1.0); TextDrawColor(_TextD_skinCTRN, -1); TextDrawSetShadow(_TextD_skinCTRN, 0); TextDrawSetSelectable(_TextD_skinCTRN, 1); _TextD_skinCTLN = TextDrawCreate(264.0, 274.0, "<"); TextDrawFont(_TextD_skinCTLN, 1); TextDrawLetterSize(_TextD_skinCTLN, 0.500000, 1.0); TextDrawColor(_TextD_skinCTLN, -1); TextDrawSetShadow(_TextD_skinCTLN, 0); TextDrawSetSelectable(_TextD_skinCTLN, 1);
Code:
SelectTextDraw(playerid, 0xFF0097FF);
Regards.