MrDrummer / DerailValleyPlanner

A desktop app designed to help organise Derail Valley gameplay
2 stars 0 forks source link

[BUG] Job form doesn't allow 3 & 4 char long yard codes #7

Open MrDrummer opened 11 months ago

MrDrummer commented 11 months ago

Describe the bug In Derail Valley, the Consist ID has 3 parts:

Example:

In the Job form, the dispatch yard part of the ID doesn't allow you to input 3 or 4 character long codes. The following do not work:

To Reproduce Steps to reproduce the behavior:

  1. Go to the Job Form
  2. Try typing in "IMW"
  3. It cuts off at 2 characters, and inputs IM-W instead.

Expected behavior Should allow 2-4 characters for the first section of the ID.

Additional context Potential solution is to remove manual input of the Consist ID. Instead, rely on the "From Yard", add a selector for the job type (FH, LH), and add a box for the ID number section

SmashedFinger commented 10 months ago

Interesting potential solution! But to be honest, I think it's a little backwards- I think it would be easier for the user to type in the job number, and have the program fill in the origin and job type automatically! I understand that might be harder to program of course. I understand its nifty to have the program fill in the dashes for the user, but I think it would be better to just forgo that and let the user type them. I'd easily take what I described above over the automatic dashes!