Clickable textdraw
#1

// bla blaaaa, delete
Reply
#2

Try playing around with TextDrawTextSize when you create the textdraws, it is an area in which you can click (like a box).

Try
pawn Код:
TextDrawTextSize( textdrawid, 16.0, 16.0 );
then play around with the numbers until it's fine.
Reply
#3

Dude, i had the same problem with my login screen.
read here https://sampwiki.blast.hk/wiki/TextDrawTextSize - TextDrawTextSize

IF you are using a ingame text editor.. it easy get TextDrawTextSize x ,y axis..

turn on TextDrawUseBox first, text select place it.. and get the x ,y axis.. to TextDrawTextSize
Reply
#4

The Y value doesn't affect anything visually, so it's guess work, but you can get the X size with the TD editor. Another tip is to use a SPRITE, as both the x AND y value will change the size of the sprite - showing you your clickable area.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)