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

Mirror: Door Remote Now Shows Mode in UI #293

Conversation

SimpleStation14
Copy link
Member

Mirror of PR #26162: Door Remote now shows Mode in UI from space-wizards space-wizards/space-station-14

e627a0d24bc8ae89665feb0b0d519b5fbb77ce32

PR opened by Plykiya at 2024-03-15 23:14:52 UTC


PR changed 7 files with 151 additions and 67 deletions.

The PR had the following labels:

  • Status: Awaiting Changes

Original Body

About the PR

Changed the door remote to show what mode it's in on the UI so you don't have to toggle it to figure out if you're bolting a door or setting it to emergency access...

Why / Balance

There is no indicator and it's awkward to set a door to emergency access instead of bolting it against nukies.

Technical details

  • Split DoorRemoteSystem into Shared/Server/Client from just Server
  • Added door remote status control that updates itself on first pickup and then whenever the mode is toggled
  • Got rid of the custom "ShowPopupToUser" function that the DoorRemote used to have in favor of PopupClient/PopupEntity
  • Created new Door Remote locale messages.

The only problem I have with my code change is that I created a shitty fourth placeholder enum so that I could check for a difference on initial pickup with PrevOperatingMode. Without it, the mode string only appears on pickup for 2/3 options instead of 3/3 options because the default PrevOperatingMode would end up matching the current Mode the door remote is set to, thus not updating the UI. Would love a better implementation suggestion for that...

Media

  • [ X ] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase
2024-03-15.16-02-31.mp4

Breaking changes

DoorRemoteComponent moved from Content.Server.Remotes to Content.Shared.Remotes.Components, DoorRemoteSystem OnInHandActivation changed from Public to Private, DoorRemoteSystem moved from Content.Server to Content.Shared, DoorRemoteSystem is now SharedDoorRemoteSystem

Changelog

🆑

  • add: Door remote UI now shows the mode it is in.

@SimpleStation14 SimpleStation14 added the Pull Request Mirror Mirrors a PR from another Repo. Automatically applied by mirror bot label Apr 22, 2024
@SimpleStation14 SimpleStation14 marked this pull request as draft May 4, 2024 21:12
@VMSolidus VMSolidus marked this pull request as ready for review May 29, 2024 01:15
@github-actions github-actions bot added Changes: C# Changes any cs files Changes: Localization Changes any ftl files Status: Merge Conflict FIX YOUR PR AAAGH labels May 29, 2024
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

1 similar comment
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the Status: Merge Conflict FIX YOUR PR AAAGH label Jul 9, 2024
@SimpleStation14 SimpleStation14 changed the title Mirror: Door Remote now shows Mode in UI Mirror: Door Remote Now Shows Mode in UI Jul 9, 2024
@VMSolidus VMSolidus merged commit 8926496 into Simple-Station:master Jul 9, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes: C# Changes any cs files Changes: Localization Changes any ftl files Pull Request Mirror Mirrors a PR from another Repo. Automatically applied by mirror bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants