Shortening Live Winner player name in table average HUD

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Shortening Live Winner player name in table average HUD

Postby rowhousepd » Sat Sep 30, 2023 4:41 pm

I'm wondering if it's possible to shorten the "Live Winner" player name as it appears in a table average HUD.

I know that in most HUDs, you can add a "Player Name Short" which uses an abbreviated version of the name. But it doesn't seem like there's this option for table averages. It doesn't matter that much for most sites, but on Ignition, the hand grabber add-on I use renames the opponents with a very long 40ish character screen name, and that pretty much breaks the HUD's size. Is there a workaround to this? Perhaps I could make a custom stat somehow? Hope that makes sense. Thanks!
rowhousepd
 
Posts: 329
Joined: Sun Mar 22, 2009 4:00 am
Location: Philadelphia, PA

Re: Shortening Live Winner player name in table average HUD

Postby Flag_Hippo » Sun Oct 01, 2023 5:37 am

Create custom statistics by duplicating the existing 'Live Winner' statistics and use the same format type as the 'Player Name Short' statistic:

Code: Select all
ignore_formatting(trim(this,5))
Flag_Hippo
Moderator
 
Posts: 17101
Joined: Tue Jan 31, 2012 7:50 am

Re: Shortening Live Winner player name in table average HUD

Postby rowhousepd » Sun Oct 01, 2023 6:56 pm

Amazing. Thank you, Flag_Hippo! Worked like a charm. :)
rowhousepd
 
Posts: 329
Joined: Sun Mar 22, 2009 4:00 am
Location: Philadelphia, PA


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 0 guests