-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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 Sprite changes to Logic Gates to show the input/output state #33277
Conversation
use separate layers for a/b/output and none of the evil stuff is needed |
Is this better? im not exactly the best coder :godo: |
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 the PR!
There's some small code style issues, and a bug where the code accidentally sets InputA instead of InputB.
Other than that, I like the change and the rest of the visualizer/layering stuff looks good (I don't have personal experience with any of it).
Also, I'm not a maintainer, so this is just a peer review. I may have made some mistakes in my review, or have missed things, so take this review with a grain of salt.
…o the function UpdateState
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.
LGTM! Thanks for applying the changes/feedback.
I think the only thing now is that you could add yourself to the meta.json
's copyright to say that you created the sprites for the light-up states.
Also, make sure to click "resolve" for comments/requested changes once you address it. Otherwise, maintainers may have the false impression that it is still a work-in-progress or ongoing issue.
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.
Cool idea. Needs a little more cleanup before it can be merged.
Thanks to Aeshus and delta for doing the previous reviews.
…and make input sprites toggle between on and off
Quick question: What changes did you make to logic.png? I don't see any difference yet somehow it still doubled in size. |
I used it as base when i was making the other sprites, and i think i changed its sprite when i was learning how to change sprites but then instead of reverting it i painted it back to a similar color :godo: i used krita, maybe when i saved i changed something on it? |
This happens in normal wizden too, iirc oasis has some gates like that, but if you craft them and switch through them normally they work. I can try to change it tho, also how do i "revert" the change to logic.png, would just replacing the sprite with upstream logic.png fix it? or do i have to do something else |
Just copying the original sprite back is probably the easiest way. There should be a git command, too, but no idea which one. |
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.
I tested this and it works as intended for non-pulsed signals. With signal buttons there seems to be some weird behaviour for gates, but that is not the fault of this PR and is happening on master as well. I opened an issue for that #33716.
Thank you for your first contribution!
🫡 |
About the PR
Gates now show the state of their inputs and outputs on the sprite
Why / Balance
Its easier to use them if you can see the states
Media
2024-11-12.10-41-36.mp4
Requirements
Changelog