![]() |
findimg() text width and height
I'm trying to code the nickname system for Delteria, and I'm having some issues with finding the height and width for the text when using findimg();
I'm trying to stretch an image to the width and height of the text, but using findimg(id).width or findimg(id).height doesn't give me any values. Is there a way to get the width and height? PHP Code:
|
Quote:
There is gettextwidth(zoom, font, style, text);, and gettextheight(zoom, font, style, text);. |
If you want to center the text below the player, you can try something like this
PHP Code:
|
| All times are GMT +2. The time now is 05:41 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.