Comments (5)
The initial patch and the ShouldGrid method are used to decide if a specific crafting node should be displayed as a grid or as a single vertical line. Normally in the game if there is even a single tab node in a section then it will force every single node to be completely vertical. This changes that so that it only becomes vertical if there's more tab nodes than crafting nodes. This means that all vanilla crafting trees will remain untouched, but that theoretically you could add a new modded tab node to a crafting section without forcing the entire section to unnecessarily become a straight vertical line.
from nautilus.
The second patch is there to disable any crafting nodes that are on the same tab as an opened tab node. Normally the game closes any other tab nodes when a new one is opened, but this extends it slightly further to also disable any other crafting nodes when a tab is opened. This also will have no effect on vanilla crafting trees, but it means that a mod could add a tab to a set of crafting nodes without having to deal with overlapping
This does have a decent flaw, however, in that the tabs retain their original position when they're opened, while all the craft nodes disappear. So this means that the tab nodes will basically be floating.
For example, in a 2x2 grid,
A, B
C, D
if A, B, and C are all craft nodes, but D is a tab node, if D is opened then A, B, and C will all disappear, but D will remain in the same place, leading to
0 0
0 D
Where the zeroes are simply empty space.
from nautilus.
What mods can I use to test this?
from nautilus.
Unfortunately there are currently none public, largely because nautilus itself stops mods from doing it
So this check should be removed first for a custom nautilus build, and then a test mod can be made (or you can use the repl console, depending on how much experience you have with the original code
from nautilus.
@EldritchCarMaker I put those limitations in place because the only way it doesn't currently MASSIVLY break the visuals when you have them together is using the Radial Tabs mod.
If you are not using the radial tabs mod and do as you are asking and then try and open the new tab node that is horizontally placed it will open right where it is and you then have its sub items overlapping the current nodes which are also there.
One day I will see about reworking the system so that it Only shows the Crafting nodes of the currently opened tab which should fix this issue at which point I will implement your request.
from nautilus.
Related Issues (20)
- ResourceTracker does not display custom icons
- Auto Language File Created If using Feature
- StoryGoal Custom Events do not receive name of triggering goal HOT 1
- ModID extra info not showing correctly. HOT 2
- Options Menu intermittent exception
- If an mod item is setting the SetUnlock but the techtype that unlocks it is unlocked by default then it should unlock by default. HOT 1
- The Nautilus tutorial for modules has incorrect code
- Module gadgets don't work HOT 3
- Coordinated spawn system fails to spawns a custom prefab created using CloneTemplate with the "classIdToClone" overload HOT 1
- Additive Prefab Templates
- Cannot add Crafting node: YeetKnife as it is being added to Root that contains Tab nodes. VanillaWorkbench, ModdedWorkbench HOT 7
- Way to access prefab ID, name, description, and sprite from the PrefabInfo or CustomPrefab HOT 2
- “Quick references” documentation page on layers & tags
- Allow creating ColorPickers without using the hardcoded sliders HOT 6
- Exception during Nautilus initialization HOT 3
- Config buttons always go to the bottom of the config
- FinishLoadingEvent fires too early for BZ
- Weird values for floats in mod menu HOT 1
- Game freezes/crashes on exit when using an external asset bundle HOT 5
- Ignore exceptions thrown by methods registered with SaveUtils.RegisterOnSaveEvent HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nautilus.