Number size in the Cabview
#1
Posted 17 April 2014 - 11:31 AM
I saw this method of reducing the size of Digital numbers in the Cabview.
At the bottom of this web page below is how to reduce the size of the numbers.
http://railtm.com/forum/6-380-2#11194
Yes it is in Russian but Google translate is my friend.
The change in the code is to change 480 to 1000.
public class CabViewDigitalRenderer : CabViewControlRenderer
{
const float FontScale = 10f / 480;
public class CabViewDigitalRenderer : CabViewControlRenderer
{
const float FontScale = 10f / 1000;
I think for me the result is how I like the number size.
I am still to try if I can make the numbers just a little larger.
Regards Geoff.
#2
Posted 17 April 2014 - 09:57 PM
const float FontScale = 5f / 480;
I admit the divider should go directly to the equation FontScale variable is used, and a better name for this variable would be FontSize instead. And the font sizes are really too big in cabview, even in default locomotives.
#3
Posted 17 April 2014 - 10:59 PM
Apparently elvasleis needs much smaller characters than those even MSTS allows. In fact having the possibility to define different fonts for different cabviews would be a welcome feature.
#4
Posted 17 April 2014 - 11:06 PM
Since I am a complete novice as far as being able to change the code in Open Rails I am pleased to have done it and have achieved the result I wanted.
I had to install Visual C# 2008 Express and follow the translated instructions from the railtm.com forum.
I have no understanding of the parameters or rules of the code.
I had thought that this was just to hard for me to do.
Your reply gives me some understanding of the changes I made.
I will try the change that you have said.
const float FontScale = 5f / 480;
Thanks and Regards Geoff.
#5
Posted 18 April 2014 - 02:34 AM
Csantucci, on 17 April 2014 - 10:59 PM, said:
Apparently elvasleis needs much smaller characters than those even MSTS allows. In fact having the possibility to define different fonts for different cabviews would be a welcome feature.
I know, I know, someone will now say, we have too many options already ;)
What about making the font.size user-adjustable, as a temporary solution? (-> Experimental Tab) I too feel, fonts are way too big, especially with some of the high resolution, wide angle photo.realistic cabs I use...
Cheers, Markus
#6
Posted 18 April 2014 - 02:46 AM
So everyone had the opportunity itself easily change the font size.
Unfortunately,it was then changed to the fixed size.
Maximus
#7
Posted 18 April 2014 - 04:24 AM
Position ( 175 345 45 16 )
The first two values are the position of the field, the last two are the size (width and height).
As far as I can tell, these last values are now not used in OR - for a particual cabview, I changed 'height' from 16 to 8 - and nothing changed.
So could not either of these last two values be used as font scale values?
That's much better than an overall cabview fontsize, as fontsizes may differ per cabview or even may be different for items within a single cabview.
The only problem to work out is what present setting should relate to which font-size - and, not unlikely, presently these values might differ greatly between cabviews which actually require the same fontsize. That would make life a little more difficult.
Regards,
Rob Roeterdink
#8
Posted 18 April 2014 - 05:26 PM
#9
Posted 18 April 2014 - 08:54 PM
https://scontent-a-sjc.xx.fbcdn.net/hphotos-ash2/t31.0-8/473259_250144611759837_2014470133_o.jpg
#10
Posted 19 April 2014 - 06:19 AM
roeter, on 18 April 2014 - 04:24 AM, said:
As far as I can tell, these last values are now not used in OR - for a particual cabview, I changed 'height' from 16 to 8 - and nothing changed.
So could not either of these last two values be used as font scale values?
The values for height in particular are completely bogus on many stock and 3rd party locomotives - we did this before and it did not work very well.