Elvas Tower: 3D Cabs - Elvas Tower

Jump to content

Posting Rules

All new threads will be started by members of the Open Rails team, Staff, and/or Admins. Existing threads started in other forums may get moved here when it makes sense to do so.

Once a thread is started any member may post replies to it.
  • 80 Pages +
  • « First
  • 78
  • 79
  • 80
  • You cannot start a new topic
  • You cannot reply to this topic

3D Cabs Rate Topic: -----

#791 User is offline   superheatedsteam 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 504
  • Joined: 28-June 08
  • Location:Perth, WA
  • Country:

Posted 31 March 2024 - 08:57 PM

That is my experience as well. I don't know of a work around.

#792 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,000
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 01 April 2024 - 08:53 AM

Try with Justification ( 4 ).

#793 User is offline   ExRail 

  • Fireman
  • Group: Status: Active Member
  • Posts: 158
  • Joined: 31-December 21
  • Gender:Male
  • Simulator:ORNYMG
  • Country:

Posted 01 April 2024 - 12:50 PM

View PostSYogurt, 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?


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 User is offline   SYogurt 

  • Fireman
  • Group: Status: Active Member
  • Posts: 139
  • Joined: 29-March 19
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 01 April 2024 - 08:11 PM

View PostCsantucci, on 01 April 2024 - 08:53 AM, said:

Try with Justification ( 4 ).



This justification shifts the text over to the right, but still left aligned. (6) works fine for right alignment but everything else leads to left.

#795 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,000
  • Joined: 31-December 11
  • Gender:Male
  • Country:

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.
Attached File  Runactivity.zip (1.43MB)
Number of downloads: 8

#796 User is offline   ExRail 

  • Fireman
  • Group: Status: Active Member
  • Posts: 158
  • Joined: 31-December 21
  • Gender:Male
  • Simulator:ORNYMG
  • Country:

Posted 13 April 2024 - 01:42 AM

While looking at some 3DcabRender render function trying to see what it did (I don't like these ?: long conditional statements, maybe it's only a beginner thing)
in relation to alignment it downed on me what these 4,5,6 number relates to, before it was just a number, and was it 4 or 5 for center.

Attached Image: 3D_Cab_Justification.jpg

#797 User is offline   superheatedsteam 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 504
  • Joined: 28-June 08
  • Location:Perth, WA
  • Country:

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?

  • 80 Pages +
  • « First
  • 78
  • 79
  • 80
  • You cannot start a new topic
  • You cannot reply to this topic

3 User(s) are reading this topic
1 members, 2 guests, 0 anonymous users

  1. sodbuster