format text + img

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

format text + img

Postby iatracker » Sat Jul 04, 2020 6:30 pm

Hello,
i'd like to output an image + some text , is it possible ?
This works great :
if( this > 0, '{'+format('IMG:Icons/ar_13.png:55}'), 0)
and i would something like this : if( this > 0, '{'+format 'some text' + ('IMG:Icons/ar_13.png:55}'), 0)
iatracker
 
Posts: 91
Joined: Thu Jul 20, 2017 1:44 am

Re: format text + img

Postby WhiteRider » Mon Jul 06, 2020 3:09 am

I don't believe that is possible - a stat needs to either be an image or text.
WhiteRider
Moderator
 
Posts: 53961
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: format text + img

Postby iatracker » Mon Jul 06, 2020 5:38 am

i found this :
format
The format function is a more general formatting function which allows you to combine values together into a formatted string.

format( format_str, ... )

format_str - the formatting string. This can contain plain text and 'placeholders' labelled as {1}, {2}, {3} etc.
... - the values to be displayed by the placeholders {1}, {2}, {3} etc in order.


But its 2013 information , i didn't get it to work and don't know if this is possible yet ?!
iatracker
 
Posts: 91
Joined: Thu Jul 20, 2017 1:44 am

Re: format text + img

Postby Flag_Hippo » Mon Jul 06, 2020 11:21 am

You cannot use that to combine text with an image. If you want text displayed next to or on top of your image you will need to so via the 'HUD Profile Editor'.
Flag_Hippo
Moderator
 
Posts: 14441
Joined: Tue Jan 31, 2012 7:50 am


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 19 guests

cron
highfalutin