-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
managers should provide reset functions for traffic rules. #623
Comments
Solving this issue can give a big boost to #542. Is that OK if I start working on this now? if so please assign it to me (so that I know you agree with my approach) Also I think it would be better to overload Set( ... bool value) by Set( ... TernaryBool value) to be able to clear traffic rule. EDIT: this issue should be fixed in multiple stages. for the first stage I will provide Set( ... TernaryBool value) and in the junction restriction tool I provide del hotkey. I will do the same to lane arrows in a different pull request. |
maybe we can assign backspace to remove traffic rules of a particular tool and delete for removing all traffic rules? EDIT: this is dangerously confusing! |
Just random thought on this:
Might be better as:
|
|
On Mac keyboards Delete does not exist as a separate button, you have to press Fn + Backspace, hence Backspace was added for convenience. Don't give them different meaning, for some users its the same Backspace key. |
#623 I provided Interface for resting junction values. to do so provide ternarybool.undefined to a set<traffic rule>() function provided documentation explaining what I explained in description of #623. User Interface: choose Junction restriction tool -> select a junction -> press delete added KeyDown keybind settings mimicking Input.KeyDown()
@kianzarrin Does this issue need retaining - eg. for speed limits and parking restrictions there is still no way to reset customisations. |
I don't know about them. Isn't parking restriction like priority sings, the states are:
so to restore to defaults I should just set it to allowed (if applicable). I thought we have a default speed limit. If my recollections are correct setting the default speed limit is same as not setting at all with the exception of the overlay symbol that is shown to the user and storage space. not ideal but its not a big issue. I was under the impression that we have a 1+ issue per Pull request policy. if that is the case create new issues for them if not reopen this one. It has to be you because I don't use those tools too much. |
Continued in #692 |
Introduction
For each segment end flag like entering blocked junction allowed as an example (why did I chose the longest name?!) we can have these states:
when we set a flag we force its value. if we force set it to default value it will not change if default changes (eg. change options or change road configuration).
if we don't set the state then default value is used.
Not configurable
means that the default value cannot be changed.we have also these functions for every flag:
Several problems:
In the picture bellow I toggle every arrow a couple of times to force set it to its default value. but when I delete a segment the lane arrows do not change.
Solution:
Clear<traffic rule>()
methods in the interfaceSet<Traffic rule>
to check forIs<Traffic rule>Configurable
. This prevents programming errors.The text was updated successfully, but these errors were encountered: