SA-MP Forums Archive
TextDrawTextSize differs on lower resolutions. Messing up clickable textdraw area. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: TextDrawTextSize differs on lower resolutions. Messing up clickable textdraw area. (/showthread.php?tid=334408)



TextDrawTextSize differs on lower resolutions. Messing up clickable textdraw area. - MP2 - 14.04.2012

Resolution is seriously the most annoying thing in SA:MP/GTA. Something looks fine for my resoloution, then I switch to another and it's all fucked up. I know it's nobody's 'fault', but it presents a major problem when using clickable textdraws.

Here are some textdraws I created, with graphics to represent the clickable areas:


As you can see, on my normal resolution (left) the clickable area is the entire box, however the one on the right (800x600) is barely even half..

Can this be fixed?

I should also point out there are two textdraws per box, the box and the text. The TEXT is what is selectable, not the box textdraw.


Re: TextDrawTextSize differs on lower resolutions. Messing up clickable textdraw area. - rbN. - 14.04.2012

Have you tried relogging after changing resolutions?


Re: TextDrawTextSize differs on lower resolutions. Messing up clickable textdraw area. - MP2 - 14.04.2012

Yes. I've tried three screens and about 10 resolutions, and they all differ.


Re: TextDrawTextSize differs on lower resolutions. Messing up clickable textdraw area. - Kar - 14.04.2012

Wow you have a pretty large screen :O

BTW, I think you should just make textdraws in the most default size, 1024x768 or the one just higher than that.

Honestly, I don't think anything can be done about this unless Kalcor adds GetPlayerResolution(playerid, resolution[]);


Re: TextDrawTextSize differs on lower resolutions. Messing up clickable textdraw area. - Lorenc_ - 14.04.2012

Quote:
Originally Posted by Kar
View Post
Wow you have a pretty large screen :O

BTW, I think you should just make textdraws in the most default size, 1024x768 or the one just higher than that.

Honestly, I don't think anything can be done about this unless Kalcor adds GetPlayerResolution(playerid, resolution[]);
pawn Code:
native GetPlayerResolution( playerid, &width, &height );



Re: TextDrawTextSize differs on lower resolutions. Messing up clickable textdraw area. - MP2 - 14.04.2012

I don't really know if this is a problem with 0.3e, or if it's unavoidable. Would really like it fixed though.


Quote:
Originally Posted by Kar
View Post
Wow you have a pretty large screen :O
27 inch iMac innit


Re: TextDrawTextSize differs on lower resolutions. Messing up clickable textdraw area. - Corello2010 - 15.04.2012

Same issue.




Re: TextDrawTextSize differs on lower resolutions. Messing up clickable textdraw area. - Whitetiger - 15.04.2012

+1 for get player resolution, it can also be used to force players to play on a lower resolution (e.g: 3 FPS players playing at 1980 x 1080, is lame, especially in a DM server where they will be unhittable)


Re: TextDrawTextSize differs on lower resolutions. Messing up clickable textdraw area. - Hiddos - 19.04.2012

Quote:
Originally Posted by Corello2010
View Post
You're just doing it plain wrong.

Textdraws on different resolutions tend to bug up a lot, would be nice to see this fixed - if actually possible.


Re: TextDrawTextSize differs on lower resolutions. Messing up clickable textdraw area. - MP2 - 19.04.2012

Yeah I can't image how annoying that would be to use..