Elvas Tower: ORTSLabel ( ) - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

ORTSLabel ( ) Rate Topic: -----

#1 User is online   darwins 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,237
  • Joined: 25-September 17
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 26 February 2024 - 02:38 AM

he new ORTSLabel ( ) has been really useful for brake controllers. Could it be extended to display information for other controls such as throttles or combined controllers?

Something like this:

Throttle ( 0 1.0 1 0
NumNotches ( 5
Notch ( 0.00 0 Dummy ORTSLabel ("OFF"))
Notch ( 0.25 0 Dummy ORTSLabel ("SHUNT") )
Notch ( 0.50 0 Dummy ORTSLabel ("SERIES"))
Notch ( 0.75 0 Dummy ORTSLabel ("PARALLEL"))
Notch ( 1.00 0 Dummy ORTSLabel ("WEAK FIELD")) ) )

or

EngineControllers (
Throttle ( 0 1 0.1 0
NumNotches ( 5
Notch ( 0 0 Dummy ORTSLabel ("0"))
Notch ( 0.10 0 Dummy ORTSLabel ("1"))
Notch ( 0.40 0 Dummy ORTSLabel ("2"))
Notch ( 0.70 0 Dummy ORTSLabel ("3"))
Notch ( 1.00 0 Dummy ORTSLabel ("4")) ) )

Brake_Train ( 0 1 0.01 0.26
NumNotches ( 5
Notch( 0 0 TrainBrakesControllerReleaseStart ORTSLabel ("0"))
Notch( 0.26 0 TrainBrakesControllerEPApplyStart ORTSLabel ("1"))
Notch( 0.55 0 TrainBrakesControllerEPApplyStart ORTSLabel ("2"))
Notch( 0.90 0 TrainBrakesControllerEPApplyStart ORTSLabel ("3"))
Notch( 1.0 0 TrainBrakesControllerEmergencyStart ORTSLabel ("EMERGENCY")) ) )

Combined_Control( 0 1 0.5 0.5 throttle train )


#2 User is online   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 6,933
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 26 February 2024 - 09:22 AM

Hello.
Why not? AFAIK, any control allows labels, doesn't it?
I was tempted to use it, but one thing, confusing me - is language of labels.
So, I didn't define anything yet.

#3 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 15,350
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 26 February 2024 - 11:22 AM

OFor the guy who originally made th e.eng file ne way to deal with languages is to use include files, something like this:
EngineControllers (
Throttle ( 0 1 0.1 0
NumNotches ( 5 )
Include (ThrottleNotchesFrench.inc)
)
and wherever he put ThrottleNotchesFrench.inc he could also put ThrottleNotchesEnglish.inc, ThrottleNotchesFGerman.inc, etc.
Then instruct the end user to edit the .eng file to point to his native language.inc file (or to make one) and to send a copy back to the original guy to add to his distribution file.

#4 User is online   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 6,933
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 26 February 2024 - 11:28 AM

Nice idea.
My dilemma was: original names are cool, but would offend foreign users/English variants would look "democratic", but non-prototypic.

Quote

Then instruct the end user to edit the .eng file to point to his native language.inc file ...

All, but one should be commented-out, then, only the needed one - un-commented for activation?

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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