That is my experience as well. I don't know of a work around.
3D Cabs
#793
Posted 01 April 2024 - 12:50 PM
SYogurt, on 31 March 2024 - 12:09 PM, said:
I've been having trouble with using Justification ( 5 ) to get centered digital readouts. Justification ( 6 ) correctly leads to right alignment and ( 1 ) leads to left. The manual says ( 5 ) should be center aligned but there's no change from left alignment.
Any ideas?
Any ideas?
Looking at mine they all LeadingZeros ( 0,1,2 ) Justification ( 5 )
The 0's are left aligned, so the justification ain't working either on my 3D panel.
#794
Posted 01 April 2024 - 08:11 PM
#795
Posted 02 April 2024 - 12:07 AM
There was an incorrect formula. Try with the attached patch for ORNYMG 151.2 (always with Justification ( 4 )). Take into account however that the resolution of the alignment is 1 character; therefore, if the max number of characters in the digital box is even and the characters in the string to be displayed is odd, or vice-versa, the string will be shifted by a half character length with respect to a precisely centered position.
Runactivity.zip (1.43MB)
Number of downloads: 8
Runactivity.zip (1.43MB)
Number of downloads: 8
#796
Posted 13 April 2024 - 01:42 AM
#797
Posted Today, 08:21 AM
The cab view I am working on has an Accelerometer gauge that displays km/h per minute which is a unit of measure not currently supported in the unstable version.
I have added the following to the unstable source on my pc and the code compiled without error and appears to function correctly in OR.
MSTSLocomotive.cs has the following added to CABViewControlTypes.ACCELEROMETER:
case CABViewControlUnits.KM_HOUR_MIN:
data = this.AccelerationMpSS * 3.6f * 60.0f;
break;
CabViewFile.cs has the following added to public enum CABViewControlUnits
KM_HOUR_MIN,
Do I add this as a feature suggestion in Trello?
I have added the following to the unstable source on my pc and the code compiled without error and appears to function correctly in OR.
MSTSLocomotive.cs has the following added to CABViewControlTypes.ACCELEROMETER:
case CABViewControlUnits.KM_HOUR_MIN:
data = this.AccelerationMpSS * 3.6f * 60.0f;
break;
CabViewFile.cs has the following added to public enum CABViewControlUnits
KM_HOUR_MIN,
Do I add this as a feature suggestion in Trello?