printf equivalents

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

printf equivalents

Post by enric »

PrintStringLiteral("\n") ; works for a new line
but
PrintStringLiteral("\t") ; don't seem to work

Is there any arguments to format text?
Is there a TAB argument?
Is there a way to ask for the length of a string?

The objective is to show a list of strings and values like a table:

name1 (tab) 12 (tab) 23 (tab) 2
name2 (tab) 11 (tab) 26 (tab) 12
etc.
pipfromslitherine
Site Admin
Site Admin
Posts: 9928
Joined: Wed Mar 23, 2005 10:35 pm

Re: printf equivalents

Post by pipfromslitherine »

No - there aren't any string wrangling functions like that. You are probably best using a seperate renderstring for each element.

Cheers

Pip
Post Reply

Return to “Battle Academy : Modders Corner ”