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 )
Page 1 of 1
ORTSLabel ( )
#2
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.
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
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.
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
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.
All, but one should be commented-out, then, only the needed one - un-commented for activation?
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