Skip to content
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

add a flag to spoiler unit names #45

Merged
merged 1 commit into from
Feb 11, 2025
Merged

add a flag to spoiler unit names #45

merged 1 commit into from
Feb 11, 2025

Conversation

zzlk
Copy link
Contributor

@zzlk zzlk commented Feb 10, 2025

fixes #42

@zzlk
Copy link
Contributor Author

zzlk commented Feb 10, 2025

@Dr-zzt does this look good?

image

image

@zzlk
Copy link
Contributor Author

zzlk commented Feb 10, 2025

so, my three thoughts on this specific implementation is that the 'SPOILER' text won't be translated, because it is returned from the back-end like that. Not sure if that is a huge issue or not, it kinda looks bad I think.

The other issue is that the spoiler flag only applies after a page reload (because the spoilering is done server-side). You could do the spoilering clientside which would give you the ability to translate it, as well as have it take effect instantly but then it would be easy to see the unit names in the network panel.

The third issue I can see with this implementation is it still shows you which unit names have non-defaults (they will still appear in the unit name list), not sure if that will give away too much info?

@Dr-zzt
Copy link

Dr-zzt commented Feb 11, 2025

I think this is fine for an initial version of the feature. Thank you for implementing this!

@zzlk zzlk merged commit bfc8030 into scmscx:main Feb 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A way to hide unit names?
2 participants