SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   Help with Textdraw Selectable. (https://forum.sa-mp.com/showthread.php?t=570550)

Kathleen 11/04/2015 02:43 PM

Help with Textdraw Selectable.
 
Hello,

I am not able to get those boxes selectable.
May anyone help me with it... I guess the problem is TextSize but i don't exactly know how it works.

Code:

        Lobby2 = TextDrawCreate(146.000030, 93.174102, "Option 1");
        TextDrawLetterSize(Lobby2, 0.000000, 0.929835);
        TextDrawTextSize(Lobby2, 31.333339, 0.000000);
        TextDrawAlignment(Lobby2, 1);
        TextDrawColor(Lobby2, 0);
        TextDrawUseBox(Lobby2, true);
        TextDrawBoxColor(Lobby2, -1378294017);
        TextDrawSetShadow(Lobby2, 0);
        TextDrawSetOutline(Lobby2, 0);
        TextDrawFont(Lobby2, 0);
        TextDrawSetSelectable(Lobby2, true);

        Lobby6 = TextDrawCreate(147.000015, 122.381523, "Option 2");
        TextDrawLetterSize(Lobby6, 0.000000, 0.929835);
        TextDrawTextSize(Lobby6, 31.333339, 0.000000);
        TextDrawAlignment(Lobby6, 1);
        TextDrawColor(Lobby6, 0);
        TextDrawUseBox(Lobby6, true);
        TextDrawBoxColor(Lobby6, -5963521);
        TextDrawSetShadow(Lobby6, 0);
        TextDrawSetOutline(Lobby6, 0);
        TextDrawFont(Lobby6, 0);
        TextDrawSetSelectable(Lobby6, true);

        Lobby7 = TextDrawCreate(148.000015, 150.759292, "Option 3");
        TextDrawLetterSize(Lobby7, 0.000000, 0.929835);
        TextDrawTextSize(Lobby7, 31.333335, 0.000000);
        TextDrawAlignment(Lobby7, 1);
        TextDrawColor(Lobby7, 0);
        TextDrawUseBox(Lobby7, true);
        TextDrawBoxColor(Lobby7, 65535);
        TextDrawSetShadow(Lobby7, 0);
        TextDrawSetOutline(Lobby7, 0);
        TextDrawFont(Lobby7, 0);
        TextDrawSetSelectable(Lobby7, true);

        Lobby8 = TextDrawCreate(149.000015, 179.966674, "Option 4");
        TextDrawLetterSize(Lobby8, 0.000000, 0.929835);
        TextDrawTextSize(Lobby8, 31.333335, 0.000000);
        TextDrawAlignment(Lobby8, 1);
        TextDrawColor(Lobby8, 0);
        TextDrawUseBox(Lobby8, true);
        TextDrawBoxColor(Lobby8, 8388863);
        TextDrawSetShadow(Lobby8, 0);
        TextDrawSetOutline(Lobby8, 0);
        TextDrawFont(Lobby8, 0);
        TextDrawSetSelectable(Lobby8, true);


De4dpOol 11/04/2015 02:48 PM

Re: Help with Textdraw Selectable.
 
TextDrawTextSize(Textid, 31.333339, 0.000000); Change the 0.000000 to a higher value depending on the size of textdraw.

Kathleen 11/04/2015 02:50 PM

Re: Help with Textdraw Selectable.
 
Quote:

Originally Posted by De4dpOol (Post 3427875)
TextDrawTextSize(Textid, 31.333339, 0.000000); Change the 0.000000 to a higher value depending on the size of textdraw.

I tried it before, but it doesn't work for me.

Kathleen 24/04/2015 08:55 PM

Re: Help with Textdraw Selectable.
 
Bump. No-one really helped me out that well ;D


All times are GMT. The time now is 10:15 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.