Elvas Tower: Car Operation Menu showing the states - Elvas Tower

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Car Operation Menu showing the states Rate Topic: -----

#1 User is offline   eugenR 

  • Conductor
  • Group: Status: Contributing Member
  • Posts: 472
  • Joined: 15-April 13
  • Gender:Male
  • Simulator:MSTS
  • Country:

Posted 16 March 2015 - 03:40 AM

In the Menu F9 I can click on any car to show the car operation Menu.
Would it bee feasible to show also the actual states of this elements (switches, Hoses, Cocks) in that menu?

The Menu is too small for the German translations, see Picture

Attached Image: Open Rails Bremsbedienung.jpg

#2 User is offline   markus_GE 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 4,862
  • Joined: 07-February 13
  • Gender:Male
  • Location:Leoben, Styria, Austria, Europe
  • Simulator:ORTS / MSTS
  • Country:

Posted 16 March 2015 - 06:47 AM

I knew I forgot to check something before committing my last update to the locales. I could shorten (abbreviate) the strings of the translation, as also done in the track monitor, but unlike with the TM I´m not sure I can make every string fit here, while still being able to understand the meaning...

BTW, showing the actual states would be great. Maybe that could be done by altering the buttons to checkboxed (checked: running / on / applied / connected - not checked: stopped / off / released / disconnected)? Or by coloring the buttons (eg: green and red with the same meanings as checked and not checked)?

Cheers, Markus

#3 User is offline   eugenR 

  • Conductor
  • Group: Status: Contributing Member
  • Posts: 472
  • Joined: 15-April 13
  • Gender:Male
  • Simulator:MSTS
  • Country:

Posted 16 March 2015 - 06:56 AM

 markus_GE, on 16 March 2015 - 06:47 AM, said:

I could shorten (abbreviate) the strings of the translation, as also done in the track monitor, but unlike with the TM I´m not sure I can make every string fit here, while still being able to understand the meaning...

that is the reason I wrote:
The Menu is too small.....

Cheers, Eugen

#4 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,492
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 16 March 2015 - 10:41 AM

Yeah, go ahead and make the dialog wider as needed. If you're not sure how, let me know and I'll show you how. :good:

#5 User is offline   markus_GE 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 4,862
  • Joined: 07-February 13
  • Gender:Male
  • Location:Leoben, Styria, Austria, Europe
  • Simulator:ORTS / MSTS
  • Country:

Posted 16 March 2015 - 10:53 AM

:good: , but I got no clue how to do that... :)

Cheers, Markus

#6 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,492
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 16 March 2015 - 11:04 AM

Okay, so you'll need to be able to build OR with Visual Studio or C# Express to confirm the changes work/are big enough, but you can just wing it:

The width of the dialog is the "Window.DecorationSize.X + owner.TextFontDefault.Height * 12" expression on line 40 of \Source\RunActivity\Viewer3D\Popups\CarOperationsWindow.cs. That's saying "make the window wide enough for the borders plus 12 (vertical) lines of text" (using the height of text for both width and height is common - the height of this dialog is specified as borders plus 14 lines of text). I'd estimate changing that 12 to 18 will be about what you want.

#7 User is offline   markus_GE 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 4,862
  • Joined: 07-February 13
  • Gender:Male
  • Location:Leoben, Styria, Austria, Europe
  • Simulator:ORTS / MSTS
  • Country:

Posted 16 March 2015 - 01:19 PM

Changing of the code probably is less of a problem than fining out how to do the changes (I have coded such window size calculation in my own experiments in BASIC already). However, I´ll need to get Visual Studio running properly on my computer first. Will look into it tomorrow, and hope a simple re-install can do it.

Will VS Express do it? Which release (IE, which year)?

Cheers, Markus

#8 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,492
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 16 March 2015 - 01:23 PM

Any of VS 2010, 2012 or 2013 will work, as will the same versions of C# Express.

#9 User is offline   markus_GE 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 4,862
  • Joined: 07-February 13
  • Gender:Male
  • Location:Leoben, Styria, Austria, Europe
  • Simulator:ORTS / MSTS
  • Country:

Posted 16 March 2015 - 01:26 PM

OK, I´ll see what I can achieve with the window size.

:) for the assistance so far :)

Cheers, Markus

#10 User is offline   markus_GE 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 4,862
  • Joined: 07-February 13
  • Gender:Male
  • Location:Leoben, Styria, Austria, Europe
  • Simulator:ORTS / MSTS
  • Country:

Posted 16 March 2015 - 01:44 PM

Not even a reinstall was necessary. I opened Source/ORTS.sln, used the explorer window to navigate to the file and line you said, and was able to change the line in question. However, I have no clue how to check the results. Can you help me once more, please?

Cheers, Markus

  • 2 Pages +
  • 1
  • 2
  • 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