-
Notifications
You must be signed in to change notification settings - Fork 23
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 checkbox that uses net production instead of gross production for determining which recipes to display. #135
Conversation
10abaa5
to
83573c1
Compare
I like to see both consumption and production sides, as it indicates that I need to find some way to start the process (the catalyst). So having this behind a checkbox would be nice (for me at least). |
Yes it does! Now that I read this, I wondered if this is even a good change at all. A user might even forget to loop the oil back and their factory does not work anymore... (ofc they must not be paying too much attention to the game, but still) |
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.
Besides the design question, the code looks good to me
Sounds like a checkbox is the right choice, then. When I'm trying to produce U-238 or consume heavy oil, I don't want YAFC to suggest I add a line for Kovarex enrichment or Coal liquefaction. |
…or determining which recipes to display. For example, with the box checked, Kovarex enrichment will display as producing only U-235, and as consuming only U-238.
You may want to produce fluid at the output temperature even if recipe consumes fluid overall.
bd03a80
to
dd8b07f
Compare
Updated the branch with a fresh |
Regarding the placement of the checkbox, what is the reasoning behind placing it on the welcome screen instead of Preferences? My argument for using Preferences is that it's a change of view, when everything in the welcome screen affects the model itself. The possible counter-argument might be that it's hard to put it in Preferences due to how the model is calculated, but it's just my guess why you implemented it like that. |
It seems that it doesn't work. Same with the data on hover over the recipe: |
On a side note, that's some awesome documentation. Thank you very much! |
Alright! I confirm that this change works. |
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.
Putting it in the preferences windows is possible, but means duplicating some of the code.
Since there are reasons for this setting to be on the welcome screen, then we can merge it as-is.
For example, with the box checked, Kovarex enrichment
will display as [snip previous confusing text]won't show up as a recipe option when attempting to consume U-235, nor when attempting to produce U-238.I'm not sure we actually want this to be a checkbox, though. Should I make this always on instead?