:Gumps: function question

Archive of posts related to former distro versions. Be aware that posts here do not refer to the current distro and may not work.

Moderators: POL Developer, Distro Developer

Locked
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am
Location: Myrtle Beach, South Carolina

:Gumps: function question

Post by MontuZ » Mon Sep 22, 2008 10:12 am

GFTextWidth(gump_text) - Currently only supports 1 font, I've tried to update for the new font the client uses in updated clients but failed repeatedly mainly due to the fact that I can't for the life of me figure out how this function works.

Any suggestions on how to get it to support the newer clients font?

User avatar
Austin
Former Developer
Posts: 618
Joined: Wed Jan 25, 2006 2:30 am

Re: :Gumps: function question

Post by Austin » Mon Sep 22, 2008 10:24 am

On the newer clients the fonts are a fixed width.
It should be as simple as Len(text)*width

I think width is between 5 and 10 pixels.

User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am
Location: Myrtle Beach, South Carolina

Re: :Gumps: function question

Post by MontuZ » Mon Sep 22, 2008 9:54 pm

That's one of the ways I managed to fail =)

Locked