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

Hide [Extra] nodes with a checkbox #111

Open
unofficial-fish opened this issue Jan 29, 2024 · 1 comment
Open

Hide [Extra] nodes with a checkbox #111

unofficial-fish opened this issue Jan 29, 2024 · 1 comment

Comments

@unofficial-fish
Copy link

Gaze upon this image:
Abitlovecraftian
*I inverted the colors in post, pay that no mind
*Yes, those are create mod crafts that I quickly and badly added to the minecraft recipe list

In this case, I do not particularly care about extra resources. I'd prefer that those nodes were not there, to make this mess a little easier to comprehend. It would be helpful to have a checkbox that does not show [Extra] nodes, only [Final] nodes.

@unofficial-fish
Copy link
Author

unofficial-fish commented Jan 30, 2024

To my complete surprise, me randomly messing with code I do not understand worked out great.
for (let key in output_requirements) { if (output_requirements[key] > 0) { var tracker_key = key+"extra"; //hehehe /* resource_tracker[tracker_key] = new ResourceEdge( key, "[Extra] " + key, output_requirements[key], ); */ // Store the number of extra values for hover text on the chart generation_totals["[Extra] " + key] = output_requirements[key]; } }
I commented out these lines, preventing the [Extra] nodes from being generated.
(This is probably a terrible way to accomplish this.)
*the code is horribly formatted here and I don't know why, here's a screenshot
commented

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

No branches or pull requests

1 participant