-
-
Notifications
You must be signed in to change notification settings - Fork 20
WIP: Show abandoned and disused nodes in 'things' and 'places' overlays. #833
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
base: modified
Are you sure you want to change the base?
Conversation
Abandoned nodes are tinted red and disused nodes are tinted gray.
|
Thanks a lot! I'd really appreciate it if the prefixes would also work in the building overlay :) |
mnalis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking this on, @blu256 !
Few preliminary opinions from me (but let's wait for @Helium314 to see with which part he agrees); I'll try to check how it works in practice later.
-
in SCEE, we default to behaviour being the same as in StreetComplete, and there be an option in preferences to enable new/changed behaviour.
(the idea is that the user can come over from SC and only enable one specific thing they need, without having a behaviour changes elsewhere which might confuse them).Thus, I think you should add an switch like "Show disabled/abandoned features too" in preferences (in
Questssection) -
IMHO it might be better to leave original function names (but wait for confirmation from @Helium314 about that), because:
- it reduces the merge effort going forward (otherwise, any time any of those files gets new includes, automatic merge will likely fail) and there is a lot of maintenance time going on those merges already IIRC
- given the need for preference; new name or the old name might fit better, so there is not clear winner. (unless code is duplicated and we keep both, but call one or the other depending on the preference -- which has its own set of problems)
-
you should preferably only change default strings in
values/strings_ee.xml:- SCEE-specific strings should go in
values/strings_ee.xml, notvalues/strings.xml - other languages (
values-*/strings.xml) are translated via external service (seeREADME.md), and doing it via PR could cause merge conflicts and translations for whole language to fail IIRC. - unrelated changes to PR (e.g. those
values-ast/strings.xmlwhitespace changes) should be fixed elsewhere (in that specific case, in StreetComplete poeditor translator)
- SCEE-specific strings should go in
Thanks again for your contribution!
|
Thank you for the detailed review, @mnalis :) You make some very good points. I will make the needed changes once I get some more free time, perhaps this weekend. |
I fully agree on this part. You could e.g. have Showing disused and abandoned places in overlays should also be a setting, not sure where though. There are no per-overlay settings, so maybe also in the SCEE Quests section?
I also agree on this. Changes in SCEE should take into account that I regularly merge SC changes (and I consider this more important than readability).
Original SC strings.xml should not be touched, all SCEE strings should go into strings_ee.xml. Btw I wonder why the same English strings are present 3 times in SC. Usually the priority is language+region, then language, then default. So having e.g. disused in the en and en_AU files seems useless (and a waste of space, as xml resources aren't compressed in the APK). |
I have added the setting OK, but I couldn't figure out how to access it from
Ok, I had no idea how SCEE applies changes to SC without diverging too much to keep things maintainable, so this information is most helpful. Will certainly fix these issues. |
Easiest would be looking at code for existing similar check and copying what it does 😺 For example, if you search for and then those (or, you can look e.g. at But if you get stuck with that issue of not being able to read from preferences, but the other stuff is working, no worries. Just push to this PR other changes that you've made so far (especially those maintenance cleanups suggested above, which will make PR much easier to read, i.e.):
and simply define your BTW, GitHub has |
|
@blu256 and of course feel free to ask if you get stuck anywhere. This PR looks quite interesting, so I'd love to see it progress! (but do not feel pressured, do it on your own schedule as it best suites you!) |
|
I am currently busy, I will resume work on this once I get some more time. |
This patch intents to propose a solution for #831.
With this patch:
Some improvements needed to be made to how icons are colored in night mode to accomodate tinted icons.
Since it's my first time working with the SC(EE) codebase and Kotlin/Android code in general, feedback is greatly appreciated :)