Skip to content

Feature: Industry (and other type) edit dialog, #299

@GameyCamper

Description

@GameyCamper

This new feature suggestion has originated from when I was wanting to adjust the elevation of a specific roundhouse (in a circle), from the list of industries it is not too easy to identify which one to change.

So, I had a little play, added a new edit mode and 'Edit' button (next to the 'Delete').

Image

When the edit mode is enabled, if an industry is clicked then the edit dialog is displayed with the industry data.

Image

These are the same fields that appear on the list and can be used in the way.

Click on 'Close' or hit ESC to close the dialog,

Prototype code can be found on my fork at https://github.com/GameyCamper/railroad.studio/tree/industryEditDialog.
Code cleanup and missing features;

  • Populating the fields in the dialog body has resulted in a lot of cut and paste - A CPD would go nuts!
  • Highlight the industry being viewed/edited.
  • Better integration with bootstrap, ATM the dialog is show/hidden using css, really should use the bootstrap APIs.
  • If any of the industry location data is changed then update the position on the map after the dialog is closed,
  • Probably pretty useful for frames too, and props.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions