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] Fixes features not updating when changing character slots #1652

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#568
Original PR: tgstation/tgstation#81018

About The Pull Request

What it says on the tin. The entire bottom half of the prefs was not updating on switching character slots.

We need to use the old hook here because it needs the key to differentiate the active slot.

edit: useEffect can work in its stead here as mothblocks pointed out 👍

Why It's Good For The Game

Bugfix for a kind of serious issue for downstreams, not so much here because there aren't really any text fields being used as features.

Changelog

🆑 vinylspiders
fix: fixes features not updating when changing character slots
/:cl:

)

* Fixes features not updating when changing character slots (#81018)

## About The Pull Request

What it says on the tin. The entire bottom half of the prefs was not
updating on switching character slots.

~~We need to use the old hook here because it needs the key to
differentiate the active slot.~~

edit: useEffect can work in its stead here as mothblocks pointed out 👍 

## Why It's Good For The Game

Bugfix for a kind of serious issue for downstreams, not so much here
because there aren't really any text fields being used as features.

## Changelog

:cl:
fix: fixes features not updating when changing character slots
/:cl:

* Fixes features not updating when changing character slots

---------

Co-authored-by: Bloop <[email protected]>
@Iajret Iajret merged commit e14fa70 into master Jan 24, 2024
23 checks passed
AnywayFarus added a commit that referenced this pull request Jan 24, 2024
@Iajret Iajret deleted the upstream-mirror-568 branch January 24, 2024 17:45
Iajret pushed a commit that referenced this pull request Mar 27, 2024
* Readability Pass to Advanced Medical Tools (#82225)

## About The Pull Request

Update the sprites of the advanced surgical toolset, giving them
distinct colors and updating their lighting to reduce shades and
increase visual readability at normal resolutions.


![image](https://github.com/tgstation/tgstation/assets/32783144/4daa4f95-2415-4d60-a666-361ebfc52281)

![image](https://github.com/tgstation/tgstation/assets/32783144/b3dfba7b-3db9-42ab-b088-a6e592a3297a)

![image](https://github.com/tgstation/tgstation/assets/32783144/65efec62-aaec-4e86-8a3c-5a57aa08198e)


## Why It's Good For The Game

Currently, the advanced surgical toolset over-relies on the tooltip to
communicate item state quickly and accurately. This PR adds both color
differentials, and enhances the shape of the existing tools to help a
player tell them apart quickly and accurately. Additionally, it assists
in defining the general shape of the item with cleaned up shading to
decrease noisy patterns in the sprite.
## Changelog
:cl:
image: Updated the Advanced Surgical Tool's sprites
code: Updated the Advanced Surgical Tool's light code
/:cl:

* Readability Pass to Advanced Medical Tools

---------

Co-authored-by: Alexios <[email protected]>
ReezeBL pushed a commit that referenced this pull request Mar 27, 2024
* Readability Pass to Advanced Medical Tools (#82225)

## About The Pull Request

Update the sprites of the advanced surgical toolset, giving them
distinct colors and updating their lighting to reduce shades and
increase visual readability at normal resolutions.


![image](https://github.com/tgstation/tgstation/assets/32783144/4daa4f95-2415-4d60-a666-361ebfc52281)

![image](https://github.com/tgstation/tgstation/assets/32783144/b3dfba7b-3db9-42ab-b088-a6e592a3297a)

![image](https://github.com/tgstation/tgstation/assets/32783144/65efec62-aaec-4e86-8a3c-5a57aa08198e)


## Why It's Good For The Game

Currently, the advanced surgical toolset over-relies on the tooltip to
communicate item state quickly and accurately. This PR adds both color
differentials, and enhances the shape of the existing tools to help a
player tell them apart quickly and accurately. Additionally, it assists
in defining the general shape of the item with cleaned up shading to
decrease noisy patterns in the sprite.
## Changelog
:cl:
image: Updated the Advanced Surgical Tool's sprites
code: Updated the Advanced Surgical Tool's light code
/:cl:

* Readability Pass to Advanced Medical Tools

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: Alexios <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants