Re: [Widelands-dev] string formatting - integers + leading blanks

2014-11-21 Thread Tibor Bamhor
Nothing new in that link, I am using it with printf - there it works.. 2014-11-21 16:45 GMT+01:00 Fòram na Gàidhlig : > Look here: http://studiofreya.com/cpp/a-few-boostformat-examples/ > > > 21/11/2014 13:07, sgrìobh Tibor Bamhor: > > no alignment there - I just wanted to add the height there -

Re: [Widelands-dev] string formatting - integers + leading blanks

2014-11-21 Thread Fòram na Gàidhlig
Look here: http://studiofreya.com/cpp/a-few-boostformat-examples/ 21/11/2014 13:07, sgrìobh Tibor Bamhor: > no alignment there - I just wanted to add the height there - for editor > only. > > 2014-11-21 13:56 GMT+01:00 Fòram na Gàidhlig >: > > How do we bli

Re: [Widelands-dev] string formatting - integers + leading blanks

2014-11-21 Thread Tibor Bamhor
no alignment there - I just wanted to add the height there - for editor only. 2014-11-21 13:56 GMT+01:00 Fòram na Gàidhlig : > How do we blit the coordinates on the bottom right? You might find some > code to steal there. > > > > 21/11/2014 11:52, sgrìobh Tibor Bamhor: > > I cannot make it work.

Re: [Widelands-dev] string formatting - integers + leading blanks

2014-11-21 Thread Fòram na Gàidhlig
How do we blit the coordinates on the bottom right? You might find some code to steal there. 21/11/2014 11:52, sgrìobh Tibor Bamhor: > I cannot make it work. I tested couple of layouts. It even crashed the game. > > At the end it is not that critical and perhaps once a branch will be > created

Re: [Widelands-dev] string formatting - integers + leading blanks

2014-11-21 Thread Tibor Bamhor
I cannot make it work. I tested couple of layouts. It even crashed the game. At the end it is not that critical and perhaps once a branch will be created somebody will be able to change it that way Thanks 2014-11-21 12:10 GMT+01:00 Fòram na Gàidhlig : > I think the problem might be that boost::

Re: [Widelands-dev] string formatting - integers + leading blanks

2014-11-21 Thread Fòram na Gàidhlig
I think the problem might be that boost::format is interpreting the numbers as placehloder order. Try static boost::format node_format("(%1$3i, %2$3i; %3%2i)"); If this doesn't solve your problem, you might find usage examples if you grep the code base for boost::format. Otherwise, google for the

[Widelands-dev] string formatting - integers + leading blanks

2014-11-21 Thread Tibor Bamhor
I am trying to use something like this: static format node_format("(%3i, %3i; %2i)"); but these numbers are ignored. I noticed that similar code like this '%5.1f' works, what should I use to make it work? Also '%03i' works as intended... Tibor ___ Mai