Starbound
Оцінок: 47
Many Tabs - Spinning Wheel KawaiiStuff+ Tab
   
Нагородити
До улюбленого
В улюблених
Прибрати
Розмір файлу
Додано
Оновлено
255.459 KB
18 берез. 2022 о 18:13
2 серп. о 13:45

Підпишіться, аби завантажити
Many Tabs - Spinning Wheel KawaiiStuff+ Tab

В колекціях (2) автора AnomNom
An Overly Complex Assortment of Mods
Предметів: 843
Anom's Creations
Предметів: 120
Опис


An addon for Many Tabs that separates the content from KawaiiStuff+ into another Spinning Wheel / Sewing Machine tab.

There is only so many tabs that can fit on a single Crafting GUI, so some of my addons may share the same tabs. This addon shares the same tab as Many Tabs - Spinning Wheel Illustrious Apparel. If you know of any mods that you'd like to have given their own tab, then please, don't hesitate to submit a request. It may take me a while to get back to you, depending on my current level of activity.






⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀






⠀⠀⠀⠀⠀⠀







There is a lot of iterated test patches in this mod, which are basically test patches where you test each value of an array in sequence, then make your changes to that value when you find the one you're looking for. I go into more detail about what these patches are in the technical sections of my various patches for Anom's Outpost Overhaul, if you're curious.

First, we need to create patch files for every item that we want to move to a new tab. We then need to run through enough iterated test patches, about ten or so should be fine, where we check for the group value of "clothing," as this is the group tag used to assign the clothing item to the tab it's on. If we find that group, we need to replace it with a new group value.

Next, we're going to patch the Spinning Wheel's crafting menu. Since some addons are intended to share the same tabs, we first want to test as many values as necessary - I go with thirty, which is a bit overkill, but it'll definitely be thorough - to see if the tab already exists, using its image file as a test value. If it does exist, we want to add that new group we created to the filter array.

After those thirty or so tests, we then want to test all of the values again, at the same time, but specifically with the line "inverse": true slapped on at the end. What this does is invert the results of the test patch - instead of succeeding only if it finds the value, it will succeed unless it finds the value. Thus, we test the same thirty values in the array. If we don't find our tab, we create it instead, using that new group.

This is all just a really convoluted system that lets multiple mods add the same tab without conflicting or causing duplicates. It also completely negates the need to manage load order through priority or includes sections, as any mod can load at any time, and it will simply patch into the existing tab if another mod adding the same tab loaded before it.